3.7 Exercises
Using your own words explain the following concepts in two or three sentences:
Complete pooling
No pooling
Partial pooling
Repeat the exercise we did with
model_h
. This time, without a hierarchical structure, use a flat prior such as Beta(α = 1,β = 1). Compare the results of both models.Create a hierarchical version of the tips example from Chapter 2, by partially pooling across the days of the week. Compare the results to those obtained without the hierarchical structure.
For each subpanel in Figure 3.7, add a reference line representing the empirical mean value at each level, that is, the global mean, the forward mean, and Messi’s mean. Compare the empirical values to the posterior mean values. What do you observe?
Amino acids are usually grouped into categories such as
polar
,non-polar
,charged
, andspecial
. Build a hierarchical model similar tocs_h
but including a group effect for the amino acid category. Compare the results to those...