regression Flashcards

(7 cards)

1
Q

What is simple linear regression?

A
  • predict the value of one variable (dependent variable, Y) based on the value of another variable (independent variable, X).
    • It fits a line of best fit through the data points to model the relationship

🔹 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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does Regression differ from correlation?

A
  • Correlation: Measures strength and direction of a linear relationship (no prediction).
    • Correlation gives a single number r.𓂃˖˳·˖ ִֶָ ⋆🌷͙⋆ ִֶָ˖·˳˖𓂃 ִֶָ
  • Regression: Builds a predictive equation to estimate Y from X.
  • Regression gives an equation with slope and intercept.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the regression equation?

A

Ŷ=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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What do the slope and intercept represent in the regression equation?

A
  • Slope (b):
  • Positive → As X increases, Y increases.
  • Negative → As X increases, Y decreases.
  • Zero → No linear relationship (X does not predict Y).
  • Intercept (a):
  • Predicted value of Y when X = 0.
  • Sometimes meaningful (e.g., baseline score), sometimes not (depends on context).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you interpret the slope and intercept of a regression equation?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does R-squared represent?

A

R² measures how well the regression model explains variability in Y.

  • Range: 0 to 1.
  • 0 → Model explains none of the variability.
  • 1 → Model explains all variability.
  • Interpretation: Higher R² = better fit, but “good” depends on context and field norms.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you calculate the predicted value in regression?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly