











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












Cécile Ané
Stat 371
Spring 2006
(^1) Introduction
(^2) Sampling distribution of a proportion
(^3) Sampling distribution of the mean
(^4) Normal approximation to the binomial
(^5) The continuity correction
Example: cross of two heterozygotes Aa × Aa. Probability distribution of the offspring’s genotype:
Offspring genotype AA Aa aa 0.25 0.50 0.
An offspring is dominant if it has genotype AA or Aa. Experiment: Get n = 2 offsprings, count the number Y of dominant offspring, and calculate the sample proportion p^ ˆ = Y /2. We would like ˆ p to be close to the “true” value p = 0. 75 p^ ˆ is random Distribution of ˆ p (from the binomial distribution): Y 0 1 2 p^ ˆ 0.0 0.5 1. IP 0.0625 0.3750 0.
Larger sample size: Y = # of dominant offspring out of n = 20, p^ ˆ = Y /20 the sample proportion. We still want ˆ p to be close to the “true” value p = 0. 75 p^ ˆ is still random What is the probability that ˆ p is within 0.05 of p? Translate into a binomial question
IP{ 0. 70 ≤ p ˆ ≤ 0. 80 } = IP{ 0. 70 ≤ Y / 20 ≤ 0. 80 } = IP{ 14 ≤ Y ≤ 16 } = IP{ Y = 14 } + IP{ Y = 15 } + IP{ Y = 16 } = 0. 56
Sample size of 20 better than sample size of 2 !!
If Y 1 ,... , Yn is a random sample, and if the Yi ’s have mean μ and standard deviation σ, then
Y^ ¯ has mean μ Y ¯ = μ
and variance var( Y ¯ ) = σ^2 / n , i.e. standard deviation
σ Y ¯ =
σ √ n
Seed weight example: Assume beans have mean μ = 500 mg and σ = 120 mg. In a sample of size n = 4, the sample mean Y^ ¯ has mean μ Y ¯ = 500 mg and standard deviation σ Y ¯ = 120 /
4 = 60 mg.
If Y 1 ,... , Yn is a random sample, and if the Yi ’s are all from N (μ, σ), then Y^ ¯ ∼ N (μ, √σ n
Actually, Y 1 + · · · + Yn = n Y ¯ ∼ N too. Seed weight example: 100 students do the same experiment.
n=
n=
sample mean
Ex: beans are filtered, discarded if too small.
0 200 400 600 800 1000
n = 1
300 400 500 600 700
n = 5
350 400 450 500 550 600 650
n = 10
450 500 550
n = 30
Example: Mixture of 2 bean varieties.
0 200 400 600 800 1000
n = 1
300 400 500 600 700
n = 5
350 400 450 500 550 600 650
n = 10
450 500 550
n = 30
Example: X = # of children with side effects after a vaccine, out of n = 200 children. Probability of side effect: p = 0 .05. So X ∼ B( 200 , 0. 05 ).
What is IP{ X ≤ 15 }?
Direct calculation:
Heavy! Or we can use a trick: the binomial might be close to a normal distribution. Pretend X is normally distributed!
Probability
Back to our question: IP{ X ≤ 15 }. np = 10 and n ( 1 − p ) = 190 are both ≥ 5, so X ≈ N ( 10 , 3. 08 ).
True value:
> sum( dbinom(0:15, size=200, prob=0.05)) [1] 0.
0 5 10 15 20
0 5 10 15 20
X binomial B( 200 , 0. 05 ), and Y normal N ( 10 , 3. 08 ).
What is the probability that between 8 and 15 children get side effects?
IP{ 8 ≤ X ≤ 15 } ' IP{ 7. 5 ≤ X ≤ 15. 5 }
= IP
True value:
> sum( dbinom(8:15, size=200, prob=0.05) ) [1] 0.