The normal model measures continuous values and is commonly used for random variables whose distributions are unknown. For mean
with the probability
For multiple values
Known Variance
Since this model has two parameters, it can be hard to analyze. We first start with a easier version, where
the posterior is
Interpretation
We can see
Special Priors
A non-informative prior has
With this โflatโ improper prior, the posterior is
Posterior Prediction
Since the Normal is a conjugate for itself, the posterior predictive distribution can also be simplified,
becomes
Unknown Variance
Now, with unknown variance
Fully Conjugate Prior
The ๐ฅ Conjugate joint prior is
Note that for this fully conjugate prior, the prior for
The joint posterior
The marginal posterior
The conditional posterior
Interpretation
We can interpret
The posterior mean with a fully conjugate prior for
so we can also interpret
Special Priors
The non-informative prior has
Sampling
To sample from this distribution, we can perform the following steps:
- Sample
. - Set
. - Sample
.
Semi-Conjugate Prior
The fully conjugate prior has
Now,
but the marginal posterior follows
where
Because of this non-standard distribution, we need to adjust our sampling approach. One solution is ๐งฑ Grid Sampling, which we can use to sample