In probability and statistics, the inverse-chi-squared distribution (or inverted-chi-square distribution) is a continuous probability distribution of a positive-valued random variable. It is closely related to the chi-squared distribution and its specific importance is that it arises in the application of Bayesian inference to the normal distribution, where it can be used as the prior and posterior distribution for an unknown variance. In probability and statistics, the inverse-chi-squared distribution (or inverted-chi-square distribution) is a continuous probability distribution of a positive-valued random variable. It is closely related to the chi-squared distribution and its specific importance is that it arises in the application of Bayesian inference to the normal distribution, where it can be used as the prior and posterior distribution for an unknown variance. The inverse-chi-squared distribution (or inverted-chi-square distribution ) is the probability distribution of a random variable whose multiplicative inverse (reciprocal) has a chi-squared distribution. It is also often defined as the distribution of a random variable whose reciprocal divided by its degrees of freedom is a chi-squared distribution. That is, if X {displaystyle X} has the chi-squared distribution with ν {displaystyle u } degrees of freedom, then according to the first definition, 1 / X {displaystyle 1/X} has the inverse-chi-squared distribution with ν {displaystyle u } degrees of freedom; while according to the second definition, ν / X {displaystyle u /X} has the inverse-chi-squared distribution with ν {displaystyle u } degrees of freedom. Only the first definition will usually be covered in this article. The first definition yields a probability density function given by