Docsity

Power and Sample Size Examples in Data Analysis | STAT 4473, Exams of Statistics

Toggle sidebar
bg1
Stat 4473 – Data Analysis
Power and Sample Size Examples
Example 1: Retrospective calculation of power for a two-sample t-test. A study was performed in
order to evaluate the effectiveness of two devices for improving the efficiency of gas home-heating
systems. Energy consumption in houses was measured after one of the two devices was installed. The
two devices were an electric vent damper (Damper 1) and a thermally activated vent damper (Damper 2).
The energy consumption data for each damper type were measured. Compare the effectiveness of these
two devices by determining whether or not there is any evidence of a difference in energy use when using
an electric vent damper versus a thermally activated vent damper.
Abbreviated write-up:
Ho: :1 ! :2 = 0
Ha: :1 ! :2 … 0
p-value = .2598
Retain Ho. The sample results do not show significant evidence of a
difference in energy use for the two dampers.
Since the data analysis did not reveal any statistically significant difference, we
may wish to calculate the power of detecting a difference.
• If the power is low, then there is little chance of finding a
significant difference (and nonsignificant results are likely even if
real differences exist). We may want to get more observations to
increase power and continue to evaluate the problem.
• If the power is high, then significant differences should be
detectable, and so we can conclude that there is no meaningful
difference.
The power depends on the magnitude of the difference I wish to detect. Maybe
I am interested in detecting a difference in energy usage as small as 2 units, for
example. Actually, we can investigate the power for several different effect
sizes at the same time. In the Minitab output below, we have requested power
calculations for differences in energy usage of 1.0, 1.5, 2.0, 2.5, 3.0, . . ., 4.5,
5.0 units.
Power and Sample Size
2-Sample t Test
Testing mean 1 = mean 2 (versus not =)
Calculating power for mean 1 = mean 2 + difference
Alpha = 0.05 Assumed standard deviation = 2.767
Sample
Difference Size Power
1.0 38 0.34293
1.5 38 0.64516
2.0 38 0.87483
2.5 38 0.97299
3.0 38 0.99657
3.5 38 0.99975
4.0 38 0.99999
4.5 38 1.00000
5.0 38 1.00000
The sample size is for each group.
Row Damper1 Damper2
1 7.87 12.28
2 9.43 7.23
3 7.16 2.97
4 8.67 8.81
5 12.31 9.27
6 9.84 11.29
7 10.04 8.29
8 12.62 9.96
9 7.62 10.30
10 11.12 16.06
11 13.43 14.24
12 9.07 11.43
13 6.94 10.28
14 10.28 13.60
15 9.37 5.94
16 7.93 10.36
17 13.96 6.85
18 6.80 6.72
19 4.00 10.21
20 8.58 8.61
21 8.00 11.62
22 5.98 11.21
23 15.24 10.95
24 8.54 7.62
25 11.09 10.40
26 11.70 12.92
27 12.71 15.12
28 6.78 13.47
29 9.82 8.47
30 12.91 11.70
31 10.35 7.73
32 9.60 8.37
33 9.58 7.29
34 9.83 10.49
35 9.52 8.69
36 10.64 8.26
37 6.62 7.69
38 5.20 12.19
39 5.56
40 9.76
41 7.15
42 12.69
43 13.38
44 13.11
45 10.50
46 14.35
47 13.42
48 6.35
49 9.83
50 12.16
pf3
pf4
pf5

Partial preview of the text

Download Power and Sample Size Examples in Data Analysis | STAT 4473 and more Exams Statistics in PDF only on Docsity!

Stat 4473 – Data Analysis

Power and Sample Size Examples

Example 1: Retrospective calculation of power for a two-sample t-test. A study was performed in

order to evaluate the effectiveness of two devices for improving the efficiency of gas home-heating

systems. Energy consumption in houses was measured after one of the two devices was installed. The

two devices were an electric vent damper (Damper 1) and a thermally activated vent damper (Damper 2).

The energy consumption data for each damper type were measured. Compare the effectiveness of these

two devices by determining whether or not there is any evidence of a difference in energy use when using

an electric vent damper versus a thermally activated vent damper.

Abbreviated write-up:

Ho: : 1! : 2 = 0

Ha : : 1! : 2 … 0

p-value =.

Retain Ho. The sample results do not show significant evidence of a

difference in energy use for the two dampers.

Since the data analysis did not reveal any statistically significant difference, we

may wish to calculate the power of detecting a difference.

• If the power is low, then there is little chance of finding a

significant difference (and nonsignificant results are likely even if

real differences exist). We may want to get more observations to

increase power and continue to evaluate the problem.

• If the power is high, then significant differences should be

detectable, and so we can conclude that there is no meaningful

difference.

The power depends on the magnitude of the difference I wish to detect. Maybe

I am interested in detecting a difference in energy usage as small as 2 units, for

example. Actually, we can investigate the power for several different effect

sizes at the same time. In the Minitab output below, we have requested power

calculations for differences in energy usage of 1.0, 1.5, 2.0, 2.5, 3.0,.. ., 4.5,

5.0 units.

Power and Sample Size

2-Sample t Test

Testing mean 1 = mean 2 (versus not =) Calculating power for mean 1 = mean 2 + difference Alpha = 0.05 Assumed standard deviation = 2.

Sample Difference Size Power 1.0 38 0. 1.5 38 0. 2.0 38 0. 2.5 38 0. 3.0 38 0. 3.5 38 0. 4.0 38 0. 4.5 38 1. 5.0 38 1.

The sample size is for each group.

Row Damper1 Damper 1 7.87 12. 2 9.43 7. 3 7.16 2. 4 8.67 8. 5 12.31 9. 6 9.84 11. 7 10.04 8. 8 12.62 9. 9 7.62 10. 10 11.12 16. 11 13.43 14. 12 9.07 11. 13 6.94 10. 14 10.28 13. 15 9.37 5. 16 7.93 10. 17 13.96 6. 18 6.80 6. 19 4.00 10. 20 8.58 8. 21 8.00 11. 22 5.98 11. 23 15.24 10. 24 8.54 7. 25 11.09 10. 26 11.70 12. 27 12.71 15. 28 6.78 13. 29 9.82 8. 30 12.91 11. 31 10.35 7. 32 9.60 8. 33 9.58 7. 34 9.83 10. 35 9.52 8. 36 10.64 8. 37 6.62 7. 38 5.20 12. 39 5. 40 9. 41 7. 42 12. 43 13. 44 13. 45 10. 46 14. 47 13. 48 6. 49 9. 50 12.

Specifying differences

For a two-sample t-test, express the “Difference” as the difference between the population means that you

would like to be able to detect.

If you choose “Less than” as your alternative hypothesis, then you must enter a negative value in

“Differences.” If you choose “Greater than,” you must enter a positive value. This is because with a one-

tailed test, you have no power to detect an effect in the opposite direction.

Example: one-sided test.

Suppose instead that we wish to test the hypothesis that the electric vent damper (Damper 1) consumes

less energy than the thermally activated vent damper (Damper 2).

Ho: : 1! : 2 = 0 Alternative Hypothesis = “Less than”

Ha : : 1! : 2 < 0

If you want to check the power of detecting a difference of 2 units, then set “Difference” = !2, or, if

desired, we can investigate the power for several sizes of differences.

Power and Sample Size

2-Sample t Test

Testing mean 1 = mean 2 (versus <) Calculating power for mean 1 = mean 2 + difference Alpha = 0.05 Assumed standard deviation = 2.

Sample Difference Size Power -1.0 38 0. -1.5 38 0. -2.0 38 0. -2.5 38 0. -3.0 38 0. -3.5 38 0. -4.0 38 1. -4.5 38 1. -5.0 38 1.

The sample size is for each group.

Example 2: Prospective calculation of sample size to ensure high power for detecting effects that

you have determined to be important.

Ordinary corn doesn’t have as much of the amino acid lysine as animals need in their feed. Plant

scientists have developed varieties of corn that have increased amounts of lysine. Suppose you are

planning an experiment to test the effectiveness of the high-lysine corn feed. You plan to measure the

weight gains of one-day-old chicks after 21 days for a group of chicks fed the high lysine corn and for a

control group fed the normal corn.

You will carry out the analysis with a two-sample t test

Ho: : 1! : 2 = 0

Ha : : 1! : 2 > 0

where : 1 = mean weight gain for the high lysine group and : 2 = mean weight gain for the control group.

(a) You would like to be able to detect a difference in average weight gain as small as 10 grams with

at least 80% power. You plan to use a significance level of .05 (i.e., you will reject Ho if p-value

< .05). Investigate the sample sizes needed for such a study. Past experience shows that the

standard deviation in weight gains for chicks fed normal corn is about 40 grams, and about 50

grams for chicks fed high lysine corn.

Comment:

The calculation of power requires knowledge of the standard deviations of the populations from

which we sample, which we don’t have. So we estimate the population standard deviations from

knowledge of the process or a pilot study. Use the larger of the two in the calculation of power

(conservative).

Power and Sample Size

2-Sample t Test

Testing mean 1 = mean 2 (versus >) Calculating power for mean 1 = mean 2 + difference Alpha = 0.05 Assumed standard deviation = 50

Sample Target Difference Size Power Actual Power 10 310 0.80 0. 10 361 0.85 0. 10 429 0.90 0. 10 542 0.95 0. 10 790 0.99 0.

The sample size is for each group.

(b) The researcher is disappointed that the required sample sizes are so large due to the cost

of doing such a large study. She considers modifying the experiment so as to reduce the

variability in the chicks’ weight gains. She finds that she can cut the standard deviation

in half by switching to a different supplier of chicks and a different research facility.

However, the cost of each observation would be doubled. Would these measures be cost

effective? That is, would the modified experiment be less costly?

Power and Sample Size

2-Sample t Test

Testing mean 1 = mean 2 (versus >) Calculating power for mean 1 = mean 2 + difference Alpha = 0.05 Assumed standard deviation = 25

Sample Target Difference Size Power Actual Power 10 78 0.80 0. 10 91 0.85 0. 10 108 0.90 0. 10 136 0.95 0. 10 198 0.99 0.

The sample size is for each group.

(c) After more consideration, the researcher decides that it’s probably not important to be able to

detect such a small difference in the average weight gains. She decides to investigate the power

associated with a difference in weight gains of 15, 20, and 25 g, using the original supplier and

the original facility.

Power and Sample Size

2-Sample t Test

Testing mean 1 = mean 2 (versus >) Calculating power for mean 1 = mean 2 + difference Alpha = 0.05 Assumed standard deviation = 50

Sample Target Difference Size Power Actual Power 15 139 0.80 0. 15 161 0.85 0. 15 191 0.90 0. 15 242 0.95 0. 15 352 0.99 0. 20 78 0.80 0. 20 91 0.85 0. 20 108 0.90 0. 20 136 0.95 0. 20 198 0.99 0. 25 51 0.80 0. 25 59 0.85 0. 25 70 0.90 0. 25 88 0.95 0. 25 127 0.99 0.

The sample size is for each group.