Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Definition  





2 Properties  



2.1  Probability density function  





2.2  Marginal distributions  





2.3  Exponential family  





2.4  Moments of the natural statistics  





2.5  Scaling  







3 Posterior distribution of the parameters  



3.1  Interpretation of parameters  







4 Generating normal-gamma random variates  





5 Related distributions  





6 Notes  





7 References  














Normal-gamma distribution






العربية
Català
Français
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


normal-gamma
Parameters location (real)
(real)
(real)
(real)
Support
PDF
Mean [1]
Mode
Variance [1]

Inprobability theory and statistics, the normal-gamma distribution (orGaussian-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]

Definition[edit]

For a pair of random variables, (X,T), suppose that the conditional distributionofX given T is given by

meaning that the conditional distribution is a normal distribution with mean and precision — equivalently, with variance

Suppose also that the marginal distribution of T is given by

where this means that T has a gamma distribution. Here λ, α and β are parameters of the joint distribution.

Then (X,T) has a normal-gamma distribution, and this is denoted by

Properties[edit]

Probability density function[edit]

The joint probability density function of (X,T) is[citation needed]

Marginal distributions[edit]

By construction, the marginal distributionof is a gamma distribution, and the conditional distributionof given is a Gaussian distribution. The marginal distributionof is a three-parameter non-standardized Student's t-distribution with parameters .[citation needed]

Exponential family[edit]

The normal-gamma distribution is a four-parameter exponential family with natural parameters and natural statistics .[citation needed]

Moments of the natural statistics[edit]

The following moments can be easily computed using the moment generating function of the sufficient statistic:[3]

where is the digamma function,

Scaling[edit]

If then for any is distributed as[citation needed]

Posterior distribution of the parameters[edit]

Assume that x is distributed according to a normal distribution with unknown mean and precision .

and that the prior distribution on and , , has a normal-gamma distribution

for which the density π satisfies

Suppose

i.e. the components of are conditionally independent given and the conditional distribution of each of them given is normal with expected value and variance The posterior distribution of and given this dataset can be analytically determined by Bayes' theorem[4] explicitly,

where is the likelihood of the parameters given the data.

Since the data are i.i.d, the likelihood of the entire dataset is equal to the product of the likelihoods of the individual data samples:

This expression can be simplified as follows:

where , the mean of the data samples, and , the sample variance.

The posterior distribution of the parameters is proportional to the prior times the likelihood.

The final exponential term is simplified by completing the square.

On inserting this back into the expression above,

This final expression is in exactly the same form as a Normal-Gamma distribution, i.e.,

Interpretation of parameters[edit]

The interpretation of parameters in terms of pseudo-observations is as follows:

As a consequence, if one has a prior mean of from samples and a prior precision of from samples, the prior distribution over and is

and after observing samples with mean and variance , the posterior probability is

Note that in some programming languages, such as Matlab, the gamma distribution is implemented with the inverse definition of , so the fourth argument of the Normal-Gamma distribution is .

Generating normal-gamma random variates[edit]

Generation of random variates is straightforward:

  1. Sample from a gamma distribution with parameters and
  2. Sample from a normal distribution with mean and variance

Related distributions[edit]

Notes[edit]

  1. ^ a b Bernardo & Smith (1993, p. 434)
  • ^ Bernardo & Smith (1993, pages 136, 268, 434)
  • ^ Wasserman, Larry (2004), "Parametric Inference", Springer Texts in Statistics, New York, NY: Springer New York, pp. 119–148, ISBN 978-1-4419-2322-6, retrieved 2023-12-08
  • ^ "Bayes' Theorem: Introduction". Archived from the original on 2014-08-07. Retrieved 2014-08-05.
  • References[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Normal-gamma_distribution&oldid=1188984255"

    Categories: 
    Multivariate continuous distributions
    Conjugate prior distributions
    Normal distribution
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
    All articles with unsourced statements
    Articles with unsourced statements from April 2013
     



    This page was last edited on 8 December 2023, at 23:14 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki