St · Statistics & Probability

Mean and Variance of the Weibull Distribution

Updated 13 October 2026

At a glance

  1. 1. Identify the parameters

    Check which parameter is the shape and which is the scale, and verify the form of the Weibull density.

  2. 2. Use the moment formula

    The rth moment is the scale raised to r times a gamma-function value.

  3. 3. Substitute the moments

    Use the first moment for the mean and the second moment minus the squared mean for the variance.

  4. 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 k>0k>0 and scale λ>0\lambda>0. If your source uses a different parameterization, check its density before substituting values.

Standard two-parameter form

A random variable XX has a Weibull distribution with shape kk and scale λ\lambda if its density is

f(x)=kλ(xλ)k−1exp⁡[−(xλ)k],x≥0.f(x)=\frac{k}{\lambda}\left(\frac{x}{\lambda}\right)^{k-1}\exp\left[-\left(\frac{x}{\lambda}\right)^k\right], \qquad x\ge 0.

For x≥0x\ge 0, the cumulative distribution function is F(x)=1−exp⁡[−(x/λ)k]F(x)=1-\exp[-(x/\lambda)^k]; for x<0x<0, F(x)=0F(x)=0. The scale λ\lambda sets the units and general size of the observations; the shape kk controls the distribution’s form.

With this convention, the mean and variance are

E[X]=λ Γ(1+1k)\mathbb{E}[X]=\lambda\,\Gamma\left(1+\frac{1}{k}\right)

and

Var⁡(X)=λ2[Γ(1+2k)−Γ(1+1k)2].\operatorname{Var}(X)=\lambda^2\left[\Gamma\left(1+\frac{2}{k}\right)-\Gamma\left(1+\frac{1}{k}\right)^2\right].

Here Γ\Gamma is the gamma function, defined for z>0z>0 by Γ(z)=∫0∞uz−1e−u du\Gamma(z)=\int_0^\infty u^{z-1}e^{-u}\,du. It is not the same thing as saying that XX itself has a gamma distribution.

Why these formulas hold

The moment calculation follows from a change of variable in the expectation integral. Set u=(x/λ)ku=(x/\lambda)^k. Then du=kλ(x/λ)k−1dxdu=\frac{k}{\lambda}(x/\lambda)^{k-1}dx, so the density times dxdx becomes e−udue^{-u}du. For any real r>−kr>-k,

E[Xr]=∫0∞xrf(x) dx=λr∫0∞ur/ke−u du=λrΓ(1+rk).\begin{aligned} \mathbb{E}[X^r] &=\int_0^\infty x^r f(x)\,dx\\ &=\lambda^r\int_0^\infty u^{r/k}e^{-u}\,du\\ &=\lambda^r\Gamma\left(1+\frac{r}{k}\right). \end{aligned}

The restriction r>−kr>-k ensures that the integral is finite near zero. Setting r=1r=1 gives the mean, and setting r=2r=2 gives the second raw moment. Then use Var⁡(X)=E[X2]−E[X]2\operatorname{Var}(X)=\mathbb{E}[X^2]-\mathbb{E}[X]^2.

Worked example: shape 2, scale 3

Suppose XX has shape k=2k=2 and scale λ=3\lambda=3. Since Γ(3/2)=π/2\Gamma(3/2)=\sqrt{\pi}/2 and Γ(2)=1\Gamma(2)=1,

E[X]=3Γ(32)=3π2≈2.659.\mathbb{E}[X]=3\Gamma\left(\frac{3}{2}\right)=\frac{3\sqrt{\pi}}{2}\approx 2.659.

The second moment is

E[X2]=32Γ(2)=9.\mathbb{E}[X^2]=3^2\Gamma(2)=9.

Therefore,

Var⁡(X)=9−(3π2)2=9(1−π4)≈1.931.\begin{aligned} \operatorname{Var}(X) &=9-\left(\frac{3\sqrt{\pi}}{2}\right)^2\\ &=9\left(1-\frac{\pi}{4}\right)\\ &\approx 1.931. \end{aligned}

The standard deviation is the square root of the variance, approximately 1.3901.390. 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 exp⁡[−(αx)k]\exp[-(\alpha x)^k]. In that convention, α=1/λ\alpha=1/\lambda, so the mean is α−1Γ(1+1/k)\alpha^{-1}\Gamma(1+1/k) and the variance is α−2[Γ(1+2/k)−Γ(1+1/k)2]\alpha^{-2}[\Gamma(1+2/k)-\Gamma(1+1/k)^2]. 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 μ\mu, so that X=μ+YX=\mu+Y where YY is a two-parameter Weibull variable. Its mean is μ+λΓ(1+1/k)\mu+\lambda\Gamma(1+1/k), and its variance is the same as that of YY, because adding a constant shifts every value without changing its spread.

As a quick check on the formulas, setting k=1k=1 gives the exponential distribution with scale λ\lambda: the mean becomes λ\lambda and the variance becomes λ2\lambda^2.

Common mistakes

  • Swapping shape and scale: The shape is the exponent kk; the scale is λ\lambda in (x/λ)k(x/\lambda)^k.
  • Using the second moment as the variance: E[X2]\mathbb{E}[X^2] is not the variance. Subtract the square of the mean.
  • Reporting standard deviation as variance: Standard deviation is Var⁡(X)\sqrt{\operatorname{Var}(X)} and has the original measurement units.
  • Ignoring a location parameter: A threshold shifts the mean but does not alter the variance.

References

  1. NIST/SEMATECH e-Handbook of Statistical Methods: Weibull Distribution

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.