EXAMPLE 4 Calculating the correlation coefficient
highlowtemp
Find the value of the correlation coefficient for the temperature data in Table 3.
Solution
We will outline the steps used in calculating the value of using the temperature data.
194
City | |||||||
---|---|---|---|---|---|---|---|
Boston | 30 | 50 | −10 | 100 | −14 | 196 | 140 |
Chicago | 35 | 55 | −5 | 25 | −9 | 81 | 45 |
Philadelphia | 40 | 70 | 0 | 0 | 6 | 36 | 0 |
Washington, DC | 45 | 65 | 5 | 25 | 1 | 1 | 5 |
Dallas | 50 | 80 | 10 | 100 | 16 | 256 | 160 |
Note on Rounding: Whenever you calculate a quantity that will be needed for later calculations, do not round. Round only when you arrive at the final answer. Here, because the quantities and are used to calculate the correlation coefficient , neither of them is rounded until the end of the calculation.
The correlation coefficient for the high and low temperatures is 0.9272.
NOW YOU CAN DO
Exercises 13c–20c.