Saturday, May 31, 2014

1-Sample t-Test Power With G*Power Utility

This is one of the following six articles on 1-Sample t-Tests in Excel

1-Sample t-Test in 4 Steps in Excel 2010 and Excel 2013

Excel Normality Testing For the 1-Sample t-Test in Excel 2010 and Excel 2013

1-Sample t-Test – Effect Size in Excel 2010 and Excel 2013

1-Sample t-Test Power With G*Power Utility

Wilcoxon Signed-Rank Test in 8 Steps As a 1-Sample t-Test Alternative in Excel 2010 and Excel 2013

Sign Test As a 1-Sample t-Test Alternative in Excel 2010 and Excel 2013

 

Power of 1-Sample t-Test

With Free Utility G*Power

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

Alpha (α)

Effect Size (d)

Sample Size (n)

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 Size (n), and the Number of Tails. Typically alpha, Effect Size, and the Number of Tails are held constant while sample size is varied (usually increased) to achieve the desired Power for the statistical test.

Manual calculations 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.

 

G*Power Inputs

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

Test family: t-Tests

Statistical test: Difference from constant (one-sample case)

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

Number of Tails = 2

Effect Size (d) = 0.471

Alpha (α) = 0.05

Sample Size (n) = 20

The completed dialogue screen appears as follows:

test power, g power, excel, excel 2010, excel 2013, statistics, t test, t-test (Click On Image and See a larger Version)

Clicking Calculate would produce the following output:

test power, g power, excel, excel 2010, excel 2013, statistics, t test, t-test (Click On Image and See a larger Version)

The Power achieved for this test is 0.5645. This means that the current two-tailed test has a 56.45 percent chance of detecting a difference that has an effect size of 0.471 if α = 0.05 and n = 20.

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:

test power, g power, excel, excel 2010, excel 2013, statistics, t test, t-test (Click On Image and See a larger Version)

This would indicate that a Power of 80 percent would be achieved for this test if the sample size were approximately n = 34.

 

Excel Master Series Blog Directory

Statistical Topics and Articles In Each Topic

 

No comments:

Post a Comment