Scatter Plot: A graph that displays the relationship between two variables using ordered pairs plotted as points.
Correlation: A measure of the strength and direction of a linear relationship between two variables.
- Identify the independent variable (x-axis) and dependent variable (y-axis)
- Create a coordinate plane with appropriate scales
- Plot each ordered pair as a point
- Analyze the pattern of points
- Determine the type and strength of correlation
Independent variable (x): Hours studied
Dependent variable (y): Test score
X-axis: Hours studied (0 to 8)
Y-axis: Test score (60 to 95)
Scale: 1 unit = 1 hour on x-axis, 1 unit = 5 points on y-axis
(2, 65): 2 hours → 65 points
(3, 70): 3 hours → 70 points
(4, 75): 4 hours → 75 points
(5, 80): 5 hours → 80 points
(6, 85): 6 hours → 85 points
(7, 90): 7 hours → 90 points
Points form an upward-sloping line
As x increases, y increases consistently
Pattern is linear with minimal scatter
Direction: Positive (upward trend)
Strength: Strong (points closely follow a straight line)
Type: Linear (forms a straight line pattern)
The scatter plot shows a positive strong linear correlation between hours studied and test scores. As study time increases, test scores tend to increase.
• Positive Correlation: Both variables increase together
• Linear Pattern: Points form a straight line
• Correlation Strength: Determined by how closely points follow a line
Least Squares Regression Line: The line that minimizes the sum of the squared vertical distances from each data point to the line.
Regression Equation: y = mx + b, where m is the slope and b is the y-intercept.
Mean of x values: x̄ = (1 + 2 + 3 + 4 + 5)/5 = 15/5 = 3
Mean of y values: ȳ = (3 + 5 + 7 + 9 + 11)/5 = 35/5 = 7
Σx = 15, Σy = 35, Σx² = 1² + 2² + 3² + 4² + 5² = 1 + 4 + 9 + 16 + 25 = 55
Σxy = (1×3) + (2×5) + (3×7) + (4×9) + (5×11) = 3 + 10 + 21 + 36 + 55 = 125
m = [n(Σxy) - (Σx)(Σy)] / [n(Σx²) - (Σx)²]
m = [5(125) - (15)(35)] / [5(55) - (15)²]
m = [625 - 525] / [275 - 225]
m = 100 / 50 = 2
b = ȳ - mx̄
b = 7 - 2(3) = 7 - 6 = 1
y = mx + b
y = 2x + 1
Check with point (3, 7): y = 2(3) + 1 = 7 ✓
Check with point (1, 3): y = 2(1) + 1 = 3 ✓
All points lie exactly on the line (perfect correlation)
The equation of the least squares regression line is y = 2x + 1.
• Slope Formula: m = [n(Σxy) - (Σx)(Σy)] / [n(Σx²) - (Σx)²]
• Y-intercept: b = ȳ - mx̄
• Regression Line: Passes through point (x̄, ȳ)
Correlation Coefficient (r): A measure of the strength and direction of the linear relationship between two variables. Ranges from -1 to 1.
Perfect Correlation: r = 1 (perfect positive) or r = -1 (perfect negative).
Number of data points: n = 5
| x | y | x² | y² | xy |
|---|---|---|---|---|
| 2 | 8 | 4 | 64 | 16 |
| 4 | 12 | 16 | 144 | 48 |
| 6 | 16 | 36 | 256 | 96 |
| 8 | 20 | 64 | 400 | 160 |
| 10 | 24 | 100 | 576 | 240 |
Σx = 2 + 4 + 6 + 8 + 10 = 30
Σy = 8 + 12 + 16 + 20 + 24 = 80
Σx² = 4 + 16 + 36 + 64 + 100 = 220
Σy² = 64 + 144 + 256 + 400 + 576 = 1440
Σxy = 16 + 48 + 96 + 160 + 240 = 560
r = [n(Σxy) - (Σx)(Σy)] / √[n(Σx²) - (Σx)²][n(Σy²) - (Σy)²]
r = [5(560) - (30)(80)] / √[5(220) - (30)²][5(1440) - (80)²]
r = [2800 - 2400] / √[1100 - 900][7200 - 6400]
r = 400 / √[200][800]
r = 400 / √160000
r = 400 / 400 = 1
r = 1 indicates a perfect positive linear correlation
All data points lie exactly on a straight line with positive slope
Notice: y = 2x + 4 (from previous exercise)
Each increase of 2 in x results in an increase of 4 in y
Perfect linear relationship: r = 1
The correlation coefficient is r = 1, indicating a perfect positive linear relationship.
• Correlation Range: -1 ≤ r ≤ 1
• Interpretation: r = 1 (perfect positive), r = 0 (no correlation), r = -1 (perfect negative)
• Formula: Uses means, standard deviations, and covariance
Prediction: Using a regression equation to estimate the value of the dependent variable for a given value of the independent variable.
Interpolation: Predicting within the range of observed data.
Extrapolation: Predicting outside the range of observed data (less reliable).
Given: y = 1.5x + 10
Where x = hours studied and y = test score
Given: x = 7.5 hours of study
y = 1.5(7.5) + 10
y = 11.25 + 10
y = 21.25
The model predicts a test score of 21.25 for 7.5 hours of study
This is interpolation since 7.5 is likely within the observed range
The prediction is reliable if the correlation is strong
The model assumes the relationship continues beyond observed data
The predicted test score for a student who studies 7.5 hours is 21.25 points.
• Substitution: Replace x with the given value in the equation
• Interpolation vs Extrapolation: Assess reliability based on data range
• Correlation Strength: Stronger correlations yield more reliable predictions
Residual: The difference between the actual y-value and the predicted y-value: residual = actual - predicted.
Residual Analysis: Examining residuals to assess the fit of a regression model.
For x = 4, the actual y-value is 18
Using the regression equation: y = 2(4) + 5 = 8 + 5 = 13
Residual = Actual - Predicted = 18 - 13 = 5
Positive residual (5) means the actual value is 5 units above the predicted value
The point (4, 18) is above the regression line
Large residuals indicate poor model fit for that point
Sum of residuals should be close to zero for good fit
The residual for the point (4, 18) is 5, meaning the actual value is 5 units above the predicted value.
• Residual Formula: residual = y_actual - y_predicted
• Positive Residual: Point above regression line
• Negative Residual: Point below regression line
Regression Analysis: A statistical method used to model and analyze the relationship between a dependent variable and one or more independent variables.
Correlation: A measure of the strength and direction of the linear relationship between two variables.
Least Squares Method: A technique that finds the line that minimizes the sum of the squared vertical distances from each data point to the line.
- Collect data: Gather paired observations for variables of interest
- Create scatter plot: Visualize the relationship between variables
- Calculate correlation coefficient: Assess strength and direction of relationship
- Determine regression line: Calculate slope and y-intercept
- Assess model fit: Examine residuals and goodness-of-fit measures
- Make predictions: Use the model for forecasting within or beyond observed range
• Correlation Range: -1 ≤ r ≤ 1
• Perfect Correlation: r = ±1 indicates perfect linear relationship
• No Linear Correlation: r = 0 indicates no linear relationship
• Regression Line: Always passes through the point (x̄, ȳ)
Linear: \(y = 1.2x + 3\)
Quadratic: \(y = 0.1x^2 + 0.8x + 2\)
Exponential: \(y = 2.5e^{0.1x}\)
Analysis: The chart shows how different models fit the same data differently.
- Linear model: Best for data with constant rate of change
- Quadratic model: Captures curvature in the data
- Exponential model: Suitable for data with increasing rate of change
- Choose model based on pattern and correlation coefficient