# A tibble: 1 × 3
n ybar ybar_w
<int> <dbl> <dbl>
1 3373 0.778 0.770
PS 812 - Introduction to Statistical Methods in Political Science
October 13, 2026
\[ \newcommand{\Var}{\text{Var}} \newcommand{\Cov}{\text{Cov}} \newcommand{\Corr}{\text{Corr}} \newcommand{\indep}{\mathrel{\perp\mkern-10mu\perp}} \]
Adapted from Blackwell (2025), Ch. 2
Adapted from Blackwell (2025), Ch. 2
“In 2020, you remember that Joe Biden ran for President on the Democratic ticket against Donald Trump for the Republicans. Do you remember for sure whether or not you voted in that election?”
\[ \mu = \mathbb{E}[Y] = \frac{1}{N} \sum_{i=1}^N Y_i \]
We do not observe the population directly. Instead, we observe a sample from that population
In statistics, we focus mainly on probabilistic samples
A simple random sample is a design where each sample of size \(n\) has equal probability of occurring.
\[P(\mathbf{Z}) = \begin{cases} 1/\binom{N}{n} & \text{if } \sum_{i=1}^N Z_i = n \\ 0 & \text{otherwise} \end{cases}\]
\(P(Z_i = 1) = \frac{n}{N}\) for all units.
A Bernoulli sampling design selects units by independent coin flips, each with some probability \(p\)
\[ P(Z_i = 1) = p \quad \forall i \in \{1, 2, \dotsc, N\} \]
What’s the difference?
What’s the difference in practice?
Source: 2024 GSS Cross-section Codebook, Release 3 (NORC), pp. 39–48
Once we have an estimand in mind, we want to figure out the algorithm to transform our sample of observations into a best guess.
An estimator is a function of our sample.
Since we’re targeting the population mean, a natural choice for an estimator would be the sample mean
\[ \hat{\mu} = \bar{Y}_n = \frac{1}{n} \sum_{i=1}^n Y_i \]
We’ll often denote estimators with a hat put on top of the greek letter for the estimand: \(\hat{\mu}\), \(\hat{\theta}\), \(\hat{\tau}\)
An estimate is a single realization of an estimator
In the GSS, \(n = 3{,}373\) respondents say whether they voted in 2020. The sample mean is
\[\hat{\mu} = \bar{Y}_n = \frac{1}{n} \sum_{i=1}^n Y_i = 0.778\]
An alternative estimator is the weighted mean using the survey weight \(w_i\)
\[\hat{\mu}_w = \frac{\sum_{i=1}^n w_i Y_i}{\sum_{i=1}^n w_i} = 0.770\]
estimand
estimator
estimate
Assume that each of our observations in the sample \(Y_i \sim ?(\mu, \sigma^2)\) come from the same population with a finite mean.
Can we show that this estimator has zero bias?
Start by writing down our estimator and taking the expectation
\[\mathbb{E}[\hat{\mu}] = \mathbb{E}\left[\frac{1}{n}\sum_{i=1}^n Y_i\right]\]
Next we use linearity of expectations
\[\mathbb{E}[\hat{\mu}] = \mathbb{E}\left[\frac{1}{n}\sum_{i=1}^n Y_i\right] = \frac{1}{n}\mathbb{E}\left[\sum_{i=1}^n Y_i\right] = \frac{1}{n}\sum_{i=1}^n \mathbb{E}\left[Y_i\right]\]
Finally, under our assumption that all \(Y_i\) come from the population of interest with expectation \(\mu\)
\[\frac{1}{n}\sum_{i=1}^n \mathbb{E}\left[Y_i\right] = \frac{1}{n}\sum_{i=1}^n \mu = \frac{n \mu}{n} = \mu\]
Therefore, the bias, \(\text{Bias}(\hat{\mu}) = \mathbb{E}[\hat{\mu}] - \mu = 0\)
Let’s take the variance of \(\hat{\mu}\)
\[\Var(\hat{\mu}) = \Var\left(\frac{1}{n}\sum_{i=1}^n Y_i\right)\]
Constants come out of a variance squared
\[\Var(\hat{\mu}) = \Var\left(\frac{1}{n}\sum_{i=1}^n Y_i\right) = \frac{1}{n^2}\Var\left(\sum_{i=1}^n Y_i\right)\]
The variance of a sum is the sum of the variances plus all of the covariances
\[\frac{1}{n^2}\Var\left(\sum_{i=1}^n Y_i\right) = \frac{1}{n^2}\left[\sum_{i=1}^n \Var(Y_i) + \sum_{i=1}^n \sum_{j \neq i} \Cov(Y_i, Y_j)\right]\]
Under independence, all of the covariance terms are zero: \(\Cov(Y_i, Y_j) = 0\) for \(i \neq j\)
\[\frac{1}{n^2}\left[\sum_{i=1}^n \Var(Y_i) + \sum_{i=1}^n \sum_{j \neq i} \Cov(Y_i, Y_j)\right] = \frac{1}{n^2}\sum_{i=1}^n \Var(Y_i)\]
Under the assumption that each observation comes from the same target distribution, every observation has the same population variance \(\Var(Y_i) = \sigma^2\)
\[\frac{1}{n^2}\sum_{i=1}^n \Var(Y_i) = \frac{1}{n^2}\sum_{i=1}^n \sigma^2 = \frac{n\sigma^2}{n^2} = \frac{\sigma^2}{n}\]
So under i.i.d. sampling, our sampling variance is
\[\Var(\hat{\mu}) = \frac{\sigma^2}{n}\]
We’ll also often talk about the standard deviation (square root of the variance) of a sampling distribution
\[ \text{SE}(\hat{\mu}) = \sqrt{\Var(\hat{\mu})} = \frac{\sigma}{\sqrt{n}} \]
Note what we needed for unbiasedness: identical sampling
What happens as \(n\) gets large?
The weak law of large numbers states that the sample means of independent and identically distributed random variables…
Let’s prove this! We’ll also assume finite variance to make it easier. \[P(|\bar{Y}_n - \mu | \ge \epsilon) \to 0 \]
The trick will rely on a known bound on how far a random variable can fall from its mean: Chebyshev’s Inequality
For any random variable \(X\) with a finite mean and variance, and any \(\epsilon > 0\), Chebyshev’s Inequality states:
\[P(|X - \mathbb{E}[X]| \ge \epsilon) \le \frac{\Var(X)}{\epsilon^2}\]
The chance of landing far from the mean is bounded by the variance
Apply Chebyshev’s inequality to the sample mean, which has \(\mathbb{E}[\bar{Y}_n] = \mu\) and \(\Var(\bar{Y}_n) = \frac{\sigma^2}{n}\)
\[P(|\bar{Y}_n - \mu| \ge \epsilon) \le \frac{\Var(\bar{Y}_n)}{\epsilon^2} = \frac{\sigma^2}{n\epsilon^2}\]
For any fixed \(\epsilon > 0\), the right-hand side goes to zero as \(n\) gets large
\[\lim_{n \to \infty} \frac{\sigma^2}{n\epsilon^2} = 0\]
A probability can’t be negative, so it’s squeezed between \(0\) and something going to \(0\)
\[P(|\bar{Y}_n - \mu| \ge \epsilon) \to 0\]
Therefore, \(\bar{Y}_n \xrightarrow{p} \mu\): the sample mean is consistent for the population mean
In our particular sample, the sample mean estimator gives an estimated turnout of \(\hat{\mu} = 0.778\)
We can estimate the population variance in a similar manner (we’ll spend more time on this next week): plug in the sample variance
\[\hat{\sigma}^2 = \frac{1}{n-1}\sum_{i=1}^n (Y_i - \bar{Y}_n)^2 = 0.173\]
So we computed a guess of \(0.778\)
The Census reports that the true turnout rate in 2020 was \(0.668\) (Fabina and Scherer 2022)
What drives the error?
# A tibble: 1 × 5
n ybar s2 se ybar_w
<int> <dbl> <dbl> <dbl> <dbl>
1 3373 0.778 0.173 0.00716 0.770
PS 812 - University of Wisconsin-Madison