Mean and Variance of the Weibull Distribution
At a glance
- 1. Identify the parameters
Check which parameter is the shape and which is the scale, and verify the form of the Weibull density.
- 2. Use the moment formula
The rth moment is the scale raised to r times a gamma-function value.
- 3. Substitute the moments
Use the first moment for the mean and the second moment minus the squared mean for the variance.
- 4. Check units and convention
The mean has scale units; the variance has squared scale units. Account for any location shift.
For the standard two-parameter Weibull distribution, both the mean and variance can be written using the gamma function. The key is to distinguish the shape parameter from the scale parameter, since Weibull notation varies between sources.
The formulas below use shape and scale . If your source uses a different parameterization, check its density before substituting values.
Standard two-parameter form
A random variable has a Weibull distribution with shape and scale if its density is
For , the cumulative distribution function is ; for , . The scale sets the units and general size of the observations; the shape controls the distribution’s form.
With this convention, the mean and variance are
and
Here is the gamma function, defined for by . It is not the same thing as saying that itself has a gamma distribution.
Why these formulas hold
The moment calculation follows from a change of variable in the expectation integral. Set . Then , so the density times becomes . For any real ,
The restriction ensures that the integral is finite near zero. Setting gives the mean, and setting gives the second raw moment. Then use .
Worked example: shape 2, scale 3
Suppose has shape and scale . Since and ,
The second moment is
Therefore,
The standard deviation is the square root of the variance, approximately . Notice that the mean has the same units as the scale, while the variance has squared units.
Parameterization and location variations
Some references write the Weibull density with an inverse scale parameter, such as . In that convention, , so the mean is and the variance is . Identify the exponent in the density before using a formula; treating an inverse scale as a scale reverses the parameter’s role.
A three-parameter Weibull adds a location or threshold , so that where is a two-parameter Weibull variable. Its mean is , and its variance is the same as that of , because adding a constant shifts every value without changing its spread.
As a quick check on the formulas, setting gives the exponential distribution with scale : the mean becomes and the variance becomes .
Common mistakes
- Swapping shape and scale: The shape is the exponent ; the scale is in .
- Using the second moment as the variance: is not the variance. Subtract the square of the mean.
- Reporting standard deviation as variance: Standard deviation is and has the original measurement units.
- Ignoring a location parameter: A threshold shifts the mean but does not alter the variance.
References
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.