


Table 1. Example data.
| X | Y | x | x2 | y | y2 | |
|---|---|---|---|---|---|---|
| 1.00 | 1.00 | -2.00 | 4 | -1.06 | -1.1236 | |
| 2.00 | 2.00 | -1.00 | 1 | -0.06 | 0.0036 | |
| 3.00 | 1.30 | 0.00 | 0 | -0.76 | 0.5776 | |
| 4.00 | 3.75 | 1.00 | 1 | 1.69 | 2.8561 | |
| 5.00 | 2.25 | 2.00 | 4 | 0.19 | 0.0361 | |
| Sum | 15.00 | 10.30 | 0.00 | 10.00 | 0.00 | 4.5970 |
The computations of the standard error of the estimate (se) for these data is shown on the section on the standard error of the estimate. It is equal to 0.964.
se = 0.964
SSX is the sum of squared deviations from the mean of X. It is therefore equal to the sum of the x2 column and is equal to 10.
SSX = 10.00
We now have all the information to compute the standard error of b:

As shown previously, the slope (b) is 0.425. Therefore,
![]()
df = N-2=5-2=3.
The p value for a two-tailed test is 0.26. Therefore, the slope is not significantly different from 0.
Confidence Interval for the Slope
The method for computing a confidence interval for the population slope is very similar to methods for computing other confidence interval. For the 95% confidence interval the formula is:
lower limit: b – (t.95)(sb)
upper limit: b + (t.95)(sb)
where t.95 is the value of t to use for the 95% confidence interval.
The values of t to be used in a confidence interval can be looked up in a table of the t distribution. A small version of such a table is shown in Table 2. The first column, df, stands for degrees of freedom.
Table 2. Abbreviated t table.
| df | 0.95 | 0.99 |
|---|---|---|
| 2 | 4.303 | 9.925 |
| 3 | 3.182 | 5.841 |
| 4 | 2.776 | 4.604 |
| 5 | 2.571 | 4.032 |
| 8 | 2.306 | 3.355 |
| 10 | 2.228 | 3.169 |
| 20 | 2.086 | 2.845 |
| 50 | 2.009 | 2.678 |
| 100 | 1.984 | 2.626 |
You can also use the “inverse t distribution” calculator to find the t values to use in confidence interval.
Applying these formulas to the example data,
lower limit: 0.425 – (3.182)(0.305)= -0.55
upper limit: 0.425 + (3.182)(0.305)= 1.40
Significance Test for the Correlation
The formula for a significance test of Pearson’s correlation is shown below:

where N is the number of paris of scores. For the example data,

Notice that this is the same t value obtained in the test of t b. As in that test the degrees of freedom is N-2 = 3.
Confidence Interval for the Correlation
There are several steps in computing a confidence interval on r (the population value of Pearson’s r). Recall from the chapter on sampling distributions that:
1. The sampling distribution of Pearson’s r is skewed.
2. Fisher’s z’ transformation of r is normal.
3. z’ = 0.5 ln[(1+r)/(1-r)].
4. z’ has a standard error of
.
The calculation of the confidence interval involves the following steps:
1. Converting r to z’. For our example data, the r of 0.627 is transformed to a z’ 0.736. This can be done using the formula above or the r to z’ calculator.
2. Find the standard error of z’ (sz’). For our example, N = 5 so sz’ = 0.707.
3. Compute the confidence interval in terms of z’ using the formula
lower limit = z’ – (z.95)(sz’)
upper limit = z’ + (z.95)(sz’)
For the example,
lower limit = 0.736 – (1.96)(0.707) = -0.650
upper limit = 0.736 + (1.96)(0.707) = 2.122
4. Convert the interval for z’ back to Pearson’s correlation. This can be done with the r to z’ calculator.
For the example,
lower limit = -0.57
upper limit = 0.97
The interval is so wide because the sample size is so small.