Chi-squared distribution Created 2026-09-24 Updated 2026-11-05
A Chi-squared distribution with statistical degrees of freedom is a Gamma distribution with shape and rate . Its Probability density function is
For a positive integer , a variable is the sum of squares of independent standard normal random variables. The gamma definition extends the law to noninteger positive degrees of freedom; it does not require a fractional number of Gaussian coordinates.
Its mean is , its variance is , and its Moment-generating function is for . These follow directly from the Gamma density or by multiplying the squared-normal transforms in the integer case.
The law appears when Gaussian deviations are aggregated as a squared length. For iid observations with and , the Sample variance satisfies . Centering removes the one-dimensional sample-mean direction, leaving independent Gaussian coordinates after an orthogonal change of basis. This exact normal-sampling law underlies confidence intervals for a variance; it is not a universal variance-sampling formula for arbitrary data.
Exponential characterization by a uniform random split Created 2026-09-24 Updated 2026-11-05
Let have probability density function , and let be independent and uniform on . Put , . Then and are independent if and only if they are identically distributed exponential random variables of some rate , equivalently has gamma density .
To prove the nontrivial direction without substituting at a possibly singular boundary, use the uniform split of a random total formulas
The function is continuous for positive . independence forces to depend only on . Its positive-support endpoint is the same as that of ; if that endpoint were finite and nonzero, independence would make the endpoint of twice as large, a contradiction. Thus is positive at every positive argument.
Comparing equal sums gives , initially almost everywhere and then everywhere by continuity. Hence is independent of , with . The continuous positive solutions are exponentials. Since is a probability density function, it follows that with ; the joint density then gives . Conversely beta-gamma independence proves independence for this gamma total. No assumption that is finite was used.
Inverse-gamma distribution Created 2026-09-28 Updated 2026-11-05
The inverse-gamma distribution with shape and scale has probability density function
Equivalently, has a gamma distribution with shape and rate . The inverse change of variables has absolute Jacobian determinant , which turns the gamma density into the displayed expression. Thus the inverse-gamma scale parameter is the reciprocal variable's gamma rate, not its gamma scale.
Its moments satisfy when . For positive the defining integral diverges at infinity. In particular,
For , the expected value and variance are both one. The distribution is useful for positive scale uncertainty, but its heavy tail means that a valid normalized probability distribution can still lack a finite expected value.
Use the gamma density and the normalization integral for shape :
The same argument, valid for , gives .
Integrating against the Gamma density gives the moment-generating function of a gamma distribution:
The change of variables reduces the integral to using the gamma function. For the defining integral is infinite. In particular the moment-generating function is finite on a neighbourhood of zero.
The inverse change of variables is , , on , . Its absolute Jacobian determinant is
The change of variables for probability densities therefore gives
This factorizes on a product domain into a unit uniform density in and a shape-two Gamma density in . Thus and are independent, with and . This is the shape- case of beta-gamma independence.