A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Simple (Bivariate) OLS Regression

College Depth 107 in the knowledge graph I know this Set as goal
189topics build on this
569prerequisites beneath it
See this on the map →
Correlation CoefficientLinear Regression and Least Squares Estimation+6 moreBeta and Systematic RiskClassical OLS Assumptions (Gauss-Markov)+5 more
OLS regression estimation

Core Idea

Simple OLS regression fits the line ŷ = β₀ + β₁x that minimizes the sum of squared residuals between observed and predicted values of y. The slope estimator β̂₁ equals Cov(x,y)/Var(x), capturing how much y is predicted to change per unit increase in x. OLS is the default workhorse of empirical economics because it is computationally tractable and, under standard assumptions, produces unbiased and efficient estimates. The intercept β̂₀ gives the predicted value of y when x equals zero, though this is often not economically meaningful.

How It's Best Learned

Derive the OLS formulas by hand from the minimization problem before using software. Then replicate published regressions in a dataset like wage-education data to see how coefficient interpretation works in context.

Common Misconceptions

Explainer

Simple OLS regression answers a basic but important question: given data on two variables x and y, what is the best-fitting straight line through those points, and what does the slope of that line tell us? You have already worked with the correlation coefficient, which measures the strength and direction of a linear relationship. OLS regression goes further — it produces an actual line with a quantified slope that can be used to predict y from x and to estimate by how much y is expected to change for each unit increase in x.

The "best-fitting" line is defined precisely as the one that minimizes the sum of squared residuals — the sum of the squared vertical distances between each observed data point and the corresponding point on the line. This criterion is not arbitrary: summing raw (unsquared) residuals fails because positive and negative errors cancel, making it impossible to distinguish a good fit from a bad one. Squaring forces all residuals to contribute positively, and the unique line that minimizes this sum is the OLS line. Taking the derivative of the sum-of-squares expression with respect to the slope and intercept, setting both to zero, and solving yields closed-form formulas: β̂₁ = Cov(x, y) / Var(x) and β̂₀ = ȳ − β̂₁x̄. These are the OLS estimators.

The slope β̂₁ has a clean interpretation: it is the predicted change in y for a one-unit increase in x, holding everything else constant — though in a bivariate model there is no "everything else," so it simply captures the average linear relationship between the two variables. The intercept β̂₀ is the predicted value of y when x = 0, which is mathematically necessary but often economically meaningless (e.g., the predicted wage when education = 0 years). Notice that β̂₁ equals Cov(x,y)/Var(x): it is the covariance of x and y normalized by the variance of x. A larger covariance means a steeper slope; a larger variance in x (more spread in the predictor) means a flatter slope for the same covariance.

The most important limitation of OLS is that it estimates a conditional mean, not a causal effect. The regression line tells you that, on average in your data, a one-unit increase in x is associated with a β̂₁-unit change in y. It does not tell you that changing x causes y to change by that amount. If education and wages are positively correlated, OLS will give a positive slope — but that slope reflects the sum of every reason why educated people earn more, including unobserved factors like family background or ability that are correlated with both. Establishing causality requires additional assumptions or research designs (instrumental variables, natural experiments, randomized control) that you will study in later topics. For now, treat OLS as a tool for describing associations precisely — which is already enormously useful.

Practice Questions 3 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesProbability Density FunctionsExpected ValueWeak Law of Large NumbersProbability Axioms and RulesConditional ProbabilityIndependence of EventsSampling DistributionsStandard Error of EstimatorsHypothesis Testing: Framework and LogicP-values and Statistical SignificanceEffect Size and Practical SignificanceHypothesis Testing: Framework and LogicZ-Tests and T-Tests for MeansOne-Sample Z-Test for MeansOne-Sample and Two-Sample T-TestsInference in Linear RegressionPrediction Intervals in RegressionLinear Regression BasicsResiduals and Goodness of Fit (R²)Simple (Bivariate) OLS Regression

Longest path: 108 steps · 569 total prerequisite topics

Prerequisites (8)

Leads To (7)