594 15 Correlation
accounted for, that is, find r
HS.A
. Test the hypothesis that ρ
HS.A
is positive
at the level
α =0.01.
Find an approximate 95% confidence interval for
ρ
HS
.
15.3. Vending Machine and Pharmacy Errors. Mr. Joseph Bentley, the
owner of a pharmacy store, wants to remove the Coke vending machine
standing in front of his store because he believes the vending machine in-
fluences the number of errors the store employees make. More precisely, as
more Coke is sold outside his store, more errors are made. He provided the
following data:
Errors made 5 3 10 9 5 7 8 4
Coke sold 112 100 220 250 100 200 160 100
Find the coefficient of correlation. Comment on why this correlation is high.
Is there a causation – are Coke sales by themselves influencing the phar-
macy employees?
15.4. Vending Machine and Pharmacy Errors Revisited. Refer to Exercise
15.3. In addition to Errors and Coke, Mr. Bentley provided the count of
people that pass by his store (and the vending machine):
Errors made 5 3 10 9 5 7 8 4
Coke 112 100 220 250 100 200 160 100
People 10000 6000 17000 20000 9000 15000 14000 8000
Find the coefficient of correlation between Errors and Coke sales while ac-
counting for the number of people. Comment.
15.5. Corn Yields and Rainfall. The following table published by Misner
(1928) has been analyzed by Ezekiel and Fox (1959). The variables are
years:
rain (X): rainfall measurements in inches, in the six states, from 1890 to
1927. Year 1 in the data below corresponds to 1890.
yield (Y): yearly corn yield in bushels per acre, in six Corn Belt states
(Iowa, Illinois, Nebraska, Missouri, Indiana, and Ohio).
year X Y year X Y
1 9.6 24.5 20 12.0 32.3
2 12.9 33.7 21 9.3 34.9
3 9.9 27.9 22 7.7 30.1
4 8.7 27.5 23 11.0 36.9
5 6.8 21.7 24 6.9 26.8
6 12.5 31.9 25 9.5 30.5
7 13.0 36.8 26 16.5 33.3
8 10.1 29.9 27 9.3 29.7
9 10.1 30.2 28 9.4 35.0
10 10.1 32.0 29 8.7 29.9
11 10.8 34.0 30 9.5 35.2
12 7.8 19.4 31 11.6 38.3
13 16.2 36.0 32 12.1 35.2
14 14.1 30.2 33 8.0 35.5
15 10.6 32.4 34 10.7 36.7
16 10.0 36.4 35 13.9 26.8
17 11.5 36.9 36 11.3 38.0