Docsity

Basic Statistics - Accuracy of Average - Notes | STAT 220, Study notes of Statistics

Toggle sidebar
bg1
Chapter 23: accuracy of averages
Context: previous chapters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Context: previous chapters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Context: Ch 23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Expected value and SE for average 5
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
10,000 repetitions on computer... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Strategy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Formulas for average . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Normal approximation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
What happens if we increase the number of draws? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Compare sample size 25 and 100, for 10,000 repetitions... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Not knowing the box 14
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Solution part 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Solution part 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Solution part 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Interpretation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Interpretation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Which formula to use? 21
Which SE?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Warnings 23
Warnings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Basic Statistics - Accuracy of Average - Notes | STAT 220 and more Study notes Statistics in PDF only on Docsity!

Chapter 23: accuracy of averages

  • Context: previous chapters
  • Context: previous chapters
  • Context: Ch
  • Expected value and SE for average
    • Example
    • 10,000 repetitions on computer...
    • Strategy.
    • Example
    • Formulas for average
    • Normal approximation
    • What happens if we increase the number of draws?
    • Compare sample size 25 and 100, for 10,000 repetitions...
  • Not knowing the box
    • Example
    • Solution part
    • Solution part
    • Solution part
    • Interpretation
    • Interpretation
  • Which formula to use?
    • Which SE?
  • Warnings
    • Warnings

Context: previous chapters

n Chapter 20: we looked at chance variability in sampling, and learned formulas for the expected value and SE for a percentage.

n Chapter 21: we dropped the assumption that we knew the contents of the box (= population).

n We looked at estimating the population percentage:

u The problem is about classifying, so we change the box into a 0-1 box u Estimate for population percentage: sample percentage u Estimate is likely to be off by SE for percentage: n Estimate SE for count, using bootstrap method n Convert to SE for percentage 2 / 24

Context: previous chapters

n Confidence intervals for the population percentage:

u 68% confidence interval: sample percentage ± 1 SE for percentage u 95% confidence interval: sample percentage ± 2 SEs for percentage u 99 .7% confidence interval: sample percentage ± 3 SEs for percentage

n What is the correct interpretation of a 95% confidence interval?

u We are 95% confident that the interval captures the sample percentage u Or: We are 95% confident that the interval captures the population percentage 3 / 24

Context: Ch 23

n We will learn formulas for the expected value and the SE for the sample average, if we know the box.

n We then drop the assumption that we know the contents of the box. From the sample, we want to learn about the box (= population).

n We look at estimating the population average:

u The problem is not about classifying and counting, so we do not change the box in a 0-1 box. u Estimate for population average: sample average u Estimate is likely to be off by SE for average: n Estimate SE for sum, using bootstrap method n Convert to SE for average u Confidence intervals 4 / 24

Strategy

n We first look at the sum of the draws.

n Average of the box: 1+2+3+4+5+6+7 7 = 4

n SD of the box:

u Note that we cannot use the shortcut formula! u So compute deviations from the average: -3, -2, -1, 0, 1, 2, 3 u SD is r.m.s. size of the deviations: √ (−3)^2 + (−2)^2 + (−1)^2 + 0^2 + 1^2 + 2^2 + 3^2 7

n Expected value for sum of the draws: (nr of draws) × (average of the box) = 25 × 4 = 100

n SE for sum of the draws: square root formula:

nr of draws × (SD of box) =

25 × 2 = 10

Example

n The sum of the draws is around 100, give or take 10 or so.

n Convert to averages:

u Expected value for average of the draws: 10025 = 4 This is just the average of the box! u SE for average of the draws: 1025 = 0. 4

n So the average of the draws is around 4 , give or take 0. 4 or so.

n Note that this matches the histograms on slide 7.

9 / 24

Formulas for average

Expected value for average = average of the box

SE for average =

SE for sum nr of draws n These formulas are exact if we draw with replacement

n If the sample is small compared to the population (say, less then 1/10th), then the formulas are good approximations for drawing without replacement. Why? 10 / 24

Normal approximation

n Central limit theorem works for sums and averages of draws

n That’s why the histograms on slide 7 follow the normal curve

n Hence, we can use the normal curve to approximate probabilities

n Example: Estimate the chance that the average of the draws is more than 4.4.

n Method:

u New average: Expected value for average of the draws = 4 u New SD: SE for the average of the draws = 0. u Then use normal approximation as usual, see overhead. Answer is 16%. 11 / 24

What happens if we increase the number of draws?

SE for average =

SE for sum nr of draws

=

nr of draws × (SD of box) nr of draws = SD of box √ nr of draws

n Suppose we multiply the number of draws by a factor 4, so that we now make 100 draws.

n Then the SE for the average of the draws is divided by a factor

n With a larger sample size we can estimate the population average more accurately.

n See computer simulations on next slide.

12 / 24

Solution part 1

n Identify population, parameter, sample, statistics:

u Population: all persons age 25 and over in the town u Parameter: average educational level in years u Sample: simple random sample of 400 persons age 25 and over in the town u Statistic: average educational level of people in the sample: 11.6 years

n Make box model, see overhead

n The average educational level in the sample is like the average of 400 draws without replacement from the box. 16 / 24

Solution part 2

n Fill in the blanks: The average educational level is estimated to be ..... This estimate is likely to be off by .... or so.

n First blank: estimate for population average = sample average = 11.6 years

n Second blank: SE for average = (SE for sum)/(nr of draws)

n Since the sample is small relative to the population, we can use the formulas for drawing with replacement

n So the SE for sum =

nr of draws × (SD of the box)

n But we don’t know the SD of the box!

n Since the sample is reasonably large, we can use the bootstrap method: SD of box ≈ SD of sample = 4.1 years.

n SE for sum of draws =

400 × 4 .1 = 82

n SE for average = 82/400 = 0.2.

17 / 24

Solution part 3

n The average educational level is estimated to be 11.6. This estimate is likely to be off by 0.2 years or so.

n Construct a confidence interval:

u If the normal approximation works, a 68% confidence interval for the population average is: sample average ± 1 SE for average = 11. 6 ± 0. 2. u Education in town does not have a normal distribution, see overhead. u So can we use the normal approximation? Yes! n The distribution of the educational level in the town does not follow the normal curve. n But because of the central limit theorem, the distribution of sample averages does follow the normal curve quite closely. 18 / 24

Interpretation

n 68% confidence interval for population average: (11.4, 11.8)

n Which of the following is/are true:

u About 68% of the people in the town have an educational level between 11.4 and 11.8 years. u We are about 68% confident that the interval (11.4, 11.8) contains the population average. 19 / 24

Interpretation

n What does it mean: we are about 95% (or 68% or ..%) confident that the interval contains the population parameter?

n Remember that the population parameter is a fixed number

n Each time we take a different sample, we get a different sample average, and also a different estimate for the SE

n So each time we take a different sample, the confidence interval turns out a bit different

n If we repeat this many many times, then 95% of the confidence intervals will contain the true population percentage, and 5% won’t.

n Difficulty: after computing a confidence interval, we don’t know if it is one that contains the true parameter or not. 20 / 24