- Learn
- Business & Economics
- Economics
- Econometrics 1
- Simple Regression Model
The Simple Regression Model
IntermediateLesson 1 of 8 in Econometrics 1 Course
What you will learn
- Recognize how the data sets economists use are structured, and explain why answering a causal question means comparing outcomes with other factors held fixed.
- Tell apart the main kinds of economic dataIdentify cross-sectional, time-series, pooled cross-sectional and panel data, and explain how the way data were collected affects what they can show.
- Explain causality and ceteris paribusDistinguish a causal effect from an association, use ceteris paribus and counterfactual reasoning, and describe the ideal experiment for an economic question.
- Tell apart the main kinds of economic data
- Write the population model that links an outcome to one explanatory variable, interpret its parameters and error term, and state the assumption that gives the slope a ceteris paribus meaning.
- Write the model and name its partsWrite y = β₀ + β₁x + u for an economic question, name each part, and read β₁ as the effect of x when the unobserved factors are held fixed.
- State the zero conditional mean assumptionExplain the assumption E(u | x) = 0, judge whether it is believable in an application, and connect it to the population regression function.
- Write the model and name its parts
- Compute the ordinary least squares (OLS) estimates from data, interpret the estimated line in the units of the data, and use fitted values and residuals.
- Derive and compute the OLS estimatesExplain the least-squares criterion, use the formulas for the slope and intercept, and compute the estimates by hand for a small data set.
- Interpret the estimated regression lineState what the estimated slope and intercept mean in the units of the data, predict y for a given x, and avoid reading more into the estimates than they show.
- Work with fitted values and residualsCompute fitted values and residuals, use the properties OLS guarantees in every sample, and keep residuals apart from the unobserved errors.
- Derive and compute the OLS estimates
- Measure how much of the variation in the outcome a regression explains, see how units of measurement change the estimates, and interpret models that use logarithms.
- Measure goodness of fit with R-squaredSplit the variation in y into explained and residual parts, compute and interpret R-squared, and explain what it does and does not tell you.
- Change the units of measurementPredict how rescaling or shifting y or x changes the OLS estimates, and choose units that make the results easy to read.
- Interpret log and level functional formsUse natural logarithms in simple regression and read slopes as unit changes, percentage changes, semi-elasticities or elasticities.
- Measure goodness of fit with R-squared
- State the assumptions under which OLS is unbiased, describe how precise the slope estimate is, and decide whether a simple regression slope can be read as a causal effect.
- State the assumptions and show that OLS is unbiasedList the four assumptions behind unbiasedness, explain what unbiasedness means across repeated samples, and recognize what goes wrong when an assumption fails.
- Describe the precision of the OLS slopeUse the homoskedasticity assumption to describe the sampling variance of the slope, estimate the error variance, and compute the standard error of the regression and of the slope.
- Decide when the slope is a causal effectConnect the zero conditional mean assumption to ceteris paribus, spot the usual reasons it fails, and explain why random assignment makes the slope causal.
- State the assumptions and show that OLS is unbiased
Simple Regression Model study guide
1Read economic data and frame causal questions
An economic data set records both outcomes and the choices behind them. Its structure tells you who is being compared and whether time matters; its collection tells you how credible that comparison may be. Learn to distinguish a survey from a time series or panel, then turn an economic question into an other-things-equal comparison. The same association can support a useful forecast and a weak policy claim.
1.1 Who and when the data describe
Econometrics uses statistical methods to estimate economic relationships, test theories, and evaluate policies. Before fitting a line, find out what one row represents. A worker, a month, and a city-year are different observation units, even if each row contains two numbers.
Four common structures
| Structure | What is observed? | Example |
|---|---|---|
| Cross section | Many units in one period | Wages and schooling of 2,000 workers in 2024 |
| Time series | One unit over successive periods | One country's monthly unemployment rate, 2000–2024 |
| Pooled cross sections | Separate samples in different periods | Different households surveyed in 2015 and 2023 |
| Panel | The same units across periods | The same 150 cities each year, 2010–2020 |
In a cross section, row order carries no economic information. Sorting the workers by wage leaves the data set unchanged. A time series has a meaningful order: moving January after June would destroy information about timing. Nearby months are often related, and trends, seasonal patterns, and the frequency of measurement affect the analysis.
Pooled cross sections and panels both contain dates. The deciding question is whether the same units recur. New random samples of households in two years form pooled cross sections. Following the original households forms a panel. In the city example there are 11 years, including both endpoints, so the number of city-year observations is . Repeated cities allow comparisons of a city with itself over time.
How the observations were collected
A cross section is often analyzed as a random sample: observations are drawn independently from the same population. This makes the population being sampled essential. A survey reaching only large firms cannot stand for all firms without further justification. Neighboring regions may also share labor-market shocks, putting independence in doubt.
Most economic data are observational: they record choices made by people, firms, or governments. Schooling and fertilizer use are typically chosen for reasons. Those reasons may also affect wages or yields. Experimental data arise when a researcher assigns the variable of interest, as when places in training are allocated by lottery. Assignment and data structure answer different questions: an experiment can produce a cross section, and a panel can remain observational.
Match the calculation to the argument
OLS can compute a line, fitted values, and R-squared for each of these structures. The calculation alone supplies no guarantee about the estimates. Statistical claims depend on how observations were generated. In particular, repeatedly observing one city does not give the same independent information as observing many independently sampled cities.
When opening a data set, identify the unit, the dates, whether units recur, and how units entered the sample. Then ask how the explanatory variable was determined. These details decide which comparisons the rows can support.
Key Takeaways
- Cross sections compare units in one period; time series follow one unit through time.
- Pooled cross sections draw new samples; panels follow the same units.
- Random sampling concerns entry into the sample; experimental assignment concerns the explanatory variable.
- OLS calculations are available for many data structures, but their statistical justification depends on data collection.
1.2 What an other-things-equal comparison asks
A causal question asks what would happen to an outcome if something changed. For example, “How would a worker's earnings change with one more year of schooling?” asks about an intervention. It is different from asking whether more educated workers currently earn more.
The comparison behind a causal effect
A causal effect compares outcomes when the variable of interest changes and other relevant factors stay fixed. Economists call this ceteris paribus, meaning “other things equal.” Ability, experience, and family background can affect earnings alongside schooling. A schooling comparison must keep their influence from being mistaken for the effect of schooling.
For one worker, imagine earnings with 12 years of schooling and earnings with 13 years. The unobserved alternative is a counterfactual: what the same worker would have earned under the other schooling level. We observe only one outcome for that worker in that situation. Data therefore compare different workers, and the challenge is to make those workers comparable in the other factors.
Why an association can mislead
| Mechanism | How it creates an association |
|---|---|
| A causal effect | Changing schooling changes earnings |
| An omitted factor | Ability affects both schooling and earnings |
| Reverse causality | Crime causes cities to hire more police |
An observed slope can mix these mechanisms. Cities with many police officers may have high crime because crime led to hiring. The positive association does not tell you that adding officers increases crime. Likewise, higher average wages among educated workers may partly reflect their higher average ability.
A larger sample can estimate such an association very precisely. It does not make workers comparable in ability or stop cities responding to crime.
Describe the ideal experiment
Suppose the question concerns fertilizer and crop yield. Randomly assign plots to receive 0, 50, or 100 kg of fertilizer per hectare. Because assignment is random, land quality is the same on average across fertilizer groups. Differences in average yield then estimate fertilizer effects without systematic differences in land quality driving the comparison.
Random assignment balances other factors on average; it need not give every plot an identical soil type. Describing this ideal experiment is useful even when practical or ethical constraints prevent running it. It identifies what the observational comparison must approximate. In simple regression, that argument will be expressed through zero conditional mean.
Prediction has a different purpose
A household's car ownership may help predict its income because both reflect its resources. Buying another car is not a way to raise that household's income. A prediction uses an association to guess an outcome; a causal claim says what changing the explanatory variable would do.
Before interpreting a regression, phrase the question in words. “What wage would we predict?” calls for a fitted relationship. “What would additional schooling do?” also calls for a reason why other wage determinants are comparable.
Key Takeaways
- A causal effect is an other-things-equal change in an outcome.
- The counterfactual is the outcome the same unit would have had under a different choice.
- Omitted factors and reverse causality can generate an association.
- Random assignment makes other determinants comparable on average.
- A useful predictor need not be a useful intervention.
2Build the population model
A regression equation separates the variable you want to study from the other influences on the outcome. Its unknown parameters describe the population; estimates will come from a sample. Write the model, attach units to its slope, and identify what remains in the error. Then ask whether the average error changes with the explanatory variable. That question connects the equation to the causal comparison you want to make.
2.1 The outcome, regressor, and error
The simple linear regression model describes a population relationship using one explanatory variable:
The equation is a way to organize the economic question. Choosing what goes into each part is substantive work, even before any data are used.
Name the parts
| Part | Meaning |
|---|---|
| Dependent variable: the outcome to explain | |
| Independent variable or regressor: the explanatory variable | |
| Intercept: the level of the systematic part at zero | |
| Slope: the change per unit of the regressor, holding the error fixed | |
| Error or disturbance: all other influences on the outcome |
“Independent variable” is a name for the regressor. The name itself makes no claim that the regressor is statistically independent of the error.
For a schooling question, write , with wage in dollars per hour and education in years. The error contains experience, ability, motivation, health, region, and luck. A factor can be observed in the data and still remain in the error if the equation does not include it as a regressor.
Read the slope in its units
Compare two values while holding the other factors fixed. Subtract the model before the change from the model after it:
With , this becomes . If the schooling slope is 0.90, one extra year raises the hourly wage by 0.90 dollars with the other wage determinants unchanged. Two extra years give 1.80 dollars in this model. The effect in units is constant at every starting schooling level.
For crop yield on fertilizer, both measured in kg per hectare, the slope has units of kg of yield per hectare for each additional kg of fertilizer per hectare. Assigning the variables in reverse answers a different question. Start from the outcome you want to explain.
Parameters and estimates
The population coefficients are fixed but unknown. A sample gives estimates written and . Another sample will generally produce different estimates of those same parameters. A software coefficient is therefore an estimate, even when it is printed to several decimal places.
The word linear concerns the parameters. The model is also linear in its coefficients. Transforming a variable does not prevent using OLS, though it changes how the slope is interpreted.
From an equation to evidence
Holding the error fixed defines the comparison of interest. Writing the equation does not arrange that comparison in the observed data. If schooling is related to ability, workers at different schooling levels also differ in a factor inside the error. To learn the ceteris paribus slope from their wages, we need an argument about the average error at each schooling level.
Key Takeaways
- The error contains outcome determinants omitted from the equation.
- Population parameters are unknown constants; sample estimates carry hats.
- The slope is measured in units of the outcome per unit of the regressor.
- Linearity is in the parameters, so a log-transformed variable can still enter a linear regression.
2.2 Why the average error must not move with the regressor
The error contains many influences, so individual errors will differ. The key question is whether their average changes systematically with the explanatory variable. This is what the zero conditional mean assumption addresses.
Overall mean and conditional mean
With an intercept, we can normalize the population error to have mean zero: . If its mean were 2, add 2 to the intercept and subtract 2 from the error. The model would describe exactly the same outcomes.
That normalization says nothing about differences across values of the regressor. Errors could average −3 among people with little schooling and +3 among people with much schooling while averaging zero overall.
Mean independence requires : the mean error is the same at every regressor value. Combining this with the zero-mean normalization gives
This is zero conditional mean, often the crucial assumption for interpreting an econometric regression.
What the condition asks in an application
In the wage equation, ability belongs to the error. If ability is higher on average among people with more schooling and raises wages, the error's average rises with schooling. The condition fails: wage differences combine schooling and ability.
Now consider fertilizer assigned randomly to plots. Assignment is unrelated to land quality, so average land quality does not systematically rise with fertilizer. This supports zero conditional mean by design. If farmers instead put more fertilizer on their best land, the comparison mixes fertilizer with land quality.
The condition does not require every plot to have the same land quality or every worker to have identical ability. It constrains the average of the combined error at each regressor value. Large individual errors are compatible with a zero conditional mean.
Derive the population regression function
Take the conditional expectation of the model:
The coefficients and the given value of the regressor stay fixed in this calculation. With zero conditional mean, the last term vanishes, leaving . This is the population regression function: the mean outcome at each regressor value. Individual outcomes scatter around it.
Two misleading checks
Zero conditional mean implies . The reverse is weaker: covariance detects linear co-movement, so it can be zero even if the mean error varies nonlinearly with the regressor, for example with its square.
Nor can the condition be established by checking OLS residuals. OLS forces the sample residuals to have zero mean and zero sample covariance with the regressor. Those are features of the fitting rule. The population error uses unknown coefficients and is not observed.
Assess the assumption through the economic setting: name the factors in the error and explain how the regressor was chosen or assigned. A small residual sum or a high R-squared answers a different question about fit.
Key Takeaways
- An overall zero error mean can be obtained by shifting the intercept.
- Zero conditional mean requires the error to average zero at every regressor value.
- Under zero conditional mean, the population conditional mean is the regression line.
- Zero covariance is weaker than zero conditional mean.
- OLS residual properties cannot establish a population assumption.
3Fit and interpret an OLS line
Ordinary least squares turns a sample of paired observations into an estimated line. Follow the minimization rule through to the slope and intercept, then use the line to predict outcomes in their original units. Fitted values and residuals show what the line captures and what it leaves behind. Their exact sample properties also reveal why a successful calculation alone cannot establish an economic assumption.
3.1 How least squares chooses the line
OLS chooses a line by making its squared vertical misses as small as possible. A miss is the observed outcome minus the line's fitted value. Squaring prevents positive and negative misses from canceling and gives especially large misses substantial weight.
Minimize the squared misses
For candidate coefficients , the objective is
Differentiating with respect to each coefficient and setting the derivatives to zero gives the first-order conditions
These say the residuals sum to zero and their regressor-weighted sum is zero. They also match the sample moments corresponding to and , so a method-of-moments calculation gives the same coefficients.
Solving yields
The denominator must be positive. If everyone has 12 years of schooling, there is no schooling variation from which to learn a slope.
Compute a small example
Five workers have schooling of 8, 10, 12, 14, and 16 years and hourly wages of 9, 14, 12, 18, and 17 dollars. Their means are 12 years and 14 dollars.
| Schooling deviation | Wage deviation | Product | Squared schooling deviation |
|---|---|---|---|
| −4 | −5 | 20 | 16 |
| −2 | 0 | 0 | 4 |
| 0 | −2 | 0 | 0 |
| 2 | 4 | 8 | 4 |
| 4 | 3 | 12 | 16 |
The products total 40, as do the squared schooling deviations. Thus . Next, , giving . Compute the slope before the intercept; the intercept uses that slope and both sample means.
Connect slope, covariance, and correlation
The sample covariance divided by the sample variance gives the same slope because their common divisor cancels. Equivalently,
The sign matches the correlation. Its magnitude also depends on the measurement units. Regressing schooling on wage changes the denominator to the wage sum of squares, 54, so the reversed slope is years per dollar. Reversing a regression generally does not give the reciprocal slope.
Run the calculation in software
For a data frame named df, the equivalent commands are:
- R:
lm(wage ~ educ, data = df). - Stata:
regress wage educ. - Python: after
import statsmodels.formula.api as smf, usesmf.ols("wage ~ educ", data=df).fit().
The intercept appears as (Intercept), _cons, or Intercept. The schooling row reports the slope.
Key Takeaways
- OLS minimizes the sum of squared vertical residuals.
- The first-order conditions set the residual sum and regressor-weighted residual sum to zero.
- Compute the slope from centered cross-products divided by centered regressor squares.
- Compute the intercept from both sample means and the estimated slope.
- The slope requires variation in the regressor.
- Reversing the variables changes the regression being estimated.
3.2 What the estimated coefficients say
An estimated line gives a fitted outcome for each value of the explanatory variable:
It estimates the population conditional mean when the population regression function is linear. Reading the output means turning these coefficients into statements about quantities.
Interpret a change
For the wage line , an additional year of schooling goes with a predicted hourly wage 1 dollar higher. A four-year schooling difference gives a predicted wage difference of 4 dollars:
Both sets of units matter: dollars per hour of wage for each year of schooling. Saying “wages rise by one” leaves out the time basis and schooling unit.
For , with both variables in kg per hectare, an extra kg of fertilizer per hectare goes with 12 kg more predicted crop yield per hectare. The slope describes the change; the intercept supplies the starting height.
Interpret the intercept and a prediction
The wage intercept is the fitted hourly wage at zero years of schooling, 2 dollars. The sample covers 8–16 years, so zero is outside its range. The intercept is needed to position the fitted line, but the sample gives little support for interpreting it as the wage of a typical worker with no schooling.
A worker with 13 years has fitted wage dollars per hour. This estimates the average outcome for that schooling level. A particular worker may earn more or less because the line does not capture all wage determinants.
Predicting at 25 years extends the straight line well beyond the observed data. This extrapolation assumes the relationship continues where the sample offers no direct evidence. A reasonable prediction inside the range need not remain reasonable far outside it.
Assess economic size
Relative to the sample mean wage of 14 dollars, the 1-dollar slope is about of that mean. This is a comparison at a reference wage. It does not turn a level-level model into a constant-percentage model: the same 1 dollar is a smaller percentage of a higher wage.
A positive sign alone says little about practical importance. Attach the units, choose a meaningful change in the regressor, and compare the resulting outcome change with a relevant level.
Choose the right language
An estimated association becomes a causal estimate only with a credible other-things-equal argument. If ability raises wages and is related to schooling, the fitted schooling slope includes some of ability's influence. Describe the result as “associated with” or “predicts” when that concern remains.
Read a regression output in order: identify the dependent variable and its units, locate the coefficient beside the regressor, then inspect the intercept and sample size. R-squared summarizes sample fit; coefficient standard errors describe sampling precision; the standard error of the regression describes outcome scatter around the line.
Key Takeaways
- The slope gives the predicted outcome change per unit change in the regressor.
- The intercept is the predicted outcome when the regressor is zero.
- An individual outcome may differ from the fitted mean.
- Extrapolation extends the fitted relationship beyond the observed regressor range.
- Causal language requires a credible argument about the other outcome determinants.
3.3 Fitted values, residuals, and exact sample properties
Each observation can be split into the line's prediction and its remaining miss:
A positive residual places the observation above the line: the outcome is larger than predicted. A negative residual places it below. Residuals retain the units of the dependent variable.
Work through the wage sample
Using :
| Schooling in years | Wage in dollars per hour | Fitted wage | Residual |
|---|---|---|---|
| 8 | 9 | 10 | −1 |
| 10 | 14 | 12 | 2 |
| 12 | 12 | 14 | −2 |
| 14 | 18 | 16 | 2 |
| 16 | 17 | 18 | −1 |
For the second worker, the line predicts 12 dollars and the observed wage is 14 dollars. Subtract prediction from observation to get +2. Reversing that subtraction would reverse the meaning of the sign.
What OLS guarantees with an intercept
First, residuals sum to zero: . This is the first first-order condition. It also makes their sample mean zero.
Second, their regressor-weighted sum is zero:
Together with their zero mean, this makes their sample covariance with the regressor zero. The word uncorrelated is used when both sample variances are positive.
Third, the line passes through the two sample means. At 12 years it predicts dollars, exactly the sample mean wage. The average fitted wage is also 14 dollars, since averaging the residual decomposition leaves a zero average residual.
These are algebraic consequences of fitting OLS with an intercept. They hold even for a sample in which omitted ability badly distorts the schooling slope. In a perfect fit every residual is zero; the weighted-sum identities still hold.
The residual is not the population error
The error is . It uses unknown population coefficients. The residual uses their sample estimates. Even after observing the worker's wage and schooling, the population error remains unknown.
This distinction matters for zero conditional mean. Finding zero covariance between the computed residuals and schooling checks a property of the calculation, not the relationship between schooling and the unknown errors in the population.
Look at the pattern of misses
A residual plot adds information that the sum of residuals hides. A curved pattern around zero suggests the straight-line functional form misses a systematic relationship. One or two very large residuals call for checking extreme observations and possible data errors. A spread that grows with the regressor suggests changing error variance.
All these patterns can coexist with a residual sum of zero. Positive and negative misses cancel in a sum, but squaring them measures how much unexplained variation remains.
Key Takeaways
- A residual is observed outcome minus fitted outcome.
- With an intercept, OLS residuals sum to zero and their regressor-weighted sum is zero.
- The fitted line passes through the sample means.
- The population error is unobserved; a residual is computed using estimated coefficients.
- Residual identities hold by construction and do not establish zero conditional mean.
- Residual plots can reveal curvature, extreme misses, or changing spread.
4Measure fit and interpret changes in units or percentages
The same estimated relationship can look different when its units change, and a logarithm changes what the slope means. Start by splitting outcome variation into fitted and residual parts to calculate R-squared. Then track coefficient changes when units are rescaled or the regressor is centered. Finally, compare the four log and level forms so that each reported effect has the right units, percentage interpretation, and range of use.
4.1 How much sample variation the line explains
R-squared compares the line's remaining misses with the variation in the outcome before using the regressor. It measures sample fit. The word “explained” in this calculation describes a fitted pattern, not a causal mechanism.
Split the variation
For OLS with an intercept, define three sums:
| Quantity | Formula | What varies |
|---|---|---|
| Total, SST | Observed outcomes around their mean | |
| Explained, SSE | Fitted outcomes around the outcome mean | |
| Residual, SSR | Observed outcomes around the fitted line |
The residual decomposition gives . Squaring and adding produces a cross-product term. OLS makes that term zero: the residuals are orthogonal to the fitted part. Consequently, .
Check definitions when reading output. Some books use SSE for squared errors, which here are called SSR. Stata calls the explained row “Model” and the remaining row “Residual.” The name behind the abbreviation decides which quantity to use.
Calculate R-squared
Provided the outcome varies so that SST is positive,
The wage deviations from the mean of 14 dollars are −5, 0, −2, 4, and 3. Their squared sum is . Squaring the residuals gives . The explained part is therefore , and
About 74% of the sample wage variation around the sample mean is explained by the fitted schooling line. This is not a statement that 74% of each worker's wage is caused by schooling.
Connect fit to correlation
In simple regression with an intercept and variation in both variables, R-squared is the squared sample correlation. For the wage data,
Squaring removes the sign. A negative slope can have the same R-squared as a positive slope. When fitted values vary, R-squared also equals their squared correlation with observed outcomes.
Use fit for the question it answers
Low R-squared is common in large cross-sectional wage samples, where schooling alone usually explains well under half of wage variation. Experience, ability, and other factors remain in the error. It does not itself make the estimated slope biased. A randomized treatment can explain a small fraction of outcome variation and still yield an unbiased effect estimate.
A high R-squared can coexist with reverse causality or omitted factors. It supplies no causal identification. For comparisons, keep the dependent variable and estimation sample the same. A regression of wages explains dollar variation; a regression of log wages explains log variation. Their R-squared values do not rank their fit on a common outcome scale.
Key Takeaways
- With an intercept, total variation splits into explained and residual sums of squares.
- R-squared is the explained share of positive total outcome variation.
- Check sum-of-squares definitions because abbreviations differ.
- In simple regression, R-squared equals squared sample correlation when both variables vary.
- Fit alone establishes neither unbiasedness nor causality.
- Compare R-squared using the same dependent variable and sample.
4.2 How rescaling and centering change coefficients
A coefficient is a number attached to units. Change those units and the coefficient changes, even though the economic relationship is the same. Work from the equation to track the change.
Rescale the outcome
If the outcome is multiplied by a nonzero constant, both the intercept and slope are multiplied by that constant. Starting from in dollars per hour, multiply by 100:
Fitted wages and residuals are also multiplied by 100. Their numerical sizes change, but their meaning in the original units does not. In R-squared, both SSR and SST are multiplied by the square of the scaling constant, so their ratio is unchanged.
Rescale the regressor
If the regressor is multiplied by a nonzero constant, divide the slope by that constant and leave the intercept unchanged. Schooling measured in months is 12 times schooling measured in years. Substituting gives
The new slope is about 0.0833 dollars per hour for one month of schooling. Twelve months still predict a 1-dollar hourly wage difference. Multiplying the slope by 12 instead would make the effect of one year 144 times as large.
For food spending on income, a slope of 0.12 dollars per dollar becomes 120 dollars per thousand dollars when income is recorded in thousands. The numerical increase reflects a larger regressor unit.
Move the regressor's zero
Centering changes the reference point. Define schooling beyond eight years as , so . Substitution gives
The slope remains 1. The intercept becomes 10 dollars, the fitted wage at eight years of schooling. This is a reference point inside the sample. Fitted values and residuals for each worker remain exactly the same.
More generally, if , the new intercept is . Substituting back into the original equation is a reliable way to get the sign right.
Rates need an explicit coding rule
A rate of 5% may be recorded as 5 or as 0.05. These are related by a factor of 100. If the slope is −2 units of the outcome per percentage point using 5, then it is −200 using 0.05. A rise from 5% to 6% is a one-percentage-point change, corresponding to 0.01 in proportion coding.
Do not judge economic importance from the coefficient's number alone. Check the regressor unit and calculate the predicted outcome change for a meaningful comparison. The 0.0833 monthly schooling slope and the 1.00 yearly slope describe the same schooling relationship.
Key Takeaways
- Multiplying the outcome scales both coefficients and all residuals.
- Multiplying the regressor divides its slope by the same nonzero constant.
- Centering the regressor changes the intercept but leaves the slope and fitted values unchanged.
- Rescaling preserves R-squared.
- Rate coding determines whether a regressor unit means one percentage point or 100 percentage points.
4.3 Four ways to read a slope
Economic effects may be roughly constant in units or in percentages. Natural logarithms let a simple regression express percentage relationships while remaining linear in its coefficients. In econometrics, “log” means the natural logarithm.
Start with the log-change approximation
For a small change, . Moving from 20 to 21 dollars is a 5% increase; the log change times 100 is . The two measures are close for small changes, but their difference grows with the change.
Match the interpretation to the form
The table shows the systematic relationship, with the error omitted for readability.
| Form | Equation | Slope interpretation |
|---|---|---|
| Level-level | One more unit of the regressor changes the outcome by units | |
| Log-level | One more regressor unit changes the outcome by about percent | |
| Level-log | A 1% regressor increase changes the outcome by about units | |
| Log-log | A 1% regressor increase changes the outcome by about percent |
The log-level coefficient is a semi-elasticity. The log-log coefficient is an elasticity, which is constant in that model. These interpretations describe the modeled relationship; a causal reading still needs a credible assignment argument.
Use exact changes when needed
For , one extra year corresponds to about 7.5% higher wages along the fitted relation. The exact proportional change is . Four extra years give a log change of 0.30, so the exact percentage is , compared with the 30% approximation.
For , a 10% price increase multiplies price by 1.10. Water use changes by . Multiplying −0.40 by 10 gives the useful small-change approximation, −4%.
For , with yield and fertilizer in kg per hectare, 1% more fertilizer corresponds to about 9 kg per hectare more yield. A 10% rise gives exactly kg per hectare along the line, compared with the 90 kg approximation. The gain per additional kg of fertilizer becomes smaller at higher fertilizer levels.
Check the variable before logging it
Logs require strictly positive values. Hours can be zero and profits can be negative, so logging them requires attention to those observations. Rates are also often kept in levels. An unemployment rate moving from 5.0% to 5.25% rises by 0.25 percentage points and by 5% relative to its starting rate. These are different quantities.
Choose a form using economic reasoning and residual patterns. Comparing R-squared for an outcome in levels with R-squared for its logarithm does not decide the form.
Equivalent log-wage commands are R lm(log(wage) ~ educ, data = df); Stata generate lwage = ln(wage) followed by regress lwage educ; and Python smf.ols("np.log(wage) ~ educ", data=df).fit() after importing NumPy as np and statsmodels formula API as smf.
Key Takeaways
- Natural logs translate small proportional changes into approximately additive changes.
- Log-level slopes give approximate percent changes per regressor unit.
- Level-log slopes give outcome units per percent change in the regressor.
- Log-log slopes are constant elasticities.
- Use exponential or ratio formulas for exact finite changes.
- Only strictly positive values have real natural logarithms.
- Percent changes and percentage-point changes measure different quantities.
5Judge bias, precision, and causal claims
A fitted coefficient can be easy to compute and still be difficult to trust. Separate three questions: whether OLS is centered on the population parameter, how much its estimates vary across samples, and whether that parameter answers a causal question. The assumptions make these distinctions precise. Use them to trace a source of bias, calculate conventional standard errors, and evaluate the comparison behind a treatment effect.
5.1 Why OLS is unbiased under its assumptions
An estimator is a rule that turns a sample into a number. Unbiasedness describes the rule across repeated samples: its expected estimate equals the population parameter. It does not require one realized estimate to equal the truth.
The four assumptions
| Label | Assumption | Role |
|---|---|---|
| SLR.1 | Linear in parameters | The population follows the specified simple model |
| SLR.2 | Random sampling | Observed pairs are independent draws from the same population |
| SLR.3 | Sample variation in the regressor | The slope denominator is positive |
| SLR.4 | Zero conditional mean | The error averages zero at every regressor value |
Together, these imply and .
See where unbiasedness comes from
Substitute into the OLS slope formula. Centering makes the intercept contribution vanish, and the slope contribution reduces to the true slope:
Conditional on the observed regressor values, the denominator and the weights are fixed. Random sampling and zero conditional mean make every error's conditional expectation zero. The weighted error term therefore averages zero. The estimate is centered on the true slope, even though the weighted error need not be zero in any one sample.
Suppose the true slope is 0.08. Four samples might give 0.07, 0.10, 0.06, and 0.09. Their average happens to be 0.08, but the definition concerns the average over all possible samples. It does not require a short sequence of estimates to average exactly to the parameter.
What a larger sample can and cannot repair
If ability raises wages and is higher on average at greater schooling levels, the error is positively related to schooling. The estimated schooling slope tends to overstate schooling's effect. SLR.4 fails, so its unbiasedness guarantee is lost.
When , under the usual random-sampling and finite-moment conditions the slope converges to
More observations can make estimates concentrate tightly around this wrong limit. Consistency means convergence to the true parameter as the sample grows; it differs from unbiasedness, which concerns expected values at a given sample size. Failure of zero conditional mean alone does not establish nonzero covariance, because the conditional relation can be nonlinear.
Match assumptions to claims
Unbiasedness requires neither constant error variance nor normally distributed errors. Homoskedasticity supports the usual sampling-variance formula. Normality supports exact small-sample inference under the accompanying assumptions.
Stock and Watson organize their least-squares assumptions as zero conditional mean, independently and identically distributed observation pairs, and unlikely large outliers, formalized by finite fourth moments. Their first two correspond to SLR.4 and SLR.2. With population regressor variation, these conditions give consistency and approximate normality in large samples.
Inspect the data for extreme values. Squared misses give them substantial influence, and recording a wage of 14.00 as 1,400 can move a fitted line sharply. Verify a suspicious observation before deciding how to handle it.
Key Takeaways
- Unbiasedness means the expected estimate equals the population parameter.
- SLR.1–SLR.4 give the OLS unbiasedness result.
- The slope equals the true slope plus a weighted error term.
- More data do not remove inconsistency caused by nonzero regressor-error covariance.
- Consistency and unbiasedness are different sampling properties.
- Constant error variance and normality are not required for unbiasedness.
5.2 How precisely the slope is estimated
Two regressions can have the same estimated slope but very different precision. Precision concerns how much the estimate would change across samples. Under constant error variance, the calculation separates outcome noise from the sample's spread in the regressor.
Constant and changing error variance
SLR.5, homoskedasticity, states : the conditional error variance is the same at every regressor value. With heteroskedasticity, that variance changes. Wage dispersion, for example, can be greater at high schooling levels.
Under SLR.1–SLR.5, conditional on the sampled regressor values,
Lower error variance makes the slope more precise. More spread in the regressor also improves precision because it is easier to distinguish a slope from noise. Additional observations drawn from the same varying population generally increase the available regressor spread; adding only observations exactly at the existing mean would not increase this denominator.
Estimate the unknown error variance
The population variance is unknown, so use
The residual degrees of freedom are the sample size minus two fitted coefficients. The residuals obey two fitting restrictions, so dividing by the sample size would underestimate the common error variance. Under the assumptions, the variance estimate using the corrected divisor is unbiased. Computing it requires more than two observations.
The standard error of the regression, SER, is in outcome units and describes the typical size of the misses. The conventional slope standard error is
It has the same units as the slope and estimates its sampling standard deviation.
Calculate and interpret both measures
In the five-worker sample, SSR is 14 and the regressor sum of squares is 40. The residual degrees of freedom are 3. Thus and dollars per hour. The slope standard error is dollars per hour per year of schooling.
The first number describes scatter in workers' wages around the line. The second describes sampling uncertainty about the schooling slope. A large SER is not evidence of bias.
Use the appropriate standard errors
Heteroskedasticity does not remove the unbiasedness result when SLR.1–SLR.4 hold, but it invalidates the usual constant-variance formula. A practical default for large independent cross-sectional samples is heteroskedasticity-robust standard errors, which allow changing error variance under the needed regularity conditions. They change the estimated uncertainty, not the OLS coefficients, and do not repair omitted-factor bias.
Equivalent HC1 requests are:
- Stata:
regress wage educ, robust. - Python:
smf.ols("wage ~ educ", data=df).fit(cov_type="HC1"). - R: fit
m <- lm(wage ~ educ, data = df), then uselmtest::coeftest(m, vcov. = sandwich::vcovHC(m, type = "HC1")).
For a test against zero, estimate divided by its standard error gives the test ratio. Here . Standard errors also supply the uncertainty scale for confidence intervals.
Key Takeaways
- Homoskedasticity means constant conditional error variance.
- The conventional slope variance is error variance divided by regressor spread.
- Estimate common error variance using SSR divided by the residual degrees of freedom.
- SER measures outcome scatter; the slope standard error measures coefficient uncertainty.
- Robust standard errors address heteroskedasticity in large samples and leave OLS coefficients unchanged.
- Robust standard errors do not remove bias from a regressor related to the error.
5.3 When a slope measures cause and effect
A causal interpretation depends on the comparison that produced the slope. SLR.1–SLR.4 make OLS unbiased for the modeled ceteris paribus effect. The economic work is judging whether the factors left in the error are comparable across regressor values.
Audit the comparison
Start with four questions:
- Which important outcome determinants are in the error?
- Are they related to the regressor?
- Could the outcome itself affect the regressor?
- Was the regressor chosen, set by a rule, or assigned randomly?
In a wage-schooling regression, ability and family background can affect both schooling and earnings. In a yield-fertilizer regression, farmers may choose fertilizer based on land quality. A simple regression does not hold these factors fixed in the observed data by including only one regressor.
Trace a likely bias direction
Use the omitted factor's effect on the outcome together with its relation to the regressor. If better land raises yields and receives more fertilizer, its influence tends to push the fertilizer slope upward. If better land raises yields but receives less fertilizer, it tends to push the slope downward. State the two signs before drawing the conclusion.
Reverse causality is another route. Higher crime can lead cities to hire more police, mixing police effects with the hiring response. Simultaneity arises when variables are jointly determined. With shifting supply and demand, observed price-quantity pairs generally trace neither one demand curve nor one supply curve.
Random assignment supplies the comparison
Randomly assigning treatment makes assignment independent of other outcome determinants. With the error normalized to have mean zero, this gives by design. Groups can differ by chance in a realized sample, but they have no systematic difference in those factors.
For a binary treatment indicator, with 1 for treatment and 0 for control, OLS gives
If randomized training groups average 2,450 and 2,300 dollars in monthly earnings, the estimated line is . The intercept is the control-group mean; the slope is the 150-dollar treatment-control difference. Random assignment makes that difference an unbiased estimate of the average treatment effect.
Define the treatment effect precisely
Each person has a potential outcome with treatment, , and without it, . The individual effect is , and the average treatment effect is . We observe one potential outcome per person, so the comparison between groups supplies the missing information on average.
If motivated workers volunteer, the group difference also reflects self-selection. A precise estimate cannot separate this motivation effect simply by using more volunteers. Robust standard errors change uncertainty estimates, not group comparability.
A noncausal slope can still help prediction. Floor area may predict apartment rent because it is bundled with location and quality. The same slope need not show what adding floor area would do to one apartment's rent. Report an association when the causal assumption is doubtful and identify the likely bias mechanism. More credible comparisons can come from including observed determinants as further regressors or using designs such as natural experiments.
Key Takeaways
- Causal interpretation requires an argument about factors left in the error.
- Combine the omitted factor's two signs to assess the likely bias direction.
- Reverse causality and simultaneity can mix effects in one fitted slope.
- With a binary regressor, the OLS slope equals the difference in group means.
- Random assignment makes that difference an unbiased estimate of the average treatment effect.
- Self-selection can make treatment groups differ in outcome determinants.
- Fit and statistical significance cannot establish a causal comparison.
Simple Regression Model examples
1From a data set to a causal question
11 steps
- 1IntroductionBegin with the comparison
Suppose you want to know whether schooling raises wages. A table of workers' schooling and wages is a starting point, but two questions come before the regression: who is being observed, and why do their schooling levels differ?
First identify the data structure (such as a cross section or a panel). Then decide whether the comparison can separate schooling from other wage determinants, which a causal effect requires.
- 2ExplanationIdentify one row
A cross section observes many units in one period. One row might be a worker surveyed in 2024, with wage, schooling, and experience recorded in columns.
Sorting those workers by wage does not change the economic information. In a time series, rows instead follow one unit across ordered periods, and moving observations out of time order loses information.
- 3ExampleTrack identities across years
A housing survey takes a random sample in 2015 and draws a new sample of different households in 2023. Combining the surveys gives pooled cross sections.
If the survey follows the original households in 2023, it gives a panel. Both files contain years; only the panel contains repeated observations of the same units. Look for a stable household identifier.
- 4ChallengeClassify repeated observations
The same 60 firms report their output annually from 2021 through 2024. What is the data structure, and how many firm-year observations are recorded?
---reveal---
It is a panel with firm-year observations. There are four years including both endpoints. It would be pooled cross sections if each year instead contributed a separate sample of different firms.
- 5TipAsk how rows entered the sample
Random sampling means drawing independent observations from the relevant population. A survey reaching only large firms gives a different basis from one covering all firms.
Repeated observations of the same firm may also share shocks. The fact that OLS can calculate a line does not settle whether every row can be treated as an independent draw.
- 6ExplanationDefine the intervention
“How much more do educated workers earn?” describes an association. “What would an extra year of schooling do to earnings?” asks about a causal effect.
The second question needs a comparison with ability, experience, and other relevant factors held fixed. This is ceteris paribus. The outcome under the alternative schooling choice is a counterfactual.
- 7ExampleSee two directions of influence
Cities with more police may record more crime. One possible mechanism runs from police to crime; another runs from crime to hiring.
If high crime leads cities to add officers, the observed comparison includes reverse causality. A positive fitted slope then need not describe the effect of adding police to a city while keeping the other crime determinants fixed.
- 8ExampleDesign the fertilizer comparison
Assign plots randomly to 0, 50, or 100 kg of fertilizer per hectare. The assignment makes land quality comparable on average across fertilizer groups.
Differences in average yield can then estimate fertilizer effects. Individual plots still differ in soil and weather; random assignment prevents those differences from systematically tracking the assigned fertilizer amount.
- 9ChallengeDistinguish a forecast from a policy effect
A model uses a household's number of cars to predict income accurately. Would its car coefficient tell you how much income a household gains by buying another car? Explain.
---reveal---
No. Car ownership can track household resources without causing income. Buying a car does not reproduce the income differences behind the fitted association. Prediction and intervention answer different questions.
- 10ChallengeConnect data structure and assignment
The same farms are followed for five years. Each farmer chooses fertilizer based partly on land quality. Does following the same farms make a simple yield-on-fertilizer slope causal?
---reveal---
No. The data form a panel, but fertilizer remains related to an omitted yield determinant. Repeated identities describe the data structure; they do not by themselves create the other-things-equal comparison.
- 11RecapCarry two questions into regression
Identify what one observation represents and whether the same units recur. Then ask how the regressor was chosen or assigned.
A regression can summarize an association from many data structures. A causal interpretation needs a comparison in which other outcome determinants do not systematically change with the regressor.
2From an economic question to the population line
10 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate one influence from the others
- 2ExplanationWrite and label the equation
- 3ExampleTranslate a slope into a change
- 4ChallengeChoose the outcome and regressor
- 5ExplanationSeparate two zero-mean statements
- 6ExampleJudge the wage error
- 7ExplanationTake the conditional expectation
- 8ChallengeTest the meaning of the assumption
- 9ChallengeEvaluate a proposed validation
- 10RecapRead the equation as a comparison
3Fit a line and inspect its misses
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionBuild the line from five workers
- 2ExplanationChoose the least-squares rule
- 3ExampleCompute the two means
- 4ExampleFind the slope numerator and denominator
- 5ExamplePlace the line through the means
- 6ChallengeCalculate a fresh line
- 7ExplanationRead the slope in wage units
- 8ExamplePredict inside the sample range
- 9ChallengeCompare a difference and a level
- 10ExampleCompute fitted values and residuals
- 11Key InsightCheck the two residual restrictions
- 12ChallengeRecover an observed wage
- 13TipLook beyond the residual sum
- 14ChallengeAudit a reported OLS result
- 15RecapKeep the line and the error distinct
4From fit statistics to percentage effects
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate three uses of the equation
- 2ExampleMeasure total and residual variation
- 3ExplanationTurn the split into R-squared
- 4ChallengeCalculate the remaining share
- 5ExampleChange dollars into cents
- 6ExampleChange the regressor unit and zero
- 7ChallengePreserve an effect after recoding
- 8ExplanationIdentify which variable is logged
- 9ExampleWork a log-level change
- 10ExampleRead an elasticity
- 11ExampleKeep a level-log outcome in units
- 12ChallengeInterpret a new log equation
- 13TipCheck zeros and percentage points
- 14ChallengeChoose between two reported fits
- 15RecapAttach the right meaning to each number
5From assumptions to a credible effect
17 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionAsk three separate questions
- 2ExplanationState the unbiasedness assumptions
- 3ExplanationFind the random part of the slope
- 4ChallengeInterpret unbiasedness across samples
- 5Key InsightSee why sample size cannot fix every problem
- 6ExplanationIntroduce constant error variance
- 7ExampleEstimate the noise scale
- 8ExampleTurn outcome noise into slope uncertainty
- 9ChallengeCalculate and distinguish both standard errors
- 10TipUse robust errors for changing spread
- 11ExplanationAudit omitted determinants
- 12ChallengeTrace a direction of bias
- 13ExampleFit the two treatment means
- 14ConnectionConnect assignment to potential outcomes
- 15ChallengeEvaluate a treatment comparison
- 16ChallengeIntegrate fit, precision, and causality
- 17RecapMatch the remedy to the problem
Simple Regression Model practice questions
Set 1: Read data and fit a first line10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Connect estimates to economic meaning10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Diagnose fit, uncertainty, and assumptions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Evaluate a regression from data to causal claim10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Average treatment effect
B
Bias
C
Causal effect
Centered cross-product
Centering
Ceteris paribus
Consistency
Counterfactual
Cross-sectional data
D
Degrees of freedom
Dependent variable
E
Econometrics
Economic magnitude
Elasticity
Error normalization
Error term
Experimental data
Explained sum of squares
Extrapolation
F
First-order conditions
Fitted value
G
Goodness of fit
H
Heteroskedasticity
Homoskedasticity
I
Intercept
L
Level-level model
Level-log model
Log-level model
Log-log model
M
Mean independence
Method of moments
N
Natural logarithm
O
Observational data
Omitted factor
Ordinary least squares
Outlier
P
Panel data
Percentage point
Pooled cross sections
Population regression function
Potential outcome
Predicted change
Prediction
Proportion coding
R
R-squared
Random assignment
Random sampling
Regressor
Regressor sum of squares
Rescaling
Residual
Residual orthogonality
Residual plot
Residual sum of squares
Reverse causality
Robust standard errors
S
Sampling distribution
Self-selection
Semi-elasticity
Simple linear regression model
Simultaneity
Slope
Slope standard error
Standard error of the regression
T
Time series
Total sum of squares
U
Unbiasedness
Z
Zero conditional mean
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.