The following exercises are to familiarize you with the notation and
manual calculations.
Exercise 1 (LN p. 10)
See the lecture notes for the exercise statement.
Exercise 2 — Normal
model with discrete prior
Consider the following model:

where
and
.
Calculate
- the prior predictive density
,
- Plot
. What do you observe
about the shape of the distribution?
- the posterior distribution
,
- the posterior predictive density
.
Solution (prior predictive density)
Likelihood: 
Prior predictive density: 
View the Desmos
graph.
Solution (posterior distribution)
Likelihood:

Posterior distribution:

Solution (posterior predictive density)
Posterior predictive density: 