p_win <- c(0.8, 0.6, 0.5, 0.2)
sum(p_win)[1] 2.1
POSC 8410, Week 6
1. A party contests four districts, with win probabilities 0.8, 0.6, 0.5, and 0.2. What is its expected number of seats?
Seats \(= I_1 + I_2 + I_3 + I_4\), where \(I_j\) indicates a win in district \(j\) and \(E[I_j] = P(\text{win}_j)\). By linearity:
p_win <- c(0.8, 0.6, 0.5, 0.2)
sum(p_win)[1] 2.1
\(E[\text{seats}] = 0.8 + 0.6 + 0.5 + 0.2 = 2.1\).
2. Did you need to know whether the four races are independent?
No. Linearity holds whether or not the races are related, so the four individual win probabilities are all you need.
3. What is the probability it wins all four? What would you need to know to answer?
Winning all four is a joint event, and its probability depends on how the races are related. Most students will multiply:
prod(p_win) # correct only if the four races are independent[1] 0.048
That 0.048 assumes independence, which is exactly the definition from Session 7. Ask the class what they just assumed.
Without independence, the four probabilities cannot be multiplied and we cannot answer without more info. Some possible bounds:
So what you would need is the joint distribution, meaning how the races move together, or independence as the special case that lets you multiply. (For reference, these are the bounds: \(\max(0, \sum p_j - 3) \leq P(\text{all four}) \leq \min_j p_j\).)
1. A bill passes each of 12 independent committee votes with probability 0.7. What are \(E[X]\) and \(\text{Var}[X]\) for the number that pass?
\(X \sim \text{Bin}(12, 0.7)\), so \(E[X] = np\) and \(\text{Var}[X] = np(1-p)\):
n <- 12
p <- 0.7
n * p # E[X][1] 8.4
n * p * (1 - p) # Var[X][1] 2.52
sqrt(n * p * (1 - p)) # SD, back in units of votes[1] 1.587451
\(E[X] = 8.4\) and \(\text{Var}[X] = 2.52\) (SD about 1.59 votes). The problem says the votes are independent, which is what the variance formula requires. The mean would be 8.4 either way.
2. A survey of 400 voters estimates turnout, where the true rate is 0.6. What is \(SD(\bar{X})\)?
Each respondent’s turnout is \(\text{Bern}(0.6)\), so \(\sigma^2 = p(1-p) = 0.24\), and \(SD(\bar{X}) = \sigma/\sqrt{n}\):
sqrt(0.6 * 0.4 / 400)[1] 0.0244949
About 0.0245, or roughly 2.4 percentage points.
3. How large a sample would you need to cut that standard deviation in half?
\(SD(\bar{X}) = \sigma/\sqrt{n}\), so halving it requires doubling \(\sqrt{n}\), which means four times the sample: 1,600.
sqrt(0.6 * 0.4 / 1600)[1] 0.01224745
0.0122, exactly half of the answer to question 2.
4. Your 400 respondents come from 100 households, 4 people each. Why is the answer to (2) probably too optimistic?
\(\sigma/\sqrt{n}\) assumed the 400 answers are independent. People in the same household tend to vote together (shared information, the same mobilization contacts, one trip to the polls), so the four answers within a household are positively correlated. The variance of the sum then picks up positive covariance terms, \(\text{Var}[\bar{X}]\) is larger than \(\sigma^2/n\). 0.0245 understates the uncertainty. You have less information than 400 independent people would give you.
How much less? If household members always vote identically, you really have 100 independent observations, and the standard deviation doubles to \(\sqrt{0.24/100} = 0.049\). That is an upper bound, and our SD under independence is a lower bound. The truth is somewhere in between.
More formally, the design effect for equal-sized clusters is \(1 + (m - 1)\rho\), with \(m = 4\) people per household and within-household correlation \(\rho\):
rho <- c(0, 0.5, 1)
deff <- 1 + (4 - 1) * rho
data.frame(rho, deff,
effective_n = 400 / deff,
sd_xbar = sqrt(0.24 / (400 / deff))) rho deff effective_n sd_xbar
1 0.0 1.0 400 0.02449490
2 0.5 2.5 160 0.03872983
3 1.0 4.0 100 0.04898979
With \(\rho = 0.5\), the 400 interviews are worth about 160 independent ones. We will return to that calculation next semester!