Linear Regression Overview
- 42Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
42 questions
- 1Regression analysis helps us understand the relationship between two or more variables by creating a_____model.
Hint
Think about what the model does with the variables.
Answer
predictive
- 2In regression, the variable we want to predict is called the_____variable.
Hint
It depends on the other variables.
Answer
dependent
- 3In linear regression, the dependent variable must be a_____numerical value.
Hint
Think about the type of data that can take any value within a range.
Answer
continuous
- 4The equation of a straight line in simple linear regression is y=mx+c, where m is the_____and c is the intercept.
Hint
It indicates how much y changes when x increases by one unit.
Answer
slope
- 5The difference between the actual value of y and the predicted value from the regression line is called the_____.
Hint
It's also known as the error in prediction.
Answer
residual
- 6The best-fit line in linear regression is the one that minimizes the sum of squared_____.
Hint
It's the criterion for choosing the line.
Answer
residuals
- 7In multiple linear regression, the equation involves more than one_____variable.
Hint
These are the predictors or features.
Answer
independent
- 8In multiple linear regression, the model represents a_____in higher dimensions.
Hint
It's a generalization of a line to more than two dimensions.
Answer
hyperplane
- 9Before building a linear regression model, the dataset is typically split into a_____set and a testing set.
Hint
This set is used to teach the model.
Answer
training
- 10The metric that measures the average squared difference between actual and predicted values is called_____.
Hint
It's often abbreviated as MSE.
Answer
mean squared error
- 11The square root of the mean squared error is called_____.
Hint
It's in the same units as the target variable.
Answer
root mean squared error
- 12The coefficient of determination, denoted as_____, measures the proportion of variance in the dependent variable explained by the model.
Hint
It's often written as R-squared.
Answer
R2
- 13Adjusted R-squared is preferred over R-squared because it penalizes the inclusion of_____variables.
Hint
Variables that do not improve the model.
Answer
useless
- 14One assumption of linear regression is that there is a_____relationship between the independent and dependent variables.
Hint
The model assumes a straight-line relationship.
Answer
linear
- 15Another assumption is that the residuals are normally distributed with mean_____.
Hint
The average of the errors should be zero.
Answer
zero
- 16Homoscedasticity means that the variance of residuals is_____across all levels of the independent variable.
Hint
Opposite of heteroscedasticity.
Answer
constant
- 17Multicollinearity occurs when independent variables are highly_____with each other.
Hint
They are not independent as assumed.
Answer
correlated
- 18The correlation coefficient r measures the_____and direction of a linear relationship between two variables.
Hint
It ranges from -1 to +1.
Answer
strength
- 19When r is close to zero, it indicates no_____relationship, but there could still be a nonlinear relationship.
Hint
The coefficient only captures straight-line correlations.
Answer
linear
- 20Outliers can have a strong influence on the regression line, often_____it toward themselves.
Hint
They can distort the best-fit line.
Answer
pulling
- 21When a categorical variable has no natural order (e.g., gender), it should be converted using_____encoding.
Hint
Creates dummy variables for each category.
Answer
one-hot
- 22For missing values in numeric columns, a common imputation strategy is to use the_____of that column.
Hint
It is robust to outliers.
Answer
median
- 23Columns with very low variance (e.g., almost all values the same) are often removed using a_____filter.
Hint
They provide little information for prediction.
Answer
low variance
- 24In R, the function used to fit a linear regression model is_____.
Hint
Stands for linear model.
Answer
lm
- 25Gradient descent is an optimization algorithm that iteratively updates model parameters to minimize the_____.
Hint
Also called loss function.
Answer
cost function
- 26The size of the step taken during gradient descent is controlled by the_____rate.
Hint
Too high can cause overshooting; too low slows convergence.
Answer
learning
- 27In linear regression, the coefficients represent the_____change in the dependent variable for a one-unit change in the independent variable.
Hint
It's the expected effect.
Answer
average
- 28The point (xĖ, yĖā) always lies on the_____regression line.
Hint
It's a property of ordinary least squares.
Answer
best-fit
- 29When building a model in R, the predicted values can be obtained using the_____function.
Hint
It's a generic function for model predictions.
Answer
predict
- 30In Python, after fitting a_____
LinearRegressionmodel, predictions on test data are obtained by calling themethod.Hint
Same as in R, but it's a method.
Answer
predict
- 31The difference between the total sum of squares (SST) and the sum of squared errors (SSE) is the sum of squares due to_____(SSR).
Hint
It represents the variation explained by the model.
Answer
regression
- 32If the residuals show a pattern (e.g., increasing spread as X increases), it indicates a violation of the_____assumption.
Hint
The opposite of constant variance.
Answer
homoscedasticity
- 33When a categorical variable has an ordinal nature (e.g., low, medium, high), you can use_____encoding to convert it to numbers.
Hint
Assigns integers like 0, 1, 2.
Answer
label
- 34The R function_____
summary()on anlmobject provides theof the model, including coefficients and R-squared.Hint
It's the same name as the function.
Answer
summary
- 35When using the_____
lm()function in R, the dependent variable is placed on theside of the tilde (~) in the formula.Hint
It's y ~ x.
Answer
left
- 36A major reason for splitting data into training and test sets is to avoid_____on the training data.
Hint
The model may memorize rather than generalize.
Answer
overfitting
- 37In the context of the lecture, the 'mpg' dataset is used to predict_____from weight, horsepower, etc.
Hint
Miles per gallon.
Answer
mileage
- 38The gradient descent algorithm uses_____derivatives to update parameters in the direction of steepest descent.
Hint
It considers the effect of changing one parameter at a time.
Answer
partial
- 39A model with R2 close to 1 indicates a very good fit, but it may still have high_____if overfitted.
Hint
It's about the model's sensitivity to training data.
Answer
variance
- 40In the diamond dataset example, the root mean squared error for the first model (price ~ carat) was about_____.
Hint
It's a number around 1000.
Answer
1002
- 41The second model with carat, x, y, z had a higher RMSE of about_____, showing it performed worse.
Hint
It's larger than the first model's RMSE.
Answer
1574
- 42When using_____
predict()in R on test data, you pass the new data as aframe with the same column names.Hint
It's a rectangular data structure.
Answer
data

Ask anything
We've read this whole study set, so questions about it get the best answers.