Train your eye, then break the coefficient on purpose.
cor.test(), and distinguish r from r2.You will examine the same statistic under several data conditions. Commit before touching the controls.
1a. Which do you think can change Pearson's r the most: moving one extreme point, restricting the range of x, or revealing a third variable? Why?
1b. Suppose two variables correlate at r = .80. What, if anything, does that tell you about whether one variable causes the other?
For each scatterplot, move the slider to your best guess before checking. The five datasets are fixed so everyone in class sees the same evidence.
Q1. Across the five plots, what visual feature helped you most: the direction, how tightly points clustered around a line, or something else? What did you systematically over- or underestimate?
The twelve grey observations have only a weak positive association. The orange point is far from the rest on x. Move only its y-value.
| Orange point y | Observed r | What changed? |
|---|---|---|
| -10 | ||
| 5 | ||
| 30 |
Q2. The twelve original points never moved. Explain how one observation could make the overall coefficient look negative, near zero, or strongly positive.
Q3. What should this make you do before reporting a Pearson correlation?
Across all 40 applicants, admissions test scores and first-year GPA go together. But a selective college admits only its top scorers, so it only ever sees their GPAs. Raise the bar and watch what the college sees.
| Top scorers admitted | Observed r |
|---|---|
| 40 | |
| 30 | |
| 20 | |
| 10 |
Q4. Why did the correlation weaken when the college admitted only top scorers, even though the relationship across all applicants did not change?
Q5. Give one behavioral-science example where selection into a restricted sample could make a real relationship look weaker than it is in the broader population.
These data are from children. Shoe length and reading score show a strong raw association. Use the buttons to reveal age, then remove the linear age trend from both variables.
Raw view: every point is treated as if age were irrelevant.
Q6. In the raw view, what causal story might someone be tempted to tell about shoe length and reading? Why is that story poor?
Q7. After coloring by age, compare the overall r with the three within-age correlations. What pattern do you see?
Q8. In the adjusted view, the residual correlation is nearly zero. What does age explain about the original association?
One trainer dataset has r ≈ .60. Squaring gives r2 ≈ .36. The coefficient and its square answer different questions.
Q9. A classmate says, “r = .60 means 60% of the variability is shared.” Correct the statement.
Run this code yourself. It reproduces the second trainer dataset exactly.
x <- 1:14
y <- c(43.54, 36.88, 53.83, 33.55, 49.62, 42.01, 59.51,
40.79, 57.98, 50.03, 66.04, 46.05, 63.36, 56.81)
plot(x, y)
cor.test(x, y)
cor(x, y)^2
Pearson's product-moment correlation
t = 2.5974, df = 12, p-value = 0.02334
95 percent confidence interval:
0.1016866 0.8575317
sample estimates:
cor
0.5998998
r-squared = 0.3598798
Q10. Interpret the coefficient, the confidence interval, and r2. Then state one conclusion the output does not justify.
Q11. Re-read Step 1. Which of your predictions changed most? Use evidence from at least two tools in this module.
Q12. Complete this sentence in your own words: “A correlation coefficient is useful when ___, but dangerous when ___.”
Filename: correlation-trainer_lastname1_lastname2.pdf