Lesson 9 of 11 · 20 min
Investigating sleep: a correlational study and Pearson's r
Design a correlational study of normal hours of sleep and another variable, then read the scatterplot, find and interpret Pearson's r and its p-value, and explain why correlation does not show cause.
What you will be able to do
- Explain why the relationship between hours of sleep and another variable is investigated with a correlational design, and operationalise both variables.
- Write null and alternative hypotheses for a correlational study.
- Describe a correlation from a scatterplot and from Pearson's r: direction, strength and significance (the p-value against 0.05).
- Explain why a correlation does not show cause, and identify a possible third variable.
Does scrolling on your phone before bed cost you sleep? It is a reasonable question, but you cannot answer it with an experiment that deprives people of sleep: QCAA's guidelines for school research do not allow investigations that involve sleep deprivation, and changing someone's sleep on purpose could harm them. Instead, you can measure people's normal sleep and their device use as they happen, and see whether the two go together. That is a correlational study.
Definition
Correlational research
A correlational study measures two variables as they naturally occur, in the same participants, to see whether they are related. The researcher manipulates nothing, so there is no independent or dependent variable: the two measured variables are sometimes called co-variables.
Operationalise the variables. "Device use" and "sleep" are too vague to measure. Say exactly how each will be measured.
- Device use before bed: the number of minutes spent on a phone, tablet or computer in the 60 minutes before lights out, recorded each night in a sleep diary (or from the phone's screen-time report) and averaged over 7 nights.
- Hours of sleep: the time from falling asleep to waking, in hours, recorded each morning in the diary (or by a wearable device) and averaged over the same 7 nights.
Averaging over a week makes each measure more reliable than one night, and measuring normal hours of sleep keeps the study ethical.
Key idea
Hypotheses for a correlation
Null hypothesis (H₀): There is no correlation between the average minutes of device use in the hour before lights out and the average hours of sleep per night of Year 11 students.
Alternative hypothesis (H₁): There is a correlation between the average minutes of device use in the hour before lights out and the average hours of sleep per night of Year 11 students.
H₁ can name a direction when there is a reason to expect one: "…there is a negative correlation…".
A convenience sample of your own class is easy, but is it like the whole school? Draw convenience, random and stratified samples and compare them.
The data. Twelve Year 11 students kept a sleep diary for a week. Each point on the scatterplot is one student: their average device use before lights out (across) and their average hours of sleep (up).
| Student | Device use (min) | Sleep (h) |
|---|---|---|
| A | 0 | 8.1 |
| B | 10 | 8.6 |
| C | 15 | 7.4 |
| D | 20 | 8.3 |
| E | 20 | 7.6 |
| F | 30 | 8.0 |
| G | 30 | 7.1 |
| H | 40 | 7.5 |
| I | 45 | 7.9 |
| J | 50 | 6.8 |
| K | 60 | 7.2 |
| L | 60 | 6.6 |
Device use before bed and hours of sleep, with the least-squares trendline. , , .
Reading the scatterplot. The points run from top left to bottom right: students who used devices longer before bed tended to sleep less. That is a negative correlation. The points are scattered around the line rather than on it, so the relationship is far from perfect: student I used devices for 45 minutes and still slept 7.9 hours.
Definition
Pearson's correlation coefficient, r
A number from to that measures how closely the points fit a straight line.
- The sign gives the direction: positive (both rise together) or negative (one rises as the other falls).
- The size (ignoring the sign) gives the strength: is a perfect straight line; is no linear relationship.
Calculate it with technology: =CORREL(A2:A13, B2:B13) in a spreadsheet, or the statistics mode of a calculator. For these data, .
| Size of r (ignoring the sign) | Strength |
|---|---|
| 0.75 to 1 | Strong |
| 0.5 to less than 0.75 | Moderate |
| 0.25 to less than 0.5 | Weak |
| Less than 0.25 | No correlation (no linear relationship) |
For the 12 students, . Describe the correlation.
Is it significant? Twelve students is a small sample, and even if device use and sleep were unrelated in the whole population, a sample of 12 could show some correlation by chance. The p-value tells you how likely a correlation at least this strong would be if the null hypothesis were true. Software works it out from and (using with degrees of freedom).
For these data , which is less than 0.05. A correlation this strong would happen by chance less than 1% of the time if there were no real relationship, so the result is statistically significant: reject the null hypothesis. The data support a negative correlation between device use before bed and hours of sleep.
Key idea
Significance depends on the sample size
The same can be significant in a large sample and not in a small one. gives with 10 participants, but with 40. A weak correlation can be real; it just takes more data to be confident of it.
This is a different class's sample data. Move a point and watch , the trendline and change. One unusual student can change a lot.
Worked example
Interpret a correlation that is not significant
Ten students recorded their exercise and sleep for a week.
| Exercise (min per day) | 0 | 15 | 20 | 30 | 30 | 45 | 60 | 60 | 75 | 90 |
|---|---|---|---|---|---|---|---|---|---|---|
| Sleep (h per night) | 7.2 | 7.8 | 6.9 | 7.5 | 8.1 | 7.0 | 7.9 | 7.4 | 8.3 | 7.6 |
Software gives and .
(a) Describe the correlation. (b) State whether the null hypothesis should be rejected, and conclude. (c) The students conclude that "exercise has no effect on sleep". Evaluate this conclusion.
Step 1: Direction and strength
is positive, and its size lies between 0.25 and 0.5: a weak positive correlation. Students who exercised more tended to sleep slightly longer.
Step 2: Significance
is greater than 0.05, so the correlation is not significant: retain the null hypothesis. A correlation this strong could easily arise by chance in a sample of 10.
Step 3: Evaluate "no effect"
The study cannot show an effect either way. A correlational design manipulates nothing, so it cannot test cause. And not finding a significant correlation is not proof of no relationship: with only 10 students, a real weak correlation may be missed (a possible type II error). A larger sample is needed.
Retaining H₀ means the evidence is not strong enough; it does not show that H₀ is true.
Try it yourself first, then check the working one step at a time.
Answer
(a) A weak positive correlation (). (b) : retain H₀; there is no significant correlation between exercise and sleep in this sample. (c) The conclusion overreaches: a correlation cannot show an effect, and a non-significant result from 10 students may miss a real weak relationship (type II error).
Method
Direction from the sign, strength from the size of .
Compare with 0.05: below, reject H₀; above, retain it.
Never conclude cause; a non-significant result is not proof of no relationship.
Watch out for
Saying "there is no correlation" when . There is a weak one in the sample; it is just not significant.
Concluding cause from a correlation, in either direction.
Correlation does not show cause. The data fit "device use reduces sleep", but a correlation alone cannot show that, for three reasons.
- Nothing was manipulated. Students chose their own device use; no one was assigned to it.
- Direction. The cause could run the other way: students who are not sleepy (because their body clock is later) may pick up their phones because they cannot sleep.
- A third variable. Something else could cause both: a heavy homework load, stress or anxiety could keep a student on their laptop late and shorten their sleep.
Write "is associated with" or "is related to", never "causes". To test cause you need an experiment, which here would raise ethical problems.
Another study finds a moderate positive correlation between the minutes of exercise students do in a day and their hours of sleep. Which conclusion is justified?
Common mistake
Three ways to lose marks with r
- Calling a negative correlation weak because it is negative: is stronger than .
- Saying "significant" without the -value and the 0.05 level.
- Concluding cause. A correlation never shows cause, however strong it is.
Tip
Evaluating your own correlational study
- Reliability: average several nights; use a wearable or screen-time report rather than memory; give everyone the same diary and instructions.
- Validity: self-reported sleep is often overestimated; students who know the aim may change their habits (participant expectations); a convenience sample of one class may not represent all students.
- Sample size: with only 12 participants, one unusual student can change a lot, and a real but weak correlation may not be significant.
Summary
A correlational study measures two co-variables as they occur and manipulates nothing; normal hours of sleep are studied this way because deprivation would be unethical.
H₀: no correlation between the operationalised variables in the population; H₁: a correlation (or a positive or negative one).
Pearson's r runs from −1 to +1: the sign is the direction, the size the strength (≥ 0.75 strong, 0.5–0.75 moderate, 0.25–0.5 weak).
If p < 0.05, the correlation is significant: reject H₀. Larger samples make smaller correlations significant.
Correlation does not show cause: nothing was manipulated, the direction is unknown, and a third variable may explain both.
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.