Docsity

Sampling Distributions: Proportions and Means, Study notes of Statistics

Partial preview of the text

Download Sampling Distributions: Proportions and Means and more Study notes Statistics in PDF only on Docsity!

Sampling distributions

Cécile Ané

Stat 371

Spring 2006

Outline

(^1) Introduction

(^2) Sampling distribution of a proportion

(^3) Sampling distribution of the mean

(^4) Normal approximation to the binomial

(^5) The continuity correction

Sampling distribution of a proportion

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.

Sampling distribution of a proportion

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 !!

Key fact # 1

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.

Key fact # 2

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

The normal approximation to the binomial

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:

IP{ X = 0 } + IP{ X = 1 } + · · · + IP{ X = 15 } =

200 C 0.^050.^95200 +^ · · ·^ +^200 C 15.^0515.^95185

Heavy! Or we can use a trick: the binomial might be close to a normal distribution. Pretend X is normally distributed!

Probability

    • n= 10 , p= 0. - 0.00 Probability - 0. - 0. - 0. - 0. - 0. - n= 50 , p= 0. - 0.00 - 0. - 0. - 0. - 0. - 0. - 0. - n= 200 , p= 0.
  • 0.00
      • n= 20 , p= 0.
          • n= 20 , p= 0.
            • 0.00 Some Possible Values
                • n= 20 , p= 0.

The normal approximation to the binomial

Back to our question: IP{ X ≤ 15 }. np = 10 and n ( 1 − p ) = 190 are both ≥ 5, so X ≈ N ( 10 , 3. 08 ).

IP{ X ≤ 15 } = IP

X − 10

' IP{ Z ≤ 1. 62 }

True value:

> sum( dbinom(0:15, size=200, prob=0.05)) [1] 0.

The continuity correction

0 5 10 15 20

of children with side effect

0 5 10 15 20

The continuity correction

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

Y − 10

= IP{− 0. 81 ≤ Z ≤ 1. 78 }

= IP{ Z ≤ 1. 78 } − IP{ Z ≤ − 0. 81 }

True value:

> sum( dbinom(8:15, size=200, prob=0.05) ) [1] 0.