STATS 200: Introduction To Statistical Inference: Lecture 1: Course Introduction and Polling
STATS 200: Introduction To Statistical Inference: Lecture 1: Course Introduction and Polling
Key quantities:
I N = 3,046,355 – population of Iowa
# people who support Hillary Clinton
I p= N
I 1− p = # people who support
N
Donald Trump
Key quantities:
I N = 3,046,355 – population of Iowa
# people who support Hillary Clinton
I p= N
I 1− p = # people who support
N
Donald Trump
Key quantities:
I N = 3,046,355 – population of Iowa
# people who support Hillary Clinton
I p= N
I 1− p = # people who support
N
Donald Trump
Key quantities:
I N = 3,046,355 – population of Iowa
# people who support Hillary Clinton
I p= N
I 1− p = # people who support
N
Donald Trump
X1 + X2 + . . . + Xn
Then p̂ = .
n
We have:
Np − 1
P[X1 = 1] = p, P[X2 = 1 | X1 = 1] =
N −1
Understanding the variance
p(1 − p) n−1
Var[p̂] = 1−
n N −1
When N is much bigger than n, this is approximately p(1−p)
n , which
would be the variance if we sampled n people in Iowa with
replacement. (In that case p̂ would be a Binomial(n, p) random
n−1
variable divided by n.) The factor 1 − N−1 is the correction for
sampling without replacement.
60
40
20
0
p_hat
Understanding the sampling distribution
Webpage: stats200.stanford.edu