What is simple linear regression?
🔹 Purpose
- Allows prediction of outcomes (Y) from known values of predictors (X).
- Helps quantify how much change in X is associated with change in Y.
How does Regression differ from correlation?
What is the regression equation?
Ŷ=a+bX
-Ŷ= Predicted value of the dependent variable
- a= Intercept (value of Y when X = 0)
- b= Slope (change in Y for each one‑unit change in X)
- X= Independent variable
looking at R data
##(intercept) estimate (8.8) --- y-intercept ## age - 0.017 ---- slope ## ------- ## multiple R: squared 0.00146
interpreting R
ex. R_2 = 0.0 Age tells us nothing about support (there is no relationship)
!predict support 18 yrs old
Ŷ= 8.84 + (-0.017)(18) = 8.52
What do the slope and intercept represent in the regression equation?
How do you interpret the slope and intercept of a regression equation?
Typical R output includes:
- Intercept (a): The baseline predicted value.
- Slope (b): The rate of change in Y per unit change in X.
- p‑value for slope: Tests whether slope is significantly different from 0.
- R‑squared (R²): Proportion of variance in Y explained by X.
- Residual standard error: Average distance between observed and predicted values.
Example:
- Intercept = 6.42
- Slope = 0.44 (positive, significant, p < .001)
- R² = 0.117 → About 12% of variation in Y explained by X.
What does R-squared represent?
R² measures how well the regression model explains variability in Y.
How do you calculate the predicted value in regression?
Steps:
- Write regression equation: Ŷ=a+bX.
- Plug in the given X value.
- Solve for Ŷ.
Example:
Equation:Ŷ=28.8+0.42X
- If X=86:
Ŷ=28.8+0.42(86)=65
Predicted attraction score = 65.