AEM 6991

MPS Capstone Project I

Prof. Ariel Ortiz-Bobea

6 · Models and uncertainty

Wednesday, September 30, 2026

Cornell University

Motivation

  • Most of your projects will involve estimating an unknown parameter.
  • You obtain that estimate from the data.
  • Your estimate should be critical for a decision maker.
  • Today we discuss estimation: how we obtain estimates from a sample, and how we capture their uncertainty.

Parameters your projects might estimate

Project lead Parameter to estimate
What is a water view worth? The average price premium for a water view, in dollars or percent
When a price rises, what do shoppers switch to? Diversion ratios: the share of lost sales captured by each substitute
Does falling foot traffic predict a closure? The probability of closure within 12 months, given the foot-traffic trend
What is a “locally sourced” claim worth? Willingness to pay for the label, in cents per unit
Did PPP loans change small-business survival? The average effect of a PPP loan on the survival rate, in percentage points
Can card spending nowcast a company’s earnings? Next quarter’s revenue, and the size of the forecast error

Leads from the project ideas page.

Outline

  1. Estimators and sampling distributions
  2. Properties of estimators
  3. What a larger sample does not fix
  4. Models and estimation methods
  5. Standard errors
  6. Hypothesis tests and p-values
  7. Prediction and causal inference

1. Estimators and sampling distributions

The vocabulary of estimation

  • Population: the full set of units the question is about. All 10,000 customers.
  • Parameter: a fixed, unknown quantity of the population. Their mean monthly spend.
  • Sample: the units we observe. 50 customers drawn at random.
  • Estimator: a rule that assigns a value to every possible sample. The sample mean.
  • Estimate: the value the estimator takes in the observed sample.

Estimates vary across samples

  • Sampling distribution: the distribution of an estimator across repeated samples.

The standard error measures sampling variability

  • Standard error: the standard deviation of an estimator’s sampling distribution.
  • Sample mean: σ/√n, where σ is the population standard deviation ($49.02 here).
  • Estimated by s/√n, where s is the sample standard deviation.

The standard error falls with the square root of n

  • For the sample mean, σ/√n holds when the n draws are independent.

Why the standard error falls as n grows

  • In a mean, deviations above and below the population mean offset each other.
  • With population variance σ², the sample mean has variance σ²/n and standard error σ/√n.
  • A poll of 1,000 has a 95% margin of error of about ±3.1 points.
  • With 4,000 respondents, the margin is about ±1.55 points.
  • Precision depends on the sample size, not the population size.
  • This requires independent observations.

What a 95% confidence interval means

  • Confidence interval: the estimate ± 1.96 standard errors.
  • In repeated samples, 95% of such intervals contain the parameter.

2. Properties of estimators

The Allies estimated German tank production

  • The Allies needed an estimate of monthly German tank production.
  • Chassis, gearboxes and wheels of captured tanks carried sequential serial numbers.
  • Economists estimated production from those serial numbers.
Monthly production Serial-number estimate Intelligence estimate German records
June 1940 169 1,000 122
June 1941 244 1,550 271
August 1942 327 1,550 342

Ruggles and Brodie (1947), An Empirical Approach to Economic Intelligence in World War II, JASA 42, 72–91.

Three estimators of the same parameter

  • Parameter: N, the number of tanks, with serials numbered 1 to N.
  • Sample: five captured serials, 19, 40, 42, 60 and 88.
  1. The sample maximum: 88.
  2. Twice the sample mean, minus 1: 98.6.
  3. The sample maximum plus the average gap between serials, minus 1: 104.6.

The sample maximum is a biased estimator

  • Bias: the expected value of the estimator minus the true parameter.

Estimator 3 is more efficient than estimator 2

  • Efficiency: an unbiased estimator with smaller variance is more efficient.

All three estimators are consistent

  • Consistency: the estimator converges to the true parameter as n grows.

The median can be more efficient than the mean

  • Normal population: the sample mean has the smaller variance.
  • Heavy-tailed population: the sample median has the smaller variance.

The bias–variance trade-off

  • Mean squared error: the expected squared distance between an estimator \hat\theta and the parameter \theta.

\text{MSE}(\hat\theta) = E\big[(\hat\theta-\theta)^2\big] = \text{Bias}(\hat\theta)^2 + \text{Var}(\hat\theta)

  • \text{Bias}(\hat\theta) = E[\hat\theta]-\theta and \text{Var}(\hat\theta) = E\big[(\hat\theta-E[\hat\theta])^2\big]. The identity holds whenever the variance is finite.
  • A biased estimator can have a lower mean squared error than an unbiased one.
  • Prediction methods accept some bias to reduce variance.

The mean squared error of two estimators

3. What a larger sample does not fix

The 1936 Literary Digest poll

  • The Literary Digest was a leading US weekly magazine, with a circulation above one million.
  • From 1916 it ran a straw poll by mail before each presidential election.
  • It had predicted the winner of every election from 1920 to 1932.
  • 1936: Franklin D. Roosevelt, the Democratic president, against Alf Landon, the Republican.
  • It mailed about 10 million mock ballots, mostly to names from telephone directories and car registrations.
  • It is the standard example that a very large sample does not remove bias.

Lohr and Brick (2017), Roosevelt Predicted to Win: Revisiting the 1936 Literary Digest Poll, Statistics, Politics and Policy 8, 65–84.

The poll missed Roosevelt’s share by about 20 points

  • About 2.4 million people mailed their mock ballots back. Those replies were the poll’s sample.
  • The poll predicted a Landon victory. Roosevelt won 46 of the 48 states.
  • Gallup predicted the winner with a much smaller sample.

Squire (1988), Why the 1936 Literary Digest Poll Failed, Public Opinion Quarterly 52, 125–133.

A biased sample converges to the wrong value

  • A larger sample reduces the variance. The bias remains.
  • May 2021: 250,000 survey responses a week overstated US vaccine uptake by 17 points.

Bradley et al. (2021), Unrepresentative big surveys significantly overestimated US vaccine uptake, Nature 600, 695–700.

Heavy tails slow the convergence of the mean

  • Extreme observations keep shifting the sample mean, even at large n.

Four problems a larger sample does not solve

  1. Selection or measurement bias. The bias does not shrink with n.
  2. Dependent observations. 1,000 shoppers in 5 stores are not 1,000 independent observations.
  3. Little variation in the regressor of interest. Two price changes in three years.
  4. Heavy tails. The sample mean converges slowly.

4. Models and estimation methods

The type of outcome determines the model

  • Choose a model whose predictions stay within the possible values of the outcome.

Linear regression can fit nonlinear relationships

  • “Linear” means linear in the parameters.
  • Terms such as age² or log(size) let the fitted relationship curve.

Linear models can predict impossible values

  • Logit keeps predicted probabilities in [0, 1]. Poisson keeps predicted counts non-negative.

Three estimation methods

  1. Least squares: choose the parameters that minimize the sum of squared residuals.
  2. Maximum likelihood: choose the parameters that maximize the probability of the observed data.
  3. Method of moments (GMM): choose the parameters that equate sample moments to the moments the model implies.
  • For 7 purchases in 20 visits, all three estimate the purchase probability as 0.35.

Least squares estimation

  • Chooses the coefficients that minimize the sum of squared residuals.
  • Requires no assumption about the distribution of the errors.

Maximum likelihood estimation

  • Likelihood: the probability of the observed data, as a function of the parameters.
  • Requires the outcome’s full distribution. Most efficient when it is correct.

Maximum likelihood for the regression slope

  • Each house’s likelihood: the height of a normal density, centered on the line, at its observed price.
  • With normal errors, the maximum likelihood slope equals the least squares slope.

Method of moments estimation

  • Moment condition: the residuals are uncorrelated with size.
  • The slope that sets the sample moment to zero is the least squares slope.

GMM weights moment conditions by their precision

  • Two surveys give two moment conditions for one parameter, mean spend.
  • GMM minimizes a weighted sum of squared moment conditions.
  • The optimal weights are inverse variances. They minimize the standard error.

Hansen (1982), Large Sample Properties of Generalized Method of Moments Estimators, Econometrica 50, 1029–1054.

WLS weights observations by their precision

  • Weighted least squares (WLS) minimizes Σ wi ei², with wi = 1 / Var(ei).
  • Both estimators are unbiased. WLS has the smaller variance when the error variance differs across observations.

Comparing the three estimation methods

Method Chooses the parameters that Assumes Typical use
Least squares minimize the sum of squared residuals E[Y given X] is linear in the parameters continuous outcomes
Maximum likelihood maximize the likelihood of the data the full distribution of Y given X binary, count and duration outcomes
GMM equate sample moments to model moments only the moment conditions instrumental variables, structural models
  • Stronger assumptions increase efficiency when they hold and cause bias when they fail.

Interpreting coefficients in linear models

Model Interpretation of the coefficient b
Y on X one more unit of X: a change of b in Y, in the units of Y
log Y on X one more unit of X: a change of about 100·b percent in Y
log Y on log X a 1% increase in X: a b% change in Y (an elasticity)
  • For log Y, the exact percent change is 100·(eb − 1). Use it when b is large.
  • Percent and percentage points are different units.

Interpreting coefficients in logit and Poisson models

  • Logit: b is the change in the log-odds of Y = 1 for a one-unit increase in X.
  • eb is the odds ratio. It is not a ratio of probabilities.
  • Report the average marginal effect: the change in P(Y = 1), in percentage points.
  • Poisson: a one-unit increase in X changes the expected count by 100·(eb − 1) percent.

5. Standard errors

Analytical standard errors

  • Sample mean: s/√n, where s is the sample standard deviation of Y.
  • OLS slope: approximately se/(√n · sX).
  • se is the standard deviation of the residuals. sX is the standard deviation of X.
  • Maximum likelihood: from the curvature of the log-likelihood at its maximum.
  • All three assume independent observations.
  • Heteroskedasticity-robust and clustered standard errors relax this. Meeting 7.

The bootstrap resamples the observed data

  • It treats the sample as the population and draws n observations with replacement.

When to use the bootstrap

  • No analytical formula exists: medians, ratios, percentiles.
  • The sample is small or skewed, so the normal approximation is poor.
  • The estimator has several steps, such as a forecast built from two models.
  • The data are clustered: resample clusters, not observations.

The bootstrap fails for the maximum

  • No bootstrap sample can exceed the sample maximum.

6. Hypothesis tests and p-values

A permutation test simulates the null hypothesis

  • A/B test of a checkout web page: the old design against a redesigned one, 5,000 visitors each.
  • Old page: 250 purchases (5.0%). New page: 300 purchases (6.0%).
  • Null hypothesis: the page design has no effect on the purchase probability.

Interpreting a p-value of 0.03

  • If the null hypothesis were true, a difference at least this large would occur in about 3% of experiments.
  • “P-values do not measure the probability that the studied hypothesis is true, or the probability that the data were produced by random chance alone.”
  • “A p-value, or statistical significance, does not measure the size of an effect or the importance of a result.”
  • “Scientific conclusions and business or policy decisions should not be based only on whether a p-value passes a specific threshold.”

Wasserstein and Lazar (2016), The ASA’s Statement on p-Values: Context, Process, and Purpose, The American Statistician 70, 129–133.

What share of significant results are false positives?

  • The share depends on the proportion of true effects among the hypotheses tested.
  • In online A/B tests, 8% (Airbnb search) to 33% (Microsoft) of tested ideas succeed.

Kohavi, Deng and Vermeer (2022), A/B Testing Intuition Busters, KDD ’22, 3168–3177.

Intervals and the minimum relevant effect

  • Set the smallest effect that would change the decision before estimating.

7. Prediction and causal inference

Prediction questions and causal questions

Prediction Causal inference
Will it rain today? Does a rain dance cause rain?
Which customers will churn next month? Does the loyalty program reduce churn?
How many units will sell in December? What is the effect of a 5% price increase on units sold?
Which loans will default? Does a lower interest rate reduce defaults?
  • Prediction requires out-of-sample accuracy. Causal inference requires a valid comparison.

Kleinberg, Ludwig, Mullainathan and Obermeyer (2015), Prediction Policy Problems, American Economic Review 105, 491–495.

Predictive accuracy is measured out of sample

  • In-sample fit never decreases as regressors are added.
  • R² measures in-sample fit. Out-of-sample error measures predictive accuracy.

eBay’s ads were credited with sales they did not cause

  • March 2012: eBay stopped brand-keyword ads on Yahoo! and MSN.
  • Organic search clicks recovered 99.5% of the lost click traffic.
  • Other keywords: OLS implied a return above 4,100%. A randomized regional experiment estimated −63%.
  • Ad spending predicted revenue well. Only the experiment measured what the ads caused.

Blake, Nosko and Tadelis (2015), Consumer Heterogeneity and Paid Search Effectiveness, Econometrica 83, 155–174.

Claims and what the evidence supports

Claim What the estimate supports
The effect is highly significant The estimate is precise. Its magnitude is a separate question.
We found no effect The confidence interval includes zero. It may also include large effects.
Our two million rows settle it A large n reduces variance. It does not reduce bias.
Customers were 30% more likely to buy Check whether this is a percent or a percentage-point change.
The model predicts sales very well High in-sample fit. No evidence on the causal effect of any variable.
The standard error is tiny, so the estimate is right The standard error measures sampling variability. It does not measure bias.

Which question is your project asking?

  • Is your parameter a forecast or a causal effect?
  • Which estimate and confidence interval would change the decision?
  • Which of today’s problems could bias your estimate or understate its standard error?