Tuesday, July 17, 2007


Anyone know anything about using Matlab to generate a probability density function with a Weibull distribution?

Because I sure as heck don't.

And I need to figure it out before my long (all day!) humiliating meeting with Dr. Advisor, which is tomorrow.

Next stop Starbucks.

Update: I think what I need help with is "fitting a Weibull distribution" to some data I already have. Thanks so much to the two nice people who have already left comments!


Will Dwinnell said...

I have two questions:

1. Do you need to generate the actual Weibull PDF, or random deviates drawn from a Weibull distribution?

2. Do you have the Statistics Toolbox?

Data Mining in MATLAB

Eric said...

If you just need the PDF, you can code up the formula given at Wolfram's Mathworld.

Kyla said...

Uhhh, I'm confused...but I do know Starbucks is always the answer. ;)

Sarah said...

wow-- you sound super smart. also? do you have dunkin donuts by you? because their coffee is super, and i think i may drop out of grad school and franchise a dd where i live-- we don't have one, and i think it is a bajillion dollar idea in my town.

Will Dwinnell said...

There is a pdf() function in the Statistics Toolbox, so I will assume that you have it. (You can check what toolboxes are installed by typing 'ver' at the MATLAB command line.)

The pdf() function returns PDF values for a specified distribution and parameters. The Statistics Toolbox includes a series of probability distribution-fitting routines. The one for Weibull is wblfit().

Let me know if this does not help.

Data Mining in MATLAB