Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A student asks five friends how many cups of coffee they drank in a day and how many hours they slept that night. The cups were and the hours of sleep were . Find the means of the two variables, the sum and the correlation coefficient .
and . From totals, the numerator is . The denominator has the factors and under one root. is unchanged by a change of units, and for ranks .
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The means. cups and hours.
Step 2. The sums. The deviations of are . Then . Also and .
Step 3. The correlation. .
Answer: means cups and hours, and . More coffee goes with less sleep in these five, a strong negative association. Five people do not prove a rule.
Log in to join the discussion.
Loading…