PS 812 - Introduction to Statistical Methods in Political Science
September 15, 2026
\[ \newcommand{\indep}{\mathrel{\perp\mkern-10mu\perp}} \newcommand{\nindep}{\mathrel{\rlap{\hspace{0.30em}/}{\perp\mkern-10mu\perp}}} \]
…the probability of some event \(A\) is just the share of outcomes in \(\Omega\) that fall into \(A\)
This is the naive definition of probability (Blitzstein and Hwang 2019)
\[ P(A) = \frac{\text{number of outcomes contained in } A}{\text{number of outcomes in } \Omega} \]
When order doesn’t matter, we need to adjust for overcounting permutations of size \(k\)
\[ {n \choose k} = \frac{n!}{(n-k)!k!} \]
This is known as the binomial coefficient and shows up in many areas of mathematics (you’ll see it in the Binomial PMF later!)
Another place is Pascal’s triangle - each element is the binomial coefficient \(\text{row} \choose \text{column}\) \[ \begin{array}{ccccccccc} & & & & 1 & & & & \\ & & & 1 & & 1 & & & \\ & & 1 & & 2 & & 1 & & \\ & 1 & & 3 & & 3 & & 1 & \\ 1 & & 4 & & 6 & & 4 & & 1 \end{array} \]
We have \(n + k - 1\) “slots” in between the outer dividers
So the number of possibilities is
\[ {n + k - 1 \choose k} = \frac{(n + k - 1)!}{(n-1)!k!} \]
So we can calculate the probability as
\[ P(\text{Any two of } k \text{ people share a birthday}) = 1 - \frac{\frac{365!}{(365-k)!}}{365^k} \]
How quickly does this hit \(1\)?
So far we’ve talked about the probability of single events
But very often we want to know how the probability of one event \(A\) changes if another event \(B\) is known to have occurred (assuming that event can occur: \(P(B) > 0\))
\[ P(A \mid B) = \frac{P(A \cap B)}{P(B)} \]
CES Common Content 2025 (n = 17,000), weighted by commonweight
From our definition of conditional probability, we also have a way of factoring any joint probability into a product of conditionals
\[ P(A \cap B) = P(A \mid B) P(B) = P(B \mid A) P(A) \]
We can extend this to any intersection of \(n\) events - and in fact there are \(n!\) different factorizations
\[ P(A_1 , A_2, A_3, \dotsc A_n) = P(A_{n} \mid A_{n-1}, \dotsc A_{1})\cdots P(A_3 \mid A_2, A_1)P(A_2 \mid A_1)P(A_1)\]
Can we decompose the unconditional probability of some event \(B\) into conditional probabilities?
Let \(A_1, A_2, A_3, \dotsc A_n\) be a set of disjoint events that partition the sample space \(\Omega\)
We can write \(B\) as the union of the disjoint sets intersecting \(B\) with each piece \(A_1, A_2, \dotsc A_n\)
\[ B = (B \cap A_1) \cup (B \cap A_2) \cup \cdots \cup (B \cap A_n) \]
Then we apply additivity
\[ P(B) = P(B \cap A_1) + P(B \cap A_2) + \cdots + P(B \cap A_n) \]
Then plug in our factorization of the joint
\[ P(B) = P(B \mid A_1)P(A_1) + P(B \mid A_2)P(A_2) + \cdots + P(B \mid A_n)P(A_n) \]
This gives us the law of total probability
\[ P(B) = \sum_{i=1}^n P(B \mid A_i)P(A_i) \]
Going back to our two equivalent expressions for \(P(A \cap B)\)
\[ P(A \mid B) P(B) = P(B \mid A) P(A) \]
Dividing both sides by \(P(B)\) gives us a formula for relating one conditional probability to another: Bayes’ rule
\[ P(A \mid B) = \frac{P(B \mid A) P(A)}{P(B)} \]
You’ll sometimes see this written with law of total probability applied to the denominator
\[ P(A \mid B) = \frac{P(B \mid A) P(A)}{P(B \mid A) P(A) + P(B \mid A^c)P(A^c)} \]
\[ P(A \mid B) = \frac{P(B \mid A) P(A)}{P(B)} \]
You picked the first door, the host revealed a goat behind the third door
We want to know the probability that you picked the car given that the game show host revealed a goat behind door number 3.
\[ P(\text{car}_1 \mid \text{door}_3) = \frac{P(\text{door}_3 \mid \text{car}_1)}{P(\text{door}_3)}P(\text{car}_1) \]
Substituting in what we know
\[ P(\text{car}_1 \mid \text{door}_3) = \frac{\frac{1}{2}}{P(\text{door}_3)} \cdot \frac{1}{3} \]
For the denominator, we’ll use the law of total probability and consider all possible locations of the car.
\[ P(\text{car}_1 \mid \text{door}_3) = \frac{\frac{1}{2}}{P(\text{door}_3 \mid \text{car}_1)P(\text{car}_1) + P(\text{door}_3 \mid \text{car}_2)P(\text{car}_2) + P(\text{door}_3 \mid \text{car}_3)P(\text{car}_3)} \cdot \frac{1}{3} \]
The host always opens 3 if the car is behind 2 and never opens 3 if the car is behind 3, so we have
\[ P(\text{car}_1 \mid \text{door}_3) = \frac{\frac{1}{2}}{\frac{1}{2}\cdot\frac{1}{3} + 1\cdot \frac{1}{3} + 0 \cdot \frac{1}{3}} \cdot \frac{1}{3} \]
Therefore
\[ P(\text{car}_1 \mid \text{door}_3) = \frac{\frac{1}{2} \cdot \frac{1}{3} }{\frac{1}{2}} = \frac{1}{3} \]
Staying with door 1 still leaves you with \(\frac{1}{3}\) probability of winning the car.
The three cases partition the sample space, so their conditional probabilities sum to \(1\)
\[ P(\text{car}_2 \mid \text{door}_3) = 1 - P(\text{car}_1 \mid \text{door}_3) - P(\text{car}_3 \mid \text{door}_3) = 1 - \frac{1}{3} - 0 = \frac{2}{3} \]
Switching doubles your chances of winning!
If \(A\) and \(B\) are independent, the joint probability factors into the product of the marginal probabilities
\[ P(A \cap B) = P(A)P(B) \]
From our earlier factorization, independence (and \(P(B) > 0\)) implies that…
\[ P(A \mid B) = P(A) \]
Intuitively: Knowing that \(B\) happened tells me nothing about the probability of \(A\) (and vice-versa)
Independence extends to conditioning on some third event \(C\)
\[ A \indep B \mid C \iff P(A, B \mid C) = P(A \mid C)P(B \mid C) \]
Intuitively: Knowing that \(B\) happened tells me nothing about the probability of \(A\) once I have accounted for \(C\)
Conditional independence does not imply independence
Example: A classic paper by Fearon and Laitin (2003) argues that the observed association between conflict and ethnic/religious diversity post-1960 goes away when conditioning for a third variable: economic development.
| Rain | Sprinkler | Wet grass | Probability |
|---|---|---|---|
| \(R\) | \(S\) | \(W\) | \(\frac{1}{4}\) |
| \(R\) | \(S^c\) | \(W\) | \(\frac{1}{4}\) |
| \(R^c\) | \(S\) | \(W\) | \(\frac{1}{4}\) |
| \(R^c\) | \(S^c\) | \(W^c\) | \(\frac{1}{4}\) |
Rain always makes the grass wet, so \(P(R \cap W) = P(R)\).
\[ P(R \mid W) = \frac{P(R \cap W)}{P(W)} = \frac{\frac{1}{2}}{\frac{3}{4}} = \frac{2}{3} \]
Now condition on the sprinkler as well - only one of the four rows has both \(R\) and \(S\)
\[ P(R \mid S, W) = \frac{P(R \cap S \cap W)}{P(S \cap W)} = \frac{\frac{1}{4}}{\frac{1}{2}} = \frac{1}{2} \]
Learning that the sprinkler went on makes rain less likely - conditioning induces dependence!
\[ P(R \mid S, W) = \frac{1}{2} \neq \frac{2}{3} = P(R \mid W) \quad \Longrightarrow \quad R \nindep S \mid W \]
Administrative datasets often have data on individuals’ names and place of residence but don’t have data on race and ethnicity.
Bayesian Improved Surname Geocoding (BISG) (Elliott et al. 2009; Imai and Khanna 2016)
By Bayes’ rule
\[ P(H \mid S, G) = \frac{P(S, G \mid H) P(H)}{P(S, G)} \]
One challenge is that \(P(S, G \mid H)\) is very hard to observe
BISG makes a key conditional independence assumption
\[ S \indep G \mid H \]
Once we know race/ethnicity, the observed surname is independent of where a person resides.
Under the conditional independence assumption, we can factor the joint probability \(P(S, G \mid H)\)
\[ P(H \mid S, G) = \frac{P(S \mid H)P(G \mid H) P(H)}{P(S, G)} \]
Census data gives us \(P(S \mid H)\)
And we can use Bayes’ rule again to get \(P(G \mid H) = \frac{P(H \mid G)P(G)}{P(H)}\)
\[ P(H \mid S, G) = \frac{P(S \mid H)P(H \mid G)P(G)}{P(S, G)} \]
Surname table from wru; county composition from the 2020 Census (DHC table P12)
PS 812 - University of Wisconsin-Madison