Chapter 4 — Linear models#
See the Chapter 4 outline for an overview of what is covered in the book
Notebooks#
Each notebook contains the code examples from corresponding section in book. If you’re reading the book, you should follow along by running the commands in the these notebooks, to check all the probability calculations for yourself.
Simple linear regression 41_simple_linear_regression.ipynb
Multiple linear regression 42_multiple_linear_regression.ipynb
Interpreting linear models 43_interpreting_linear_models.ipynb
Regression with categorical predictors 44_regression_with_categorical_predictors.ipynb
Causal inference using linear models 45_causal_inference.ipynb
Generalized linear models 46_generalized_linear_models.ipynb