Tests For Two Correlations
Tests For Two Correlations
Tests For Two Correlations
com
Chapter 805
Test Procedure
In the following discussion, ρ is the population correlation coefficient and r is the value calculated from a
sample. The testing procedure is as follows. H 0 is the null hypothesis that ρ1 = ρ2 . H A represents the
alternative hypothesis that ρ1 ≠ ρ2 (one-tailed hypotheses are also available). To construct the hypothesis test,
transform the correlations using the Fisher-z transformation.
1 1 + ri
zi = log
2 1 − ri
1 1 + ρi
Zi = log
2 1 − ρi
This transformation is used because the combined distribution of r1 and r2 is too difficult to work with, but the
distributions of z1 and z2 are approximately normal.
Note that the reverse transformation is
e z i − e− z i
ri =
e z i + e− z i
Once the correlations have been converted into z values, the normal distribution may be used to conduct the test
of Z1 − Z2 . The standard deviation of the difference is given by
1 1
σ z −z = +
1 2
N1 − 3 N 2 − 3
805-1
© NCSS, LLC. All Rights Reserved.
PASS Sample Size Software NCSS.com
Tests for Two Correlations
z =
( z1 − z 2 ) − ( Z1 − Z2 )
σ z −z
1 2
Note that the lower case z’s represent the values calculated from the two samples and the upper case Z’s represent
the hypothesized population values.
1 1 + ρ1
2. Calculate: Z1 = log
2 1 − ρ1
1 1 + ρ2
3. Calculate: Z2 = log
2 1 − ρ2
1 1
4. Calculate: σ z1 − z 2 = +
N1 − 3 N 2 − 3
5. Calculate: xa = Z1 − Z2 + zα σ z1 − z2
xa
6. Calculate: z a =
σ z −z
1 2
7. Calculate: Power = 1 − Φ( z a )
Procedure Options
This section describes the options that are specific to this procedure. These are located on the Design tab. For
more information about the options of other tabs, go to the Procedure Window chapter.
Design Tab
The Design tab contains most of the parameters and options that you will be concerned with.
Solve For
Solve For
This option specifies the parameter to be solved for from the other parameters. Under most situations, you will
select either Power or Sample Size (N1).
Select Sample Size (N1) when you want to calculate the sample size needed to achieve a given power and alpha
level.
Select Power when you want to calculate the power of an experiment.
805-2
© NCSS, LLC. All Rights Reserved.
PASS Sample Size Software NCSS.com
Tests for Two Correlations
Test
Alternative Hypothesis
This option specifies the alternative hypothesis. This implicitly specifies the direction of the hypothesis test. The
null hypothesis is always H0: ρ1 = ρ2.
Possible selections are:
• Ha: ρ1 ≠ ρ2
This is the most common selection. It yields the two-tailed test. Use this option when you are testing whether
the correlation values are different, but you do not want to specify beforehand which value is larger.
• Ha: ρ1 < ρ2
This option yields a one-tailed test. When you use this option, you should be careful to enter values for ρ1 and
ρ2 that follow this relationship.
• Ha: ρ1 > ρ2
This option yields a one-tailed test. When you use this option, you should be careful to enter values for ρ1 and
ρ2 that follow this relationship.
805-3
© NCSS, LLC. All Rights Reserved.
PASS Sample Size Software NCSS.com
Tests for Two Correlations
805-4
© NCSS, LLC. All Rights Reserved.
PASS Sample Size Software NCSS.com
Tests for Two Correlations
Percent in Group 1
This option is displayed only if Group Allocation = “Enter percentage in Group 1, solve for N1 and N2.”
Use this value to fix the percentage of the total sample size allocated to Group 1 while solving for N1 and N2.
Only sample size combinations with this Group 1 percentage are considered. Small variations from the specified
percentage may occur due to the discrete nature of sample sizes.
The Percent in Group 1 must be greater than 0 and less than 100. You can enter a single or a series of values.
805-5
© NCSS, LLC. All Rights Reserved.
PASS Sample Size Software NCSS.com
Tests for Two Correlations
Effect Size
ρ1 (Correlation Group 1)
Specify the value of the population correlation coefficient of group one. Possible values range between plus and
minus one.
You can enter a single value or a range of values separated by commas or blanks.
Note that the power depends on the specific values of ρ1 and ρ2, not just their difference. Hence, ρ1 = 0 and ρ2 =
0.3 will have a different power from ρ1 = 0.3 and ρ2 = 0.6.
ρ2 (Correlation Group 2)
Specify the value of the population correlation coefficient from group two under the alternative hypothesis.
Possible values range between plus and minus one.
You can enter a single value or a range of values separated by commas or blanks.
805-6
© NCSS, LLC. All Rights Reserved.
PASS Sample Size Software NCSS.com
Tests for Two Correlations
Setup
This section presents the values of each of the parameters needed to run this example. First, from the PASS Home
window, load the Tests for Two Correlations procedure window by expanding Correlation, then Correlation,
then clicking on Test (Inequality), and then clicking on Tests for Two Correlations. You may then make the
appropriate entries as listed below, or open Example 1 by going to the File menu and choosing Open Example
Template.
Option Value
Design Tab
Solve For ................................................ Power
Alternative Hypothesis ............................ Ha: ρ1 ≠ ρ2
Alpha ....................................................... 0.01 0.05
Group Allocation ..................................... Equal (N1 = N2)
Sample Size Per Group .......................... 20 100 200 300 400 600
ρ1 (Correlation Group 1) ......................... 0.3
ρ2 (Correlation Group 2) ......................... 0.5
Annotated Output
Click the Calculate button to perform the calculations and generate the following output.
Numeric Results
Numeric Results when Ha: ρ1 ≠ ρ2
Power N1 N2 N ρ1 ρ2 ρ1 - ρ2 Alpha
0.03081 20 20 40 0.30000 0.50000 -0.20000 0.010
0.18250 100 100 200 0.30000 0.50000 -0.20000 0.010
0.42230 200 200 400 0.30000 0.50000 -0.20000 0.010
0.63541 300 300 600 0.30000 0.50000 -0.20000 0.010
0.78888 400 400 800 0.30000 0.50000 -0.20000 0.010
0.94144 600 600 1200 0.30000 0.50000 -0.20000 0.010
0.10760 20 20 40 0.30000 0.50000 -0.20000 0.050
0.38603 100 100 200 0.30000 0.50000 -0.20000 0.050
0.66271 200 200 400 0.30000 0.50000 -0.20000 0.050
0.83200 300 300 600 0.30000 0.50000 -0.20000 0.050
0.92196 400 400 800 0.30000 0.50000 -0.20000 0.050
0.98548 600 600 1200 0.30000 0.50000 -0.20000 0.050
Report Definitions
Power is the probability of rejecting a false null hypothesis.
N1 and N2 are the number of items sampled from each population.
N is the total sample size, N1 + N2.
ρ1 is the value of both correlations under the null hypothesis.
ρ2 is the correlation in group two under the alternative hypothesis.
ρ1 - ρ2 is the difference between population correlations at which power and sample size calculations are
made.
Alpha is the probability of rejecting a true null hypothesis.
805-7
© NCSS, LLC. All Rights Reserved.
PASS Sample Size Software NCSS.com
Tests for Two Correlations
Summary Statements
Group sample sizes of 20 and 20 achieve 3% power to detect a difference of 0.20000 between the
null hypothesis that both group correlations are 0.30000 and the alternative hypothesis that
the correlation in group 2 is 0.50000 using a two-sided z test (which uses Fisher's
z-transformation) with a significance level of 0.01000.
This report shows the values of each of the parameters, one scenario per row. The definitions of each column are
given in the Report Definitions section of the report, so they will not be repeated here.
The values from this table are plotted in the chart below.
Plots Section
These plots show the relationship between alpha, power, and sample size in this example.
805-8
© NCSS, LLC. All Rights Reserved.
PASS Sample Size Software NCSS.com
Tests for Two Correlations
Setup
This section presents the values of each of the parameters needed to run this example. First, from the PASS Home
window, load the Tests for Two Correlations procedure window by clicking on Correlation, then Tests for
Two Correlations. You may then make the appropriate entries as listed below, or open Example 2 by going to
the File menu and choosing Open Example Template.
Option Value
Design Tab
Solve For ................................................ Sample Size
Alternative Hypothesis ............................ Ha: ρ1 ≠ ρ2
Power ...................................................... 0.90
Alpha ....................................................... 0.05
Group Allocation ..................................... Equal (N1 = N2)
ρ1 (Correlation Group 1) ......................... 0.3
ρ2 (Correlation Group 2) ......................... 0.5
Output
Click the Calculate button to perform the calculations and generate the following output.
Numeric Results
Numeric Results when Ha: ρ1 ≠ ρ2
Target Actual
Power Power N1 N2 N ρ1 ρ2 ρ1 - ρ2 Alpha
0.90 0.90040 369 369 738 0.30000 0.50000 -0.20000 0.050
805-9
© NCSS, LLC. All Rights Reserved.
PASS Sample Size Software NCSS.com
Tests for Two Correlations
Setup
This section presents the values of each of the parameters needed to run this example. First, from the PASS Home
window, load the Tests for Two Correlations procedure window by clicking on Correlation, then Tests for
Two Correlations. You may then make the appropriate entries as listed below, or open Example 1 by going to
the File menu and choosing Open Example Template.
Option Value
Design Tab
Solve For ................................................ Power
Alternative Hypothesis ............................ Ha: ρ1 ≠ ρ2
Alpha ....................................................... 0.05
Group Allocation ..................................... Enter N1 and N2 individually
N1 ........................................................... 95
N2 ........................................................... 98
ρ1 (Correlation Group 1) ......................... 0.84
ρ2 (Correlation Group 2) ......................... 0.78
Output
Click the Calculate button to perform the calculations and generate the following output.
Numeric Results
Numeric Results when Ha: ρ1 ≠ ρ2
Power N1 N2 N ρ1 ρ2 ρ1 - ρ2 Alpha
0.22498 95 98 193 0.84000 0.78000 0.06000 0.050
805-10
© NCSS, LLC. All Rights Reserved.