Chapter 4 — Linear models
See the excerpt from Chapter 4 for a preview of the linear models topics covered in the book.
Notebooks
Each notebook contains the code examples from one section of the 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