6.11 Exercises
Read the Bambi documentation ( https://bambinos.github.io/bambi/) and learn how to specify custom priors.
Apply what you learned in the previous point and specify a HalfNormal prior for the slope of
model_t
.Define a model like
model_poly4
, but usingraw
polynomials, compare the coefficients and the mean fit of both models.Explain in your own words what a distributional model is.
Expand
model_spline
to a distributional model. Use another spline to model the α parameter of the NegativeBinomial family.Create a model named
model_p2
for thebody_mass
with the predictorsbill_length
,bill_depth
,flipper_length
, andspecies
.Use LOO to compare the model in the previous point and
model_p.
Use the functions in the
interpret
module to interpretmodel_p2
. Use both plots and tables.