The full academy launches January 2027. Join the waitlist for the $179 founding price.
Waldbauer Academy of Economics

Courses › Statistics and Econometrics

Second and third year · Free crash course

Statistics and Econometrics: crash course

How economists use data to test ideas and separate cause from correlation.

By Maximus S. Waldbauer

Economic theory makes predictions; econometrics checks them against data. This course covers the statistical foundations you need, then the workhorse tool of applied economics: linear regression.

The goal is not only to run regressions but to read them critically. The most important question in empirical work is almost always the same: is this relationship causal, or is something else going on?

What you will be able to do

Prerequisites

Basic algebra and comfort with averages and percentages. Principles courses are helpful for the examples.

Unit 1

Probability and Sampling

A random variable takes values according to a probability distribution. Its expected value E(X) is the long-run average, and its variance measures spread. The standard deviation is the square root of the variance, in the same units as X.

We rarely observe a whole population, so we draw a sample and compute statistics like the sample mean. Different samples give different means; the distribution of those means is the sampling distribution.

Two results that make statistics work

Standard error of the mean = σ / √n

Worked example: How precise is a survey?

Weekly hours worked have a standard deviation of 10 hours. A survey samples 400 workers.

Standard error = 10 / √400 = 0.5 hours.

Quadrupling the sample to 1,600 halves the standard error to 0.25. Precision improves with the square root of the sample size, so it gets expensive fast.

Key ideas

  • The sample mean is an estimate with its own uncertainty.
  • The standard error shrinks with the square root of n.
  • The central limit theorem justifies using the normal distribution for inference.

Check your understanding

  1. 1.1σ = 20 and n = 100. What is the standard error of the sample mean?
    Show answer

    20 / 10 = 2.

  2. 1.2Why does the central limit theorem matter if incomes are highly skewed?
    Show answer

    Even though individual incomes are skewed, the average of a large sample is approximately normal, so standard inference methods still apply.

  3. 1.3What happens to the standard error if the sample size is multiplied by 9?
    Show answer

    It falls to one third of its previous value.

Unit 2

Confidence Intervals and Hypothesis Tests

A 95% confidence interval is a range constructed so that, across repeated samples, 95% of such intervals would contain the true value. For large samples it is the estimate plus or minus about 1.96 standard errors.

A hypothesis test asks whether the data are consistent with a specific claim, the null hypothesis. The t-statistic measures how many standard errors the estimate is from the null value.

t = (estimate − null value) / standard error

If |t| exceeds about 1.96, we reject the null at the 5% significance level. The p-value is the probability of seeing a result at least this extreme if the null were true. A small p-value is evidence against the null, but it says nothing about how large or important the effect is.

Two kinds of mistakes

Worked example: Did a training program raise productivity?

Average output after training is 52 units per day, with a standard error of 1. The null is that the average is still 50.

t = (52 − 50) / 1 = 2. Since 2 > 1.96, reject the null at the 5% level.

95% interval: 52 ± 1.96 = 50.04 to 53.96. The interval just excludes 50, matching the test result.

Key ideas

  • Confidence intervals show both the estimate and its uncertainty.
  • Statistical significance is not the same as economic importance.
  • Failing to reject a null does not prove the null is true.

Check your understanding

  1. 2.1An estimate is 3.0 with a standard error of 2.0. Is it significant at 5% against a null of zero?
    Show answer

    No. t = 1.5, which is below 1.96.

  2. 2.2Construct a 95% confidence interval for an estimate of 10 with a standard error of 3.
    Show answer

    10 ± 5.88, or about 4.1 to 15.9.

  3. 2.3A huge sample finds a statistically significant effect of 0.01%. Is it important?
    Show answer

    Probably not economically. Large samples can detect tiny effects that are precise but too small to matter.

Unit 3

Simple Linear Regression

Regression fits a line through data to describe how Y changes with X:

Yi = β0 + β1Xi + ui

Ordinary least squares (OLS) chooses the intercept and slope that minimize the sum of squared residuals. The slope is the sample covariance of X and Y divided by the sample variance of X.

β̂1 = Σ(Xi − X̄)(Yi − Ȳ) / Σ(Xi − X̄)2 β̂0 = Ȳ − β̂1X̄

R-squared is the share of the variation in Y explained by the regression. A low R-squared does not make a slope estimate wrong; it just means many other factors also affect Y.

Worked example: Fitting a line by hand

X = 1, 2, 3, 4, 5 and Y = 2, 4, 5, 4, 5. Means: X̄ = 3, Ȳ = 4.

Σ(X − X̄)(Y − Ȳ) = (−2)(−2) + (−1)(0) + 0 + (1)(0) + (2)(1) = 6.

Σ(X − X̄)2 = 4 + 1 + 0 + 1 + 4 = 10.

β̂1 = 0.6 and β̂0 = 4 − 0.6 × 3 = 2.2. Fitted line: Ŷ = 2.2 + 0.6X.

Key ideas

  • OLS minimizes squared prediction errors.
  • The slope tells you the average change in Y associated with a one-unit change in X.
  • Association is not causation unless the error term is unrelated to X.

Check your understanding

  1. 3.1A regression of weekly earnings on years of experience gives a slope of 25. Interpret it.
    Show answer

    Each additional year of experience is associated with $25 more in weekly earnings, on average.

  2. 3.2Can a regression with R-squared of 0.05 give a useful slope estimate?
    Show answer

    Yes. If X is unrelated to the error term, the slope can be unbiased even though X explains little of the total variation in Y.

  3. 3.3In the worked example, what is the predicted Y when X = 6?
    Show answer

    2.2 + 0.6 × 6 = 5.8.

Unit 4

Multiple Regression and Omitted Variables

Multiple regression includes several explanatory variables. Each coefficient measures the effect of one variable holding the others constant, which is what lets us get closer to the ‘other things equal’ comparisons theory asks for.

Y = β0 + β1X1 + β2X2 + u

Omitted variable bias

If a variable that affects Y is left out and it is correlated with an included X, the coefficient on X picks up part of its effect. That is omitted variable bias. Its direction is the sign of the omitted variable’s effect on Y times the sign of its correlation with X.

Worked example: Education and wages

Regressing wages on years of schooling gives a large positive coefficient.

Ability is omitted. Ability likely raises wages (positive effect) and is positively correlated with schooling.

Positive × positive = positive bias, so the simple regression probably overstates the return to schooling.

This is why labour economists look for natural experiments, such as changes in school-leaving laws, to estimate the causal return.

Other things to watch for

Key ideas

  • Coefficients in multiple regression are ‘holding other included variables constant’.
  • Omitted variable bias needs both conditions: the variable affects Y and correlates with X.
  • Robust standard errors are the default in applied work.

Check your understanding

  1. 4.1A regression finds that ice cream sales predict drowning deaths. What omitted variable is likely at work?
    Show answer

    Hot weather, which raises both ice cream sales and swimming.

  2. 4.2The omitted variable lowers Y and is positively correlated with X. What is the direction of the bias?
    Show answer

    Negative: the coefficient on X is biased downward.

  3. 4.3What problem does using robust standard errors fix, and what does it not fix?
    Show answer

    It fixes incorrect standard errors under heteroskedasticity. It does not fix bias from omitted variables or reverse causality.

Unit 5

From Correlation to Causation

The gold standard for causal effects is a randomized controlled trial: random assignment ensures the treatment and control groups are alike on average, so any difference in outcomes is caused by the treatment. When experiments are impossible, economists use research designs that mimic them.

Difference-in-differences

Difference-in-differences (DiD) compares the change over time for a treated group with the change for a comparison group. The comparison group’s change shows what would have happened anyway. The key assumption is parallel trends: without treatment, both groups would have moved together.

DiD = (Treatedafter − Treatedbefore) − (Controlafter − Controlbefore)

Worked example: A local hiring subsidy

One county introduces a small-business hiring subsidy. Average staff per business goes from 10 to 16 workers.

A similar neighbouring county without the subsidy goes from 8 to 11 over the same period.

DiD = (16 − 10) − (11 − 8) = 6 − 3 = 3 workers.

Without the comparison county, we would have credited the subsidy with all 6, including 3 that came from a regional boom.

Other designs

Key ideas

  • Randomization is the cleanest route to causal effects.
  • DiD removes common trends but relies on the parallel trends assumption.
  • Every design has an identifying assumption; good empirical work defends it explicitly.

Check your understanding

  1. 5.1Treated: 20 before, 25 after. Control: 18 before, 20 after. What is the DiD estimate?
    Show answer

    (25 − 20) − (20 − 18) = 3.

  2. 5.2What would violate the parallel trends assumption?
    Show answer

    Anything that makes the treated group’s outcome trend differently from the control group’s for reasons other than the treatment, such as a separate local shock.

  3. 5.3Why does random assignment solve omitted variable bias?
    Show answer

    Randomization makes treatment uncorrelated with every other factor, observed or not.

Key terms

Standard error
The standard deviation of an estimator’s sampling distribution.
Confidence interval
A range built so that a stated share of such ranges would contain the true value.
p-value
The probability of a result at least as extreme as observed if the null hypothesis is true.
OLS
Ordinary least squares: the method that minimizes the sum of squared residuals.
Omitted variable bias
Bias from leaving out a variable that affects the outcome and correlates with an included regressor.
Heteroskedasticity
Error variance that differs across observations.
Difference-in-differences
An estimator comparing changes over time between treated and comparison groups.
Instrumental variable
A variable that shifts the regressor of interest but affects the outcome only through it.

Where to go next

Continue to Graduate Econometrics for asymptotic theory, panel methods, instrumental variables, and modern causal inference in depth.

See the full Statistics and Econometrics course