Wednesday, May 28, 2014

2-Sample Unpooled t-Test – Test Power With G-Power Utility

This is one of the following six articles on 2-Independent-Sample Unpooled t-Tests in Excel

2-Independent-Sample Unpooled t-Test in 4 Steps in Excel 2010 and Excel 2013

Variance Tests: Levene’s Test, Brown-Forsythe Test, and F-Test in Excel For 2-Sample Unpooled t-Test

Excel Normality Tests Kolmogorov-Smirnov, Anderson-Darling, and Shapiro-Wilk For 2-Sample Unpooled t-Test

2-Sample Unpooled t-Test Excel Calculations, Formulas, and Tools

Effect Size for a 2-Independent-Sample Unpooled t-Test in Excel 2010 and Excel 2013

Test Power of a 2-Independent Sample Unpooled t-Test With G-Power Utility

 

Power of the Two-

Independent-Sample

Unpooled t-Test With Free

Utility G*Power

The Power of a two-independent-sample, pooled t-Test is a measure of the test’s ability to detect a difference given the following parameters:

Alpha (α)

Effect Size (d)

Sample Sizes (n1 and n2)

Number of Tails

Power is defined by the following formula:

Power = 1 – β

Β equals the probability of a Type 2 Error. A Type 2 Error can be described as a False Negative. A false Negative represents a test not detecting a difference when a difference does exist.

1 – β = Power = the probability of a test detecting a difference when one exists.

Power is therefore a measure of the sensitivity of a statistical test. It is common to target a Power of 0.8 for statistical tests. A Power of 0.8 indicates that a test has an 80 percent probability of detecting a difference.

The four variables that are required in order to determine the Power for a one-sample t-Test are Alpha (α), Effect Size (d), Sample Sizes (n1 and n2), and the Number of Tails. Typically alpha, Effect Size, and the Number of Tails are held constant while sample sizes are varied (usually increased) to achieve the desired Power for the statistical test.

Manual calculation of a test’s Power given Alpha, Effect Size, Sample Size, and the Number of Tails are quite tedious. Fortunately there are a number of free utilities online that will readily calculate a test’s statistical Power. A widely-used online Power calculation utility called G*Power is available for download from the Institute of Experimental Psychology at the University of Dusseldorf at this link:

http://www.psycho.uni-duesseldorf.de/abteilungen/aap/gpower3/

Screen shots will show how use this utility to calculate the Power for this example and also to provide a graph of Sample Size vs. Achieved Power for this example as follows:

As mentioned, the four variables that are required in order to determine Power for a one-sample t-Test are Alpha (α), Effect Size (d), Sample Size (n), and the Number of Tails.

Bring up G*Power’s initial screen and input the following information:

Test family: t-Tests

Statistical test: Means: Difference between two independent means (two groups)

Type of power analysis: Post hoc – Compute achieved power –given α, sample size, and effect size

Number of Tails = 2

Effect Size (d) = 0.228

Alpha (α) = 0.05

Sample Sizes (n1 = 20 and n2 = 17)

The completed dialogue screen appears as follows:

excel, excel 2010, excel 2013, test power, statistics, t test, t-test,unpooled t test,unpooled t-test (Click On Image To See a Larger Version)

Clicking Calculate would produce the following output:

excel, excel 2010, excel 2013, test power, statistics, t test, t-test,unpooled t test,unpooled t-test (Click On Image To See a Larger Version)

The Power achieved for this test is 0.1031. This means that the current one-tailed test has a 10.31 percent chance of detecting a difference that has an effect size of 0.228 if α = 0.05, n1 = 20, and n2 = 17.

It is often desirable to plot a graph of sample size versus achieve Power for the given Effect Size and alpha. This can be done by clicking the button X-Y plot for a range of values and then clicking Draw Plot on the next screen that comes up. This will produce the following output:

excel, excel 2010, excel 2013, test power, statistics, t test, t-test,unpooled t test,unpooled t-test (Click On Image To See a Larger Version)

This would indicate that a Power of 80 percent would be achieved for this test if the total sample size were equal to approximately n1 + n2 = 600.

 

Excel Master Series Blog Directory

Statistical Topics and Articles In Each Topic

 

No comments:

Post a Comment