3 Modeling Data using Linear Regression

3.1 Summary

During this workshop, we spent time learning how to model data in Python using linear regression.

3.2 Learning Objectives

After completing this workshop, you are expected to be able to:

  • Fit simple and multiple linear regression models.
  • Interpret the estimated parameters of the regression model.
  • Understand the inference tools made available in the model summary.
  • Perform a diagnostic analysis on the residuals.

3.3 Content

Title Link
0.1: Google Colab Slides https://inmas-training.github.io/lecture-slides/00a-google-colab.pdf
3.1: Linear Regression Slides https://inmas-training.github.io/lecture-slides/03a-linear-regression.pdf
3.2: Linear Regression Notebook Open In Colab

3.4 Resources

Title Link
Statistical Modeling: The Two Cultures http://www2.math.uu.se/~thulin/mm/breiman.pdf

3.5 Advanced

Finished with all of the exercises? Please try to solve this extended problem.

Title Link
0.2: Review of Linear Algebra with NumPy Open In Colab
3.3: Custom Implementation of Linear Regression Open In Colab
3.4: Project: Descending Gradients Open In Colab