Linear Regression Using Python

This week, the practical relates to the use of python (and its machine learning and plotting libraries) for several different examples of linear regression analysis.

The notebook in this practical is introduced here and is heavily annotated with explanations and advice. By studying this notebook, and running it cell-by-cell, students should get an idea of how basic regression works.

I have added further notes on confidence limits.

For comparison with statsmodels, I have added a notebook that is available here.