Are Variables
Related?
Explore how statisticians detect and measure relationships between two variables using scatterplots, correlation, and regression.
What Does "Related" Mean?
In statistics, two variables are related (or associated) when knowing the value of one variable gives you information about the likely value of the other. If study hours go up and test scores tend to go up too, those variables are related.
Explanatory vs. Response Variables
The Scatterplot
A scatterplot displays the relationship between two quantitative variables. Each point represents one observation with its \(x\) and \(y\) values.
Describing a Scatterplot
When you describe a scatterplot, always mention four features:
The Correlation Coefficient \(r\)
The correlation coefficient \(r\) measures the strength and direction of a linear relationship between two quantitative variables.
Visualizing Different \(r\) Values
Correlation vs. Causation
Important Properties of \(r\)
The Least-Squares Regression Line
The least-squares regression line (LSRL) is the line that minimizes the sum of squared vertical distances (residuals) from each point to the line.
Coefficient of Determination \(r^2\)
\(r^2\) tells you the proportion of the variation in \(y\) that is explained by the linear relationship with \(x\).
How to Analyze a Relationship
Example 1: Study Hours and Scores
A teacher records study hours and test scores for 8 students. The data yields \(\bar{x} = 4\), \(\bar{y} = 75\), \(s_x = 2\), \(s_y = 10\), and \(r = 0.90\).
Example 2: Predicting with the LSRL
Using \(\hat{y} = 57 + 4.5x\), predict the score for a student who studies 5 hours.
Example 3: Residuals
A residual is the difference between an observed value and the predicted value from the LSRL.
If a student studies 5 hours and actually scores 85, but the model predicts 79.5:
Common Mistakes
Summary Table
| Concept | Key Detail | |
|---|---|---|
| Scatterplot | Displays relationship between two quantitative variables | Describe: D-F-S-O |
| \(r\) | Measures strength and direction of linear association | \(-1 \leq r \leq 1\) |
| LSRL | \(\hat{y} = a + bx\) | Passes through \((\bar{x}, \bar{y})\) |
| \(r^2\) | Proportion of variation in \(y\) explained by \(x\) | Always between 0 and 1 |
| Residual | \(y - \hat{y}\) | Check for random scatter |
| Causation | Requires controlled experiment | Correlation ≠ causation |
Question 1 of 5
A scatterplot of hours of exercise per week vs. resting heart rate shows a downward trend with points closely clustered around a line. Which best describes this relationship?
Question 2 of 5
If the correlation between height and weight for a sample of adults is \(r = 0.72\), what is the value of \(r^2\) and what does it mean?
Question 3 of 5
The LSRL for predicting final exam score from midterm score is \(\hat{y} = 10 + 0.85x\). A student scored 80 on the midterm and 82 on the final. What is the residual?
Question 4 of 5
A researcher finds that cities with more fire stations have more crimes. She concludes that fire stations cause crime. What is the flaw?
Question 5 of 5
Which of the following is true about the correlation coefficient \(r\)?