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 usingrawpolynomials, compare the coefficients and the mean fit of both models.Explain in your own words what a distributional model is.
Expand
model_splineto a distributional model. Use another spline to model the α parameter of the NegativeBinomial family.Create a model named
model_p2for thebody_masswith 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
interpretmodule to interpretmodel_p2. Use both plots and tables.