Regression Models & Hypothesis Testing
- 36Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What does regression analysis estimate?
What does regression analysis estimate?
36 questions
- 1
What does regression analysis estimate?
- A
The distribution of a categorical variable
- B
The probability of a binary outcome
- C
The difference between two population means
- D
The relationship between a single dependent variable and one or more independent variables
Correct answer
DThe relationship between a single dependent variable and one or more independent variables
Explanation
Regression analysis is a group of statistical techniques that use existing data to estimate the relationship between a single dependent variable and one or more independent variables.
- A
- 2
What does the 'P' in PACE stand for?
- A
Predict
- B
Plan
- C
Parameter
- D
Probability
Correct answer
BPlan
Explanation
PACE stands for Plan, Analyze, Construct, and Execute. The Plan stage involves understanding the data and problem context.
- A
- 3
In the Analyze stage of PACE for regression, what is typically done?
- A
Build the regression model in Python
- B
Interpret results for stakeholders
- C
Perform exploratory data analysis and check model assumptions
- D
Define the business problem and data requirements
Correct answer
CPerform exploratory data analysis and check model assumptions
Explanation
In the Analyze stage, you examine data more closely to choose an appropriate model, perform EDA, and check model assumptions.
- A
- 4
What is the dependent variable in simple linear regression?
- A
The variable used to predict, denoted by X
- B
The variable that the model estimates, denoted by Y
- C
The variable that is manipulated in an experiment
- D
The variable that is held constant
Correct answer
BThe variable that the model estimates, denoted by Y
Explanation
The dependent variable is the outcome variable that the model estimates, commonly denoted by Y.
- A
- 5
In the equation Y=β0+β1X, what does β1 represent?
- A
The error term
- B
The correlation coefficient
- C
The slope, or the change in Y per one-unit increase in X
- D
The intercept, or the value of Y when X equals zero
Correct answer
CThe slope, or the change in Y per one-unit increase in X
Explanation
Beta-one is the slope, which tells how much Y changes for a one-unit increase in X.
- A
- 6
Which statement best describes the relationship between correlation and causation?
- A
Causation can be proven with a correlation coefficient
- B
Correlation does not imply causation; additional evidence is needed to establish causation
- C
Correlation always implies causation
- D
Correlation and causation are the same concept
Correct answer
BCorrelation does not imply causation; additional evidence is needed to establish causation
Explanation
Correlation indicates a relationship but not necessarily that one variable causes the other. Causation requires more rigorous methods.
- A
- 7
What is a residual in linear regression?
- A
The difference between an observed value and the predicted value from the model
- B
The sum of squared differences between observed and predicted values
- C
The intercept of the regression line
- D
The slope of the regression line
Correct answer
AThe difference between an observed value and the predicted value from the model
Explanation
A residual is the difference between the observed value and the value predicted by the regression line.
- A
- 8
What method does ordinary least squares (OLS) use to find the best-fit line?
- A
Minimizing the sum of absolute residuals
- B
Maximizing the R-squared value
- C
Minimizing the sum of squared residuals
- D
Maximizing the likelihood of the data
Correct answer
CMinimizing the sum of squared residuals
Explanation
OLS minimizes the sum of squared residuals (SSR) to estimate the parameters of the linear regression model.
- A
- 9
Which assumption of simple linear regression states that the residuals should be normally distributed?
- A
Homoscedasticity assumption
- B
Independence assumption
- C
Normality assumption
- D
Linearity assumption
Correct answer
CNormality assumption
Explanation
The normality assumption requires that the residuals (errors) are normally distributed.
- A
- 10
How can the linearity assumption of simple linear regression be checked?
- A
By performing a hypothesis test on the slope
- B
By examining a scatter plot of the independent variable against the dependent variable
- C
By looking at the Q-Q plot of residuals
- D
By calculating the variance inflation factor (VIF)
Correct answer
BBy examining a scatter plot of the independent variable against the dependent variable
Explanation
The linearity assumption is checked by plotting X vs. Y; the points should roughly follow a straight line.
- A
- 11
What does R-squared measure in a linear regression model?
- A
The correlation between the independent and dependent variables
- B
The proportion of variation in the dependent variable explained by the independent variable(s)
- C
The probability that the model is correct
- D
The average error between observed and predicted values
Correct answer
BThe proportion of variation in the dependent variable explained by the independent variable(s)
Explanation
R-squared is the coefficient of determination, representing the proportion of variance in Y explained by X.
- A
- 12
Why is a holdout sample used in regression modeling?
- A
To reduce multicollinearity
- B
To increase the sample size for training
- C
To ensure normality of residuals
- D
To evaluate how well the model performs on data it has not seen before
Correct answer
DTo evaluate how well the model performs on data it has not seen before
Explanation
A holdout sample is a random subset of data not used to fit the model, used to test model performance on unseen data.
- A
- 13
What does a confidence band represent in linear regression?
- A
The confidence interval for the intercept
- B
The standard deviation of the residuals
- C
The range of possible values for the slope coefficient
- D
The uncertainty around the predicted outcome at every value of X
Correct answer
DThe uncertainty around the predicted outcome at every value of X
Explanation
A confidence band is the area around the regression line that shows the confidence interval for predicted values at each X.
- A
- 14
What is the key difference between simple and multiple linear regression?
- A
Multiple regression has two or more independent variables; simple regression has one
- B
Multiple regression does not require the linearity assumption
- C
Multiple regression uses categorical dependent variables
- D
Simple regression cannot handle categorical variables
Correct answer
AMultiple regression has two or more independent variables; simple regression has one
Explanation
Simple linear regression has one independent variable, while multiple linear regression has two or more.
- A
- 15
Why is one-hot encoding used in multiple linear regression?
- A
To convert categorical variables into binary variables that the model can interpret
- B
To handle missing data
- C
To reduce the number of variables in the model
- D
To transform continuous variables into categorical ones
Correct answer
ATo convert categorical variables into binary variables that the model can interpret
Explanation
One-hot encoding transforms a categorical variable into several binary (0/1) variables so they can be used in regression.
- A
- 16
What does an interaction term represent in a multiple regression model?
- A
How the relationship between two independent variables changes the dependent variable
- B
The sum of two independent variables
- C
A variable that is the average of two other variables
- D
The product of the dependent variable and an independent variable
Correct answer
AHow the relationship between two independent variables changes the dependent variable
Explanation
An interaction term captures the combined effect of two independent variables on the dependent variable, typically their product.
- A
- 17
What does the no multicollinearity assumption require?
- A
That the residuals have constant variance
- B
That the sample size is large
- C
That the dependent variable is normally distributed
- D
That independent variables are not highly correlated with each other
Correct answer
DThat independent variables are not highly correlated with each other
Explanation
Multicollinearity occurs when independent variables are highly correlated, which violates this assumption of multiple regression.
- A
- 18
How can multicollinearity be detected?
- A
By performing a t-test on coefficients
- B
By plotting the residuals against fitted values
- C
By examining a Q-Q plot
- D
By calculating Variance Inflation Factor (VIF)
Correct answer
DBy calculating Variance Inflation Factor (VIF)
Explanation
VIF quantifies how much the variance of a coefficient is inflated due to multicollinearity. High VIF indicates multicollinearity.
- A
- 19
What is overfitting in regression?
- A
A model that achieves perfect R-squared on test data
- B
A model that has too few variables and underfits
- C
A model with high bias
- D
A model that fits the training data too closely and performs poorly on new data
Correct answer
DA model that fits the training data too closely and performs poorly on new data
Explanation
Overfitting occurs when a model is too complex and captures noise, failing to generalize to unseen data.
- A
- 20
How does adjusted R-squared differ from R-squared?
- A
Adjusted R-squared measures the same thing but for logistic regression
- B
Adjusted R-squared is the square root of R-squared
- C
Adjusted R-squared penalizes the inclusion of unnecessary variables
- D
Adjusted R-squared is always higher than R-squared
Correct answer
CAdjusted R-squared penalizes the inclusion of unnecessary variables
Explanation
Adjusted R-squared accounts for the number of predictors and only increases if a new variable improves the model beyond chance.
- A
- 21
In forward selection for variable selection, how does the process start?
- A
By selecting variables randomly
- B
With no independent variables, then adding variables one by one
- C
With all possible variables, then removing them one by one
- D
By including all interaction terms first
Correct answer
BWith no independent variables, then adding variables one by one
Explanation
Forward selection begins with a null model (no predictors) and adds variables that contribute the most explanatory power.
- A
- 22
What is the bias-variance tradeoff?
- A
The tradeoff between bias in data collection and variance in estimates
- B
Balancing model simplicity (bias) and flexibility (variance) to minimize total error
- C
The tradeoff between Type I and Type II errors
- D
The tradeoff between linear and logistic regression
Correct answer
BBalancing model simplicity (bias) and flexibility (variance) to minimize total error
Explanation
High bias underfits; high variance overfits. The tradeoff is to find a model that balances both to minimize overall error.
- A
- 23
What is the purpose of regularization in regression?
- A
To increase the number of variables in the model
- B
To shrink coefficient estimates and reduce overfitting by adding bias
- C
To transform categorical variables into continuous ones
- D
To ensure the linearity assumption is met
Correct answer
BTo shrink coefficient estimates and reduce overfitting by adding bias
Explanation
Regularization adds bias to reduce variance, shrinking coefficients toward zero to prevent overfitting.
- A
- 24
Which regularization technique can completely remove variables from the model?
- A
Ridge regression
- B
Elastic-net regression
- C
Lasso regression
- D
OLS regression
Correct answer
CLasso regression
Explanation
Lasso regression can shrink coefficients to exactly zero, effectively removing variables from the model.
- A
- 25
What does the chi-squared goodness-of-fit test determine?
- A
Whether a continuous variable is normally distributed
- B
Whether an observed categorical variable follows an expected distribution
- C
Whether the means of three or more groups are equal
- D
Whether two categorical variables are independent
Correct answer
BWhether an observed categorical variable follows an expected distribution
Explanation
The goodness-of-fit test compares observed frequencies to expected frequencies from a theoretical distribution.
- A
- 26
What is the null hypothesis in a chi-squared test of independence?
- A
The two categorical variables are associated
- B
The observed distribution matches the expected distribution
- C
The means of the groups are equal
- D
The two categorical variables are independent
Correct answer
DThe two categorical variables are independent
Explanation
For the test of independence, the null hypothesis states that the variables are independent (no association).
- A
- 27
What is a one-way ANOVA used for?
- A
Comparing the means of two groups
- B
Comparing the means of a continuous variable across three or more groups
- C
Testing association between two categorical variables
- D
Modeling a binary outcome variable
Correct answer
BComparing the means of a continuous variable across three or more groups
Explanation
One-way ANOVA tests whether the means of a continuous dependent variable differ across three or more groups defined by a categorical independent variable.
- A
- 28
What is the purpose of a post hoc test like Tukey's HSD after ANOVA?
- A
To calculate the R-squared of the ANOVA model
- B
To determine which specific groups have significantly different means
- C
To check the normality assumption
- D
To test for homoscedasticity
Correct answer
BTo determine which specific groups have significantly different means
Explanation
Post hoc tests perform pairwise comparisons while controlling for multiple testing error, identifying which groups differ.
- A
- 29
What does ANCOVA allow that standard ANOVA does not?
- A
Comparing more than three groups
- B
Controlling for the effects of covariates (continuous variables)
- C
Using categorical dependent variables
- D
Testing interaction effects
Correct answer
BControlling for the effects of covariates (continuous variables)
Explanation
ANCOVA extends ANOVA by including covariates to control for their influence, isolating the effect of the categorical variable.
- A
- 30
In binomial logistic regression, what does the logit function represent?
- A
The natural logarithm of the odds of the event occurring
- B
The odds ratio
- C
The probability of the event occurring
- D
The maximum likelihood estimate
Correct answer
AThe natural logarithm of the odds of the event occurring
Explanation
The logit is the log-odds: ln(1−pp), and it is modeled as a linear function of the predictors.
- A
- 31
What method is commonly used to estimate parameters in logistic regression?
- A
Ordinary least squares (OLS)
- B
K-nearest neighbors (KNN)
- C
Maximum likelihood estimation (MLE)
- D
Principal component analysis (PCA)
Correct answer
CMaximum likelihood estimation (MLE)
Explanation
Logistic regression parameters are estimated by maximizing the likelihood of observing the data (MLE).
- A
- 32
Which assumption of logistic regression states that there should be a linear relationship between each predictor and the logit of the outcome?
- A
Homoscedasticity assumption
- B
Normality of residuals assumption
- C
Linearity of the logit assumption
- D
Independence of observations assumption
Correct answer
CLinearity of the logit assumption
Explanation
Logistic regression requires a linear relationship between each continuous predictor and the logit of the probability of the outcome.
- A
- 33
What does a confusion matrix display?
- A
The distribution of predicted probabilities
- B
The ROC curve
- C
The counts of true positives, true negatives, false positives, and false negatives
- D
The coefficients of the model
Correct answer
CThe counts of true positives, true negatives, false positives, and false negatives
Explanation
A confusion matrix summarizes the performance of a classification model by showing correct and incorrect predictions.
- A
- 34
In the context of classification, what does precision measure?
- A
The area under the ROC curve
- B
Among positive predictions, the proportion that were correct
- C
Among actual positives, the proportion that were correctly identified
- D
The overall proportion of correct predictions
Correct answer
BAmong positive predictions, the proportion that were correct
Explanation
Precision = True Positives / (True Positives + False Positives), indicating the accuracy of positive predictions.
- A
- 35
What does recall measure?
- A
The proportion of correct negative predictions
- B
The proportion of actual positives that were correctly identified
- C
The F1 score
- D
The proportion of positive predictions that were correct
Correct answer
BThe proportion of actual positives that were correctly identified
Explanation
Recall = True Positives / (True Positives + False Negatives), measuring the model's ability to find all positive instances.
- A
- 36
How should a logistic regression coefficient be interpreted after exponentiating?
- A
As the change in log-odds
- B
As the multiplicative change in odds for a one-unit increase in the predictor
- C
As the change in R-squared
- D
As the additive change in probability
Correct answer
BAs the multiplicative change in odds for a one-unit increase in the predictor
Explanation
Exponentiating the coefficient gives the odds ratio: a one-unit increase multiplies the odds by eβ.
- A

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