Regression Analysis Overview
- 29Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
29 questions
- 1In regression analysis, the variable we want to predict is called the_____variable.
Hint
Think about which variable depends on the others.
Answer
dependent
- 2A linear regression model with one independent variable is represented by the equation $y =_____
- c$.
Hint
The slope multiplied by the independent variable.
Answer
mx
- 3The difference between the observed value and the predicted value in regression is called the_____.
Hint
It's the error term for each data point.
Answer
residual
- 4The method of finding the best fit line by minimizing the sum of squared residuals is known as_____.
Hint
It's the standard estimation method for linear regression.
Answer
Ordinary Least Squares (OLS)
- 5In multiple linear regression, the model equation includes_____independent variables.
Hint
It's the opposite of simple linear regression.
Answer
multiple
- 6The coefficient of determination, R2, measures the proportion of_____in the dependent variable explained by the independent variables.
Hint
It tells you how much of the variability is captured by the model.
Answer
variance
- 7The metric that penalizes adding useless variables to a regression model is called_____.
Hint
It's a modified version of R2 that accounts for the number of predictors.
Answer
adjusted R2
- 8The root mean square error (RMSE) is calculated as the square root of the_____of the squared residuals.
Hint
It's an average of the squared errors, then square-rooted.
Answer
mean
- 9The correlation coefficient r between two variables indicates the strength and direction of a_____relationship.
Hint
It measures how closely the points follow a straight line.
Answer
linear
- 10In linear regression, the assumption of homoscedasticity means that the residuals have_____variance across all levels of the independent variable.
Hint
Think 'same spread' for all predicted values.
Answer
constant
- 11The problem of high correlation among independent variables in regression is called_____.
Hint
It occurs when predictors are not truly independent.
Answer
multicollinearity
- 12To check for linearity in regression, you can create a scatter plot of the residuals versus the_____.
Hint
You plot errors against predictions to see patterns.
Answer
fitted values
- 13In logistic regression, the sigmoid function maps any real-valued number to a probability between_____and 1.
Hint
It's a range from impossible to certain.
Answer
0
- 14The cost function used in logistic regression is called_____loss, which penalizes wrong predictions heavily.
Hint
It's based on the logarithm of the predicted probabilities.
Answer
log
- 15In a confusion matrix for binary classification, the number of actual positive cases correctly predicted is called_____.
Hint
It's the count of correctly predicted positive instances.
Answer
true positives
- 16The recall for the positive class is calculated as true positives divided by the sum of true positives and_____.
Hint
It's the proportion of actual positives that were correctly identified.
Answer
false negatives
- 17To handle missing values in a numeric column, a common strategy is to replace them with the_____of that column.
Hint
It's a measure of central tendency that is robust to outliers.
Answer
median
- 18Before training a regression model, the data should be split into a training set and a_____set.
Hint
This set is used to evaluate model performance on unseen data.
Answer
test
- 19To predict values on the test set using a fitted regression model in_____
sklearn, you call the `` method.Hint
It's the same method used for both regression and classification models in sklearn.
Answer
predict
- 20When encoding a categorical variable with no natural order, the technique of_____encoding should be used.
Hint
It creates binary columns for each category.
Answer
one-hot
- 21The_____
scoremethod insklearnlinear regression returns theof the model on given data.Hint
It's the coefficient of determination.
Answer
R2
- 22In logistic regression, the default decision threshold for classifying a positive class is a probability of_____.
Hint
It's the midpoint of the probability range.
Answer
0.5
- 23Gradient descent is an optimization algorithm used to find the_____of the cost function in regression.
Hint
The algorithm iteratively moves towards the lowest error.
Answer
minimum
- 24The assumption of independence of errors means that residuals should not be_____with each other.
Hint
Errors from one observation should not predict errors from another.
Answer
correlated
- 25If the relationship between the independent and dependent variable is not linear, using linear regression may lead to poor_____.
Hint
The model will not fit well.
Answer
performance
- 26The formula for the sigmoid function is $\sigma(z) = \frac{1}{1 + e^{_____}}$.
Hint
The exponent is negative z.
Answer
−z
- 27A high correlation between independent variables can be detected by examining the_____matrix.
Hint
It shows pairwise correlation coefficients.
Answer
correlation
- 28In_____
sklearn, thefitmethod of a regression model takesarguments: the features and the target.Hint
It expects X and y.
Answer
two
- 29The sum of squared errors (SSE) is also known as the_____sum of squares.
Hint
It's the unexplained variation.
Answer
residual

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