- Normal-gamma distribution
-
Normal-gamma parameters: location (real)
(real)
(real)
(real)support: pdf: mean: [1] variance: [1] In probability theory and statistics, the normal-gamma distribution is a bivariate four-parameter family of continuous probability distributions. It is the conjugate prior of a normal distribution with unknown mean and precision.[2]
Contents
Definition
Suppose
has a normal distribution with mean μ and variance 1 / (λτ), where
has a gamma distribution. Then (x,τ) has a normal-gamma distribution, denoted as
Characterization
Probability density function
Properties
Scaling
For any t > 0, tX is distributed NormalGamma(tμ,λ,α,t2β)
Marginal distributions
By construction, the marginal distribution over τ is a gamma distribution, and the conditional distribution over x given τ is a Gaussian distribution. The marginal distribution over x is a three-parameter Student's t-distribution.
Posterior distribution of the parameters
Form of the posterior for a Normal random variable with a Normal-Gamma prior:
Presume the following hierarchy for a normal random variable X with unknown mean μ and precision λ.
Where:
- μ0 is the prior mean
- S0 is the prior sum of squared errors
- n0 is the prior sample size
- ν0 is the prior degrees of freedom
Note the joint distribution of the parameters is Normal-Gamma. The posterior distribution of the parameters can be analytically determined by Bayes' rule working with the likelihood , and the prior π(λ,μ).
where , the sum of squared errors.
Now consider the prior,
The posterior distribution of the parameters is proportional to the prior times the likelihood.
Notice the right half begins to look like the kernel of a normal pdf and the left like a gamma. After a bit of juggling and completing the square the result will appear.
This is a normal gamma pdf with parameters
The reference prior is[citation needed] the limiting case as
and
Generating normal-gamma random variates
Generation of random variates is straightforward:
- Sample τ from a gamma distribution with parameters α and β
- Sample x from a normal distribution with mean μ and variance 1 / (λτ)
Related distributions
- The normal-scaled inverse gamma distribution is essentially the same distribution parameterized by variance rather than precision
- The Normal-exponential-gamma distribution
Notes
References
- Bernardo, J.M.; Smith, A.F.M. (1993) Bayesian Theory, Wiley. ISBN 0-471-49464-X
- Dearden et al. Bayesian Q-learning, Proceedings of the Fifteenth National Conference on Artificial Intelligence (AAAI-98), July 26–30, 1998, Madison, Wisconsin, USA.
Categories:- Multivariate continuous distributions
- Conjugate prior distributions
- Normal distribution
Wikimedia Foundation. 2010.