All topics

Simple Linear Regression

A visual step-by-step guide to the key concepts in a linear regression model

Econometrics 7 chapters · ~15 min

Linear regression is one of the most foundational tools in econometrics and data science. We use it to either infer relationships between variables or to make predictions.

It models the relationship between a dependent variable and one or more independent variables by fitting a straight line through the data.

The idea is simple: given some data, find the line that best summarises the trend. But what does "best" mean? How do we measure it? And how confident can we be in the result? These notes walk through the intuition, step by step.

© 2026 Mohammad Iman