# Conjugate prior

In Bayesian probability theory, if, given a likelihood function $p(x\mid \theta )$, the posterior distribution $p(\theta \mid x)$ is in the same probability distribution family as the prior probability distribution $p(\theta )$, the prior and posterior are then called conjugate distributions with respect to that likelihood function and the prior is called a conjugate prior for the likelihood function $p(x\mid \theta )$.
A conjugate prior is an algebraic convenience, giving a closed-form expression for the posterior; otherwise, numerical integration may be necessary. Further, conjugate priors may give intuition by more transparently showing how a likelihood function updates a prior distribution.
The concept, as well as the term "conjugate prior", were introduced by Howard Raiffa and Robert Schlaifer in their work on Bayesian decision theory. A similar concept had been discovered independently by George Alfred Barnard.

## Example

The form of the conjugate prior can generally be determined by inspection of the probability density or probability mass function of a distribution. For example, consider a random variable which consists of the number of successes $s$ in $n$ Bernoulli trials with unknown probability of success $q$ in [0,1]. This random variable will follow the binomial distribution, with a probability mass function of the form
    $p(s)={n \choose s}q^{s}(1-q)^{n-s}$
The usual conjugate prior is the beta distribution with parameters ($\alpha$, $\beta$):
    $p(q)={q^{\alpha -1}(1-q)^{\beta -1} \over \mathrm {B} (\alpha ,\beta )}$
where $\alpha$ and $\beta$ are chosen to reflect any existing belief or information ($\alpha =1$ and $\beta =1$ would give a uniform distribution) and $\mathrm {B} (\alpha ,\beta )$ is the Beta function acting as a normalising constant.
In this context, $\alpha$ and $\beta$ are called hyperparameters (parameters of the prior), to distinguish them from parameters of the underlying model (here $q$). A typical characteristic of conjugate priors is that the dimensionality of the hyperparameters is one greater than that of the parameters of the original distribution. If all parameters are scalar values, then there will be one more hyperparameter than parameter; but this also applies to vector-valued and matrix-valued parameters. (See the general article on the exponential family, and also consider the Wishart distribution, conjugate prior of the covariance matrix of a multivariate normal distribution, for an example where a large dimensionality is involved.)
If we sample this random variable and get $s$ successes and $f=n-s$ failures, then we have
    ${\begin{aligned}P(s,f\mid q=x)&={s+f \choose s}x^{s}(1-x)^{f},\\P(q=x)&={x^{\alpha -1}(1-x)^{\beta -1} \over \mathrm {B} (\alpha ,\beta )},\\P(q=x\mid s,f)&={\frac {P(s,f\mid x)P(x)}{\int P(s,f\mid y)P(y)dy}}\\&={{{s+f \choose s}x^{s+\alpha -1}(1-x)^{f+\beta -1}/\mathrm {B} (\alpha ,\beta )} \over \int _{y=0}^{1}\left({s+f \choose s}y^{s+\alpha -1}(1-y)^{f+\beta -1}/\mathrm {B} (\alpha ,\beta )\right)dy}\\&={x^{s+\alpha -1}(1-x)^{f+\beta -1} \over \mathrm {B} (s+\alpha ,f+\beta )},\end{aligned}}$
which is another Beta distribution with parameters $(\alpha +s,\beta +f)$. This posterior distribution could then be used as the prior for more samples, with the hyperparameters simply adding each extra piece of information as it comes.

## Interpretations
### Pseudo-observations

It is often useful to think of the hyperparameters of a conjugate prior distribution corresponding to having observed a certain number of pseudo-observations with properties specified by the parameters. For example, the values $\alpha$ and $\beta$ of a beta distribution can be thought of as corresponding to $\alpha -1$ successes and $\beta -1$ failures if the posterior mode is used to choose an optimal parameter setting, or $\alpha$ successes and $\beta$ failures if the posterior mean is used to choose an optimal parameter setting. In general, for nearly all conjugate prior distributions, the hyperparameters can be interpreted in terms of pseudo-observations. This can help provide intuition behind the often messy update equations and help choose reasonable hyperparameters for a prior.

### Dynamical system

One can think of conditioning on conjugate priors as defining a kind of (discrete time) dynamical system: from a given set of hyperparameters, incoming data updates these hyperparameters, so one can see the change in hyperparameters as a kind of "time evolution" of the system, corresponding to "learning". Starting at different points yields different flows over time. This is again analogous with the dynamical system defined by a linear operator, but note that since different samples lead to different inferences, this is not simply dependent on time but rather on data over time. For related approaches, see Recursive Bayesian estimation and Data assimilation.

## Practical example

Suppose a rental car service operates in your city. Drivers can drop off and pick up cars anywhere inside the city limits. You can find and rent cars using an app.
Suppose you wish to find the probability that you can find a rental car within a short distance of your home address at any time of day.
Over three days you look at the app and find the following number of cars within a short distance of your home address: $\mathbf {x} =[3,4,1]$
Suppose we assume the data comes from a Poisson distribution. In that case, we can compute the maximum likelihood estimate of the parameters of the model, which is λ=(3+4+1)/3 ≈2.67.{\textstyle \lambda ={\frac {3+4+1}{3}}\approx 2.67.} Using this maximum likelihood estimate, we can compute the probability that there will be at least one car available on a given day: p(x>0|λ≈2.67)=1−p(x=0|λ≈2.67)=1−2.67$^0$e$^{−2.67}$/0! ≈0.93{\textstyle p(x>0|\lambda \approx 2.67)=1-p(x=0|\lambda \approx 2.67)=1-{\frac {2.67^{0}e^{-2.67}}{0!}}\approx 0.93}
This is the Poisson distribution that is the most likely to have generated the observed data $\mathbf {x}$. But the data could also have come from another Poisson distribution, e.g., one with $\lambda =3$, or $\lambda =2$, etc. In fact, there is an infinite number of Poisson distributions that could have generated the observed data. With relatively few data points, we should be quite uncertain about which exact Poisson distribution generated this data. Intuitively we should instead take a weighted average of the probability of $p(x>0|\lambda )$ for each of those Poisson distributions, weighted by how likely they each are, given the data we've observed $\mathbf {x}$.
Generally, this quantity is known as the posterior predictive distribution $p(x|\mathbf {x} )=\int _{\theta }p(x|\theta )p(\theta |\mathbf {x} )d\theta \,,$ where $x$ is a new data point, $\mathbf {x}$ is the observed data and $\theta$ are the parameters of the model. Using Bayes' theorem we can expand $p(\theta |\mathbf {x} )={\frac {p(\mathbf {x} |\theta )p(\theta )}{p(\mathbf {x} )}}\,,$ therefore $p(x|\mathbf {x} )=\int _{\theta }p(x|\theta ){\frac {p(\mathbf {x} |\theta )p(\theta )}{p(\mathbf {x} )}}d\theta \,.$ Generally, this integral is hard to compute. However, if you choose a conjugate prior distribution $p(\theta )$, a closed-form expression can be derived. This is the posterior predictive column in the tables below.
Returning to our example, if we pick the Gamma distribution as our prior distribution over the rate of the Poisson distributions, then the posterior predictive is the negative binomial distribution, as can be seen from the table below. The Gamma distribution is parameterized by two hyperparameters $\alpha ,\beta$, which we have to choose. By looking at plots of the gamma distribution, we pick $\alpha =\beta =2$, which seems to be a reasonable prior for the average number of cars. The choice of prior hyperparameters is inherently subjective and based on prior knowledge.
Given the prior hyperparameters $\alpha$ and $\beta$ we can compute the posterior hyperparameters α$^′$=α+∑$_i$x$_i$=2+3+4+1=10{\textstyle \alpha '=\alpha +\sum _{i}x_{i}=2+3+4+1=10} and β$^′$=β+n=2+3=5{\textstyle \beta '=\beta +n=2+3=5}
Given the posterior hyperparameters, we can finally compute the posterior predictive of p(x>0|x)=1−p(x=0|x)=1−NB(0|10, 5/(1+5) )≈0.84{\textstyle p(x>0|\mathbf {x} )=1-p(x=0|\mathbf {x} )=1-NB\left(0\, |\, 10, {\frac {5}{1+5}}\right)\approx 0.84}
This much more conservative estimate reflects the uncertainty in the model parameters, which the posterior predictive takes into account.

## Table of conjugate distributions

Let n denote the number of observations. In all cases below, the data is assumed to consist of n points $x_{1},\ldots ,x_{n}$ (which will be random vectors in the multivariate cases).
If the likelihood function belongs to the exponential family, then a conjugate prior exists, often also in the exponential family; see Exponential family: Conjugate distributions.

### When the likelihood function is a discrete distribution

| Likelihood $p(x_{i}|\theta )$ | Model parameters $\theta$ | Conjugate prior (and posterior) distribution $p(\theta |\Theta ),p(\theta |\mathbf {x} ,\Theta )=p(\theta |\Theta ')$ | Prior hyperparameters $\Theta$ | Posterior hyperparameters $\Theta '$ | Interpretation of hyperparameters | Posterior predictive $p({\tilde {x}}|\mathbf {x} ,\Theta )=p({\tilde {x}}|\Theta ')$ |
| Bernoulli | p (probability) | Beta | $\alpha ,\,\beta \in \mathbb {R} \!$ | $\alpha +\sum _{i=1}^{n}x_{i},\,\beta +n-\sum _{i=1}^{n}x_{i}\!$ | $\alpha$ successes, $\beta$ failures | $p({\tilde {x}}=1)={\frac {\alpha '}{\alpha '+\beta '}}$ (Bernoulli) |
| Binomial with known number of trials, m | p (probability) | Beta | $\alpha ,\,\beta \in \mathbb {R} \!$ | $\alpha +\sum _{i=1}^{n}x_{i},\,\beta +\sum _{i=1}^{n}N_{i}-\sum _{i=1}^{n}x_{i}\!$ | $\alpha$ successes, $\beta$ failures | $\operatorname {BetaBin} ({\tilde {x}}|\alpha ',\beta ')$ (beta-binomial) |
| Negative binomial with known failure number, r | p (probability) | Beta | $\alpha ,\,\beta \in \mathbb {R} \!$ | $\alpha +rn,\,\beta +\sum _{i=1}^{n}x_{i}\!$ | $\alpha$ total successes, $\beta$ failures (i.e., ${\frac {\beta }{r}}$ experiments, assuming $r$ stays fixed) | $\operatorname {BetaNegBin} ({\tilde {x}}|\alpha ',\beta ')$ (beta-negative binomial) |
| Poisson | λ (rate) | Gamma | $k,\,\theta \in \mathbb {R} \!$ | $k+\sum _{i=1}^{n}x_{i},\ {\frac {\theta }{n\theta +1}}\!$ | $k$ total occurrences in ${\frac {1}{\theta }}$ intervals | $\operatorname {NB} \left({\tilde {x}}\mid k',{\frac {1}{\theta '+1}}\right)$ (negative binomial) |
| Poisson | λ (rate) | Gamma | $\alpha ,\,\beta \!$ | $\alpha +\sum _{i=1}^{n}x_{i},\ \beta +n\!$ | $\alpha$ total occurrences in $\beta$ intervals | $\operatorname {NB} \left({\tilde {x}}\mid \alpha ',{\frac {\beta '}{1+\beta '}}\right)$ (negative binomial) |
| Categorical | p (probability vector), k (number of categories; i.e., size of p) | Dirichlet | ${\boldsymbol {\alpha }}\in \mathbb {R} ^{k}\!$ | ${\boldsymbol {\alpha }}+(c_{1},\ldots ,c_{k}),$ where $c_{i}$ is the number of observations in category i | $\alpha _{i}$ occurrences of category $i$ | ${\begin{aligned}p({\tilde {x}}=i)&={\frac {{\alpha _{i}}'}{\sum _{i}{\alpha _{i}}'}}\\&={\frac {\alpha _{i}+c_{i}}{\sum _{i}\alpha _{i}+n}}\end{aligned}}$ (categorical) |
| Multinomial | p (probability vector), k (number of categories; i.e., size of p) | Dirichlet | ${\boldsymbol {\alpha }}\in \mathbb {R} ^{k}\!$ | ${\boldsymbol {\alpha }}+\sum _{i=1}^{n}\mathbf {x} _{i}\!$ | $\alpha _{i}$ occurrences of category $i$ | $\operatorname {DirMult} ({\tilde {\mathbf {x} }}\mid {\boldsymbol {\alpha }}')$ (Dirichlet-multinomial) |
| Hypergeometric with known total population size, N | M (number of target members) | Beta-binomial | $n=N,\alpha ,\,\beta \!$ | $\alpha +\sum _{i=1}^{n}x_{i},\,\beta +\sum _{i=1}^{n}N_{i}-\sum _{i=1}^{n}x_{i}\!$ | $\alpha$ successes, $\beta$ failures | |
| Geometric | p$_0$ (probability) | Beta | $\alpha ,\,\beta \in \mathbb {R} \!$ | $\alpha +n,\,\beta +\sum _{i=1}^{n}x_{i}\!$ | $\alpha$ experiments, $\beta$ total failures | |

### When likelihood function is a continuous distribution

| Likelihood $p(x_{i}|\theta )$ | Model parameters $\theta$ | Conjugate prior (and posterior) distribution $p(\theta |\Theta ),p(\theta |\mathbf {x} ,\Theta )=p(\theta |\Theta ')$ | Prior hyperparameters $\Theta$ | Posterior hyperparameters $\Theta '$ | Interpretation of hyperparameters | Posterior predictive $p({\tilde {x}}|\mathbf {x} ,\Theta )=p({\tilde {x}}|\Theta ')$ |
| Normal with known variance σ$^2$ | μ (mean) | Normal | $\mu _{0},\,\sigma _{0}^{2}\!$ | ${\frac {1}{{\frac {1}{\sigma _{0}^{2}}}+{\frac {n}{\sigma ^{2}}}}}\left({\frac {\mu _{0}}{\sigma _{0}^{2}}}+{\frac {\sum _{i=1}^{n}x_{i}}{\sigma ^{2}}}\right),\left({\frac {1}{\sigma _{0}^{2}}}+{\frac {n}{\sigma ^{2}}}\right)^{-1}$ | mean was estimated from observations with total precision (sum of all individual precisions) $1/\sigma _{0}^{2}$ and with sample mean $\mu _{0}$ | ${\mathcal {N}}({\tilde {x}}|\mu _{0}',{\sigma _{0}^{2}}'+\sigma ^{2})$ |
| Normal with known precision τ | μ (mean) | Normal | $\mu _{0},\,\tau _{0}^{-1}\!$ | ${\frac {\tau _{0}\mu _{0}+\tau \sum _{i=1}^{n}x_{i}}{\tau _{0}+n\tau }},\,\left(\tau _{0}+n\tau \right)^{-1}$ | mean was estimated from observations with total precision (sum of all individual precisions)$\tau _{0}$ and with sample mean $\mu _{0}$ | ${\mathcal {N}}\left({\tilde {x}}\mid \mu _{0}',{\frac {1}{\tau _{0}'}}+{\frac {1}{\tau }}\right)$ |
| Normal with known mean μ | σ$^2$ (variance) | Inverse gamma | $\mathbf {\alpha ,\,\beta }$ | $\mathbf {\alpha } +{\frac {n}{2}},\,\mathbf {\beta } +{\frac {\sum _{i=1}^{n}{(x_{i}-\mu )^{2}}}{2}}$ | variance was estimated from $2\alpha$ observations with sample variance $\beta /\alpha$ (i.e. with sum of squared deviations $2\beta$, where deviations are from known mean $\mu$) | $t_{2\alpha '}({\tilde {x}}|\mu ,\sigma ^{2}=\beta '/\alpha ')$ |
| Normal with known mean μ | σ$^2$ (variance) | Scaled inverse chi-squared | $\nu ,\,\sigma _{0}^{2}\!$ | $\nu +n,\,{\frac {\nu \sigma _{0}^{2}+\sum _{i=1}^{n}(x_{i}-\mu )^{2}}{\nu +n}}\!$ | variance was estimated from $\nu$ observations with sample variance $\sigma _{0}^{2}$ | $t_{\nu '}({\tilde {x}}|\mu ,{\sigma _{0}^{2}}')$ |
| Normal with known mean μ | τ (precision) | Gamma | $\alpha ,\,\beta \!$ | $\alpha +{\frac {n}{2}},\,\beta +{\frac {\sum _{i=1}^{n}(x_{i}-\mu )^{2}}{2}}\!$ | precision was estimated from $2\alpha$ observations with sample variance $\beta /\alpha$ (i.e. with sum of squared deviations $2\beta$, where deviations are from known mean $\mu$) | $t_{2\alpha '}({\tilde {x}}\mid \mu ,\sigma ^{2}=\beta '/\alpha ')$ |
| Normal | μ and σ$^2$ Assuming exchangeability | Normal-inverse gamma | $\mu _{0},\,\nu ,\,\alpha ,\,\beta$ | ${\frac {\nu \mu _{0}+n{\bar {x}}}{\nu +n}},\,\nu +n,\,\alpha +{\frac {n}{2}},\,$ $\beta +{\tfrac {1}{2}}\sum _{i=1}^{n}(x_{i}-{\bar {x}})^{2}+{\frac {n\nu }{\nu +n}}{\frac {({\bar {x}}-\mu _{0})^{2}}{2}}$ ${\bar {x}}$ is the sample mean | mean was estimated from $\nu$ observations with sample mean $\mu _{0}$; variance was estimated from $2\alpha$ observations with sample mean $\mu _{0}$ and sum of squared deviations $2\beta$ | $t_{2\alpha '}\left({\tilde {x}}\mid \mu ',{\frac {\beta '(\nu '+1)}{\nu '\alpha '}}\right)$ |
| Normal | μ and τ Assuming exchangeability | Normal-gamma | $\mu _{0},\,\nu ,\,\alpha ,\,\beta$ | ${\frac {\nu \mu _{0}+n{\bar {x}}}{\nu +n}},\,\nu +n,\,\alpha +{\frac {n}{2}},\,$ $\beta +{\tfrac {1}{2}}\sum _{i=1}^{n}(x_{i}-{\bar {x}})^{2}+{\frac {n\nu }{\nu +n}}{\frac {({\bar {x}}-\mu _{0})^{2}}{2}}$ ${\bar {x}}$ is the sample mean | mean was estimated from $\nu$ observations with sample mean $\mu _{0}$, and precision was estimated from $2\alpha$ observations with sample mean $\mu _{0}$ and sum of squared deviations $2\beta$ | $t_{2\alpha '}\left({\tilde {x}}\mid \mu ',{\frac {\beta '(\nu '+1)}{\alpha '\nu '}}\right)$ |
| Multivariate normal with known covariance matrix Σ | μ (mean vector) | Multivariate normal | ${\boldsymbol {\boldsymbol {\mu }}}_{0},\,{\boldsymbol {\Sigma }}_{0}$ | $\left({\boldsymbol {\Sigma }}_{0}^{-1}+n{\boldsymbol {\Sigma }}^{-1}\right)^{-1}\left({\boldsymbol {\Sigma }}_{0}^{-1}{\boldsymbol {\mu }}_{0}+n{\boldsymbol {\Sigma }}^{-1}\mathbf {\bar {x}} \right),$ $\left({\boldsymbol {\Sigma }}_{0}^{-1}+n{\boldsymbol {\Sigma }}^{-1}\right)^{-1}$ $\mathbf {\bar {x}}$ is the sample mean | mean was estimated from observations with total precision (sum of all individual precisions)${\boldsymbol {\Sigma }}_{0}^{-1}$ and with sample mean ${\boldsymbol {\mu }}_{0}$ | ${\mathcal {N}}({\tilde {\mathbf {x} }}\mid {{\boldsymbol {\mu }}_{0}}',{{\boldsymbol {\Sigma }}_{0}}'+{\boldsymbol {\Sigma }})$ |
| Multivariate normal with known precision matrix Λ | μ (mean vector) | Multivariate normal | $\mathbf {\boldsymbol {\mu }} _{0},\,{\boldsymbol {\Lambda }}_{0}$ | $\left({\boldsymbol {\Lambda }}_{0}+n{\boldsymbol {\Lambda }}\right)^{-1}\left({\boldsymbol {\Lambda }}_{0}{\boldsymbol {\mu }}_{0}+n{\boldsymbol {\Lambda }}\mathbf {\bar {x}} \right),\,\left({\boldsymbol {\Lambda }}_{0}+n{\boldsymbol {\Lambda }}\right)$ $\mathbf {\bar {x}}$ is the sample mean | mean was estimated from observations with total precision (sum of all individual precisions)${\boldsymbol {\Lambda }}_{0}$ and with sample mean ${\boldsymbol {\mu }}_{0}$ | ${\mathcal {N}}\left({\tilde {\mathbf {x} }}\mid {{\boldsymbol {\mu }}_{0}}',{{{\boldsymbol {\Lambda }}_{0}}'}^{-1}+{\boldsymbol {\Lambda }}^{-1}\right)$ |
| Multivariate normal with known mean μ | Σ (covariance matrix) | Inverse-Wishart | $\nu ,\,{\boldsymbol {\Psi }}$ | $n+\nu ,\,{\boldsymbol {\Psi }}+\sum _{i=1}^{n}(\mathbf {x_{i}} -{\boldsymbol {\mu }})(\mathbf {x_{i}} -{\boldsymbol {\mu }})^{T}$ | covariance matrix was estimated from $\nu$ observations with sum of pairwise deviation products ${\boldsymbol {\Psi }}$ | $t_{\nu '-p+1}\left({\tilde {\mathbf {x} }}|{\boldsymbol {\mu }},{\frac {1}{\nu '-p+1}}{\boldsymbol {\Psi }}'\right)$ |
| Multivariate normal with known mean μ | Λ (precision matrix) | Wishart | $\nu ,\,\mathbf {V}$ | $n+\nu ,\,\left(\mathbf {V} ^{-1}+\sum _{i=1}^{n}(\mathbf {x_{i}} -{\boldsymbol {\mu }})(\mathbf {x_{i}} -{\boldsymbol {\mu }})^{T}\right)^{-1}$ | covariance matrix was estimated from $\nu$ observations with sum of pairwise deviation products $\mathbf {V} ^{-1}$ | $t_{\nu '-p+1}\left({\tilde {\mathbf {x} }}\mid {\boldsymbol {\mu }},{\frac {1}{\nu '-p+1}}{\mathbf {V} '}^{-1}\right)$ |
| Multivariate normal | μ (mean vector) and Σ (covariance matrix) | normal-inverse-Wishart | ${\boldsymbol {\mu }}_{0},\,\kappa _{0},\,\nu _{0},\,{\boldsymbol {\Psi }}$ | ${\frac {\kappa _{0}{\boldsymbol {\mu }}_{0}+n\mathbf {\bar {x}} }{\kappa _{0}+n}},\,\kappa _{0}+n,\,\nu _{0}+n,\,$ ${\boldsymbol {\Psi }}+\mathbf {C} +{\frac {\kappa _{0}n}{\kappa _{0}+n}}(\mathbf {\bar {x}} -{\boldsymbol {\mu }}_{0})(\mathbf {\bar {x}} -{\boldsymbol {\mu }}_{0})^{T}$ $\mathbf {\bar {x}}$ is the sample mean $\mathbf {C} =\sum _{i=1}^{n}(\mathbf {x_{i}} -\mathbf {\bar {x}} )(\mathbf {x_{i}} -\mathbf {\bar {x}} )^{T}$ | mean was estimated from $\kappa _{0}$ observations with sample mean ${\boldsymbol {\mu }}_{0}$; covariance matrix was estimated from $\nu _{0}$ observations with sample mean ${\boldsymbol {\mu }}_{0}$ and with sum of pairwise deviation products ${\boldsymbol {\Psi }}=\nu _{0}{\boldsymbol {\Sigma }}_{0}$ | $t_{{\nu _{0}}'-p+1}\left({\tilde {\mathbf {x} }}|{{\boldsymbol {\mu }}_{0}}',{\frac {{\kappa _{0}}'+1}{{\kappa _{0}}'({\nu _{0}}'-p+1)}}{\boldsymbol {\Psi }}'\right)$ |
| Multivariate normal | μ (mean vector) and Λ (precision matrix) | normal-Wishart | ${\boldsymbol {\mu }}_{0},\,\kappa _{0},\,\nu _{0},\,\mathbf {V}$ | ${\frac {\kappa _{0}{\boldsymbol {\mu }}_{0}+n\mathbf {\bar {x}} }{\kappa _{0}+n}},\,\kappa _{0}+n,\,\nu _{0}+n,\,$ $\left(\mathbf {V} ^{-1}+\mathbf {C} +{\frac {\kappa _{0}n}{\kappa _{0}+n}}(\mathbf {\bar {x}} -{\boldsymbol {\mu }}_{0})(\mathbf {\bar {x}} -{\boldsymbol {\mu }}_{0})^{T}\right)^{-1}$ $\mathbf {\bar {x}}$ is the sample mean $\mathbf {C} =\sum _{i=1}^{n}(\mathbf {x_{i}} -\mathbf {\bar {x}} )(\mathbf {x_{i}} -\mathbf {\bar {x}} )^{T}$ | mean was estimated from $\kappa _{0}$ observations with sample mean ${\boldsymbol {\mu }}_{0}$; covariance matrix was estimated from $\nu _{0}$ observations with sample mean ${\boldsymbol {\mu }}_{0}$ and with sum of pairwise deviation products $\mathbf {V} ^{-1}$ | $t_{{\nu _{0}}'-p+1}\left({\tilde {\mathbf {x} }}\mid {{\boldsymbol {\mu }}_{0}}',{\frac {{\kappa _{0}}'+1}{{\kappa _{0}}'({\nu _{0}}'-p+1)}}{\mathbf {V} '}^{-1}\right)$ |
| Uniform | $U(0,\theta )\!$ | Pareto | $x_{m},\,k\!$ | $\max\{\,x_{1},\ldots ,x_{n},x_{\mathrm {m} }\},\,k+n\!$ | $k$ observations with maximum value $x_{m}$ | |
| Pareto with known minimum x$_m$ | k (shape) | Gamma | $\alpha ,\,\beta \!$ | $\alpha +n,\,\beta +\sum _{i=1}^{n}\ln {\frac {x_{i}}{x_{\mathrm {m} }}}\!$ | $\alpha$ observations with sum $\beta$ of the order of magnitude of each observation (i.e. the logarithm of the ratio of each observation to the minimum $x_{m}$) | |
| Weibull with known shape β | θ (scale) | Inverse gamma | $a,b\!$ | $a+n,\,b+\sum _{i=1}^{n}x_{i}^{\beta }\!$ | $a$ observations with sum $b$ of the β'th power of each observation | |
| Log-normal | Same as for the normal distribution after applying the natural logarithm to the data for the posterior hyperparameters. Please refer to Fink (1997, pp. 21–22) to see the details. | Same as for the normal distribution after applying the natural logarithm to the data for the posterior hyperparameters. Please refer to Fink (1997, pp. 21–22) to see the details. | Same as for the normal distribution after applying the natural logarithm to the data for the posterior hyperparameters. Please refer to Fink (1997, pp. 21–22) to see the details. | Same as for the normal distribution after applying the natural logarithm to the data for the posterior hyperparameters. Please refer to Fink (1997, pp. 21–22) to see the details. | Same as for the normal distribution after applying the natural logarithm to the data for the posterior hyperparameters. Please refer to Fink (1997, pp. 21–22) to see the details. | Same as for the normal distribution after applying the natural logarithm to the data for the posterior hyperparameters. Please refer to Fink (1997, pp. 21–22) to see the details. |
| Exponential | λ (rate) | Gamma | $\alpha ,\,\beta \!$ | $\alpha +n,\,\beta +\sum _{i=1}^{n}x_{i}\!$ | $\alpha$ observations that sum to $\beta$ | $\operatorname {Lomax} ({\tilde {x}}\mid \beta ',\alpha ')$ (Lomax distribution) |
| Gamma with known shape α | β (rate) | Gamma | $\alpha _{0},\,\beta _{0}\!$ | $\alpha _{0}+n\alpha ,\,\beta _{0}+\sum _{i=1}^{n}x_{i}\!$ | $\alpha _{0}/\alpha$ observations with sum $\beta _{0}$ | $\operatorname {CG} ({\tilde {\mathbf {x} }}\mid \alpha ,{\alpha _{0}}',{\beta _{0}}')=\operatorname {\beta '} ({\tilde {\mathbf {x} }}|\alpha ,{\alpha _{0}}',1,{\beta _{0}}')$ |
| Inverse Gamma with known shape α | β (inverse scale) | Gamma | $\alpha _{0},\,\beta _{0}\!$ | $\alpha _{0}+n\alpha ,\,\beta _{0}+\sum _{i=1}^{n}{\frac {1}{x_{i}}}\!$ | $\alpha _{0}/\alpha$ observations with sum $\beta _{0}$ | |
| Gamma with known rate β | α (shape) | $\propto {\frac {a^{\alpha -1}\beta ^{\alpha c}}{\Gamma (\alpha )^{b}}}$ | $a,\,b,\,c\!$ | $a\prod _{i=1}^{n}x_{i},\,b+n,\,c+n\!$ | $b$ or $c$ observations ($b$ for estimating $\alpha$, $c$ for estimating $\beta$) with product $a$ | |
| Gamma | α (shape), β (inverse scale) | $\propto {\frac {p^{\alpha -1}e^{-\beta q}}{\Gamma (\alpha )^{r}\beta ^{-\alpha s}}}$ | $p,\,q,\,r,\,s\!$ | $p\prod _{i=1}^{n}x_{i},\,q+\sum _{i=1}^{n}x_{i},\,r+n,\,s+n\!$ | $\alpha$ was estimated from $r$ observations with product $p$; $\beta$ was estimated from $s$ observations with sum $q$ | |
| Beta | α, β | $\propto {\frac {\Gamma (\alpha +\beta )^{k}\,p^{\alpha }\,q^{\beta }}{\Gamma (\alpha )^{k}\,\Gamma (\beta )^{k}}}$ | $p,\,q,\,k\!$ | $p\prod _{i=1}^{n}x_{i},\,q\prod _{i=1}^{n}(1-x_{i}),\,k+n\!$ | $\alpha$ and $\beta$ were estimated from $k$ observations with product $p$ and product of the complements $q$ | |