1/30
Looks like no tags are added yet.
What is the purpose of linear regression for prediction?
To model the linear relationship between predictors and an outcome so we can predict outcomes for new observations.
What is a predictor variable?
A variable used to predict an outcome, denoted X.
What is an outcome variable in regression?
The variable we want to predict, denoted Y.
What does Y-hat represent?
The predicted value of the outcome variable.
What is simple linear regression?
A linear regression model with one predictor variable.
What does the intercept represent?
The predicted value of Y when X equals zero.
What does the slope represent?
The predicted change in Y associated with a one-unit increase in X, on average.
What does a positive slope indicate?
A predicted increase in Y as X increases.
What does a negative slope indicate?
A predicted decrease in Y as X increases.
What does a slope of zero indicate?
No predicted change in Y as X changes.
What is a residual?
The difference between an observed outcome and its predicted outcome.
What is the residual formula?
Observed Y minus predicted Y.
What does a positive residual indicate?
The model underpredicted the observed outcome.
What does a negative residual indicate?
The model overpredicted the observed outcome.
What does a residual of zero indicate?
The predicted outcome equals the observed outcome.
What does a residual represent visually?
The vertical distance between an observed data point and the fitted regression line, with its sign.
What is the least squares method?
A method that selects the line minimizing the sum of squared residuals across all observations.
Why are residuals squared in least squares?
To prevent positive and negative errors from cancelling and to penalize larger errors.
What are the two steps involved in prediction?
Fit a model using observed X and Y, then predict Y using new observed values of X.
How do we predict an outcome using a fitted regression line?
Multiply the predictor value by the slope and add the intercept.
How do we predict the change in Y associated with a change in X?
Multiply the slope by the change in X.
Do we include the intercept when predicting a change in Y?
No, the intercept cancels when comparing predictions.
What does lm() do?
Fits a linear regression model.
In lm(Y ~ X, data = dataset), which variable is the outcome?
Y, the variable before the tilde.
In lm(Y ~ X, data = dataset), which variable is the predictor?
X, the variable after the tilde.
Does a regression slope automatically represent a causal effect?
No, it generally represents an association unless causal assumptions are satisfied.
What language should be used when interpreting a noncausal slope?
A one-unit increase in X is associated with a predicted change in Y, on average.
What determines the unit used to interpret a non-binary outcome intercept?
The original unit of measurement of Y.
What determines the units used when interpreting a non-binary outcome slope?
The change in Y's units associated with a one-unit increase in X.
What is extrapolation?
Making predictions for predictor values outside the observed range of data.
Why might an intercept have limited substantive meaning?
X = 0 may be unrealistic or outside the observed range.