Archive of the autumn 2025 course. This course has ended. The template projects described on this site (RiskCalc, PyMort, EconGames, QSim, SimCLT) are not offered in 2026. The 2026 course is Data Science and Advanced Programming.
WEEK 7: LINEAR REGRESSION

Supervised learning, linear regression, gradient descent, and polynomial regression

October 27, 2025

← All Weeks

Weekly Materials

Additional Notes

Week 7: Linear Regression

Topics Covered

  • Supervised Learning - the general idea
  • Linear Regression (with multiple variables)
  • Gradient Descent
  • Polynomial Regression
  • Tuning Model Complexity
  • Stock Market Prediction (if time permits)
  • Introduction to Pandas (quick tour; self-study)

Code Examples

This week includes practical implementations of regression algorithms and real-world applications like stock market prediction.

Further Reading

  • ISL Chapter 3: Linear Regression
  • PML Ch. 6.3–6.5: Bayesian linear regression, uncertainty, model comparison