ArticleslgStudy

science

Normal-inverse-gamma distribution

Normal-inverse-gamma distribution is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Normal-inverse-gamma distribution rather than just read about it. In short: In probability theory and statistics, the normal-inverse-gamma distribution (or Gaussian-inverse-gamma distribution) is a four-parameter family of multivariate continuous probability distributions. It is the conjugate prior of a normal distribution with unknown mean and variance.

Normal-inverse-gamma distribution — main illustration
Normal-inverse-gamma distribution — illustration

Key takeaways

  • Normal-inverse-gamma distribution belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Normal-inverse-gamma distribution to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Normal-inverse-gamma distribution from memory before moving on to harder problems.

Reference excerpt

In probability theory and statistics, the normal-inverse-gamma distribution (or Gaussian-inverse-gamma distribution) is a four-parameter family of multivariate continuous probability distributions. It is the conjugate prior of a normal distribution with unknown mean and variance.

Definition Suppose

x∣σ2,μ,λ∼N(μ,σ2/λ) has a normal distribution with mean μ and variance σ2/λ, where

σ2∣α,β∼Γ−1(α,β) has an inverse-gamma distribution. Then (x,σ2) has a normal-inverse-gamma distribution, denoted as

(x,σ2)∼N-Γ−1(μ,λ,α,β). (NIG is also used instead of N-Γ−1.) The normal-inverse-Wishart distribution is a generalization of the normal-inverse-gamma distribution that is defined over multivariate random variables.

Characterization

Probability density function f(x,σ2∣μ,λ,α,β)=λσ2πβαΓ(α)(1σ2)α+1exp⁡(−2β+λ(x−μ)22σ2) For the multivariate form where 𝐱 is a k×1 random vector,

f(𝐱,σ2∣μ,𝐕−1,α,β)=|𝐕|−1/2(2π)−k/2βαΓ(α)(1σ2)α+1+k/2exp⁡(−2β+(𝐱−𝝁)T𝐕−1(𝐱−𝝁)2σ2). where |𝐕| is the determinant of the k×k matrix 𝐕. Note how this last equation reduces to the first form if k=1 so that 𝐱,𝐕,𝝁 are scalars.

Alternative parameterization It is also possible to let γ=1/λ in which case the pdf becomes

f(x,σ2∣μ,γ,α,β)=1σ2πγβαΓ(α)(1σ2)α+1exp⁡(−2γβ+(x−μ)22γσ2) In the multivariate form, the corresponding change would be to regard the covariance matrix 𝐕 instead of its inverse 𝐕−1 as a parameter.

Cumulative distribution function F(x,σ2∣μ,λ,α,β)=e−βσ2(βσ2)α(erf⁡(λ(x−μ)2σ)+1)2σ2Γ(α)

Properties

Marginal distributions Given (x,σ2)∼N-Γ−1(μ,λ,α,β). as above, σ2 by itself follows an inverse gamma distribution:

σ2∼Γ−1(α,β) while αλβ(x−μ) follows a t distribution with 2α degrees of freedom.

In the multivariate case, the marginal distribution of 𝐱 is a multivariate t distribution:

𝐱∼t2α(𝝁,βα𝐕)

Summation

Scaling Suppose

(x,σ2)∼N-Γ−1(μ,λ,α,β). Then for c>0,

(cx,cσ2)∼N-Γ−1(cμ,λ/c,α,cβ). Proof: To prove this let (x,σ2)∼N-Γ−1(μ,λ,α,β) and fix c>0. Defining Y=(Y1,Y2)=(cx,cσ2), observe that the PDF of the random variable Y evaluated at (y1,y2) is given by 1/c2 times the PDF of a N-Γ−1(μ,λ,α,β) random variable evaluated at (y1/c,y2/c). Hence the PDF of Y evaluated at (y1,y2) is given by fY(y1,y2)=1c2λ2πy2/cβαΓ(α)(1y2/c)α+1exp⁡(−2β+λ(y1/c−μ)22y2/c)=λ/c2πy2(cβ)αΓ(α)(1y2)α+1exp⁡(−2cβ+(λ/c)(y1−cμ)22y2). The right hand expression is the PDF for a N-Γ−1(cμ,λ/c,α,cβ) random variable evaluated at (y1,y2), which completes the proof.

Exponential family Normal-inverse-gamma distributions form an exponential family with natural parameters θ1=−λ2, θ2=λμ, θ3=α, and θ4=−β+−λμ22 and sufficient statistics T1=x2σ2, T2=xσ2, T3=log⁡(1σ2), and T4=1σ2.

Information entropy

Kullback–Leibler divergence Measures difference between two distributions.

Maximum likelihood estimation

Posterior distribution of the parameters See the articles on normal-gamma distribution and conjugate prior.

Interpretation of the parameters See the articles on normal-gamma distribution and conjugate prior.

Generating normal-inverse-gamma random variates Generation of random variates is straightforward:

Sample σ2 from an inverse gamma distribution with parameters α and β Sample x from a normal distribution with mean μ and variance σ2/λ

Related distributions The normal-gamma distribution is the same distribution parameterized by precision rather than variance A generalization of this distribution which allows for a multivariate mean and a completely unknown positive-definite covariance matrix σ2𝐕 (whereas in the multivariate inverse-gamma distribution the covariance matrix is regarded as known up to the scale factor σ2) is the normal-inverse-Wishart distribution

See also Compound probability distribution

References

Denison, David G. T.; et al. (2002). Bayesian Methods for Nonlinear Classification and Regression. Wiley. ISBN 0471490369. Koch, Karl-Rudolf (2007). Introduction to Bayesian Statistics (2nd ed.). Springer. ISBN 354072723X.

Illustrations

Normal-inverse-gamma distribution illustration

Worked examples

Example 1 — a first encounter with Normal-inverse-gamma distribution

Start with the simplest possible case. Write down what Normal-inverse-gamma distribution claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Normal-inverse-gamma distribution before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Normal-inverse-gamma distribution ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Normal-inverse-gamma distribution

In research
Normal-inverse-gamma distribution appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Normal-inverse-gamma distribution in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Normal-inverse-gamma distribution is common in secondary-school and first-year university syllabi. It links to neighbouring topics Continuous distributions, Multivariate continuous distributions, Normal distribution, so understanding it makes those chapters shorter.
In everyday life
Look for Normal-inverse-gamma distribution outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Normal-inverse-gamma distribution” →

How to study Normal-inverse-gamma distribution in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Normal-inverse-gamma distribution means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Normal-inverse-gamma distribution out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Normal-inverse-gamma distribution in simple terms?

In probability theory and statistics, the normal-inverse-gamma distribution (or Gaussian-inverse-gamma distribution) is a four-parameter family of multivariate continuous probability distributions. It is the conjugate prior of a normal distribution with unknown mean and variance.

Why does Normal-inverse-gamma distribution matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Normal-inverse-gamma distribution?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Normal-inverse-gamma distribution.

Tags

  • Continuous distributions
  • Multivariate continuous distributions
  • Normal distribution

Keep exploring