Linear Regression
- 18Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary goal of regression analysis?
What is the primary goal of regression analysis?
18 questions
- 1
What is the primary goal of regression analysis?
- A
To test whether two variables are independent
- B
To predict one variable based on another variable
- C
To estimate the population mean of a variable
- D
To determine the causal relationship between variables
Correct answer
BTo predict one variable based on another variable
Explanation
Regression aims to predict an outcome variable (y) using one or more explanatory variables (x). This is explicitly stated as the goal of regression in the lecture.
- A
- 2
In regression, the variable y is often called the:
- A
Independent variable
- B
Explanatory variable
- C
Predictor
- D
Explained variable
Correct answer
DExplained variable
Explanation
y is referred to as the explained variable, while x is the explanatory variable. This is standard terminology in regression.
- A
- 3
In simple linear regression, the model is written as:
- A
Y=aX+b+ε
- B
Y=a+bε+X
- C
Y=a+bX
- D
Y=a+bX+ε
Correct answer
DY=a+bX+ε
Explanation
The standard simple linear regression model includes an intercept a, slope b, and an error term varepsilon to account for noise or unmodeled factors.
- A
- 4
What does the error term varepsilon in a regression model represent?
- A
The deviation of the true relationship from linearity
- B
Everything not captured by the linear relationship, including measurement error and unobserved factors
- C
The random component that makes the relationship exact
- D
The variance of the explanatory variable
Correct answer
BEverything not captured by the linear relationship, including measurement error and unobserved factors
Explanation
The error term accounts for all sources of variation in y that are not explained by the linear function of x, such as measurement error, omitted variables, or inherent randomness.
- A
- 5
Which of the following correctly describes the difference between univariate and multivariate regression?
- A
Univariate regression has one explanatory variable; multivariate regression has two or more explanatory variables
- B
Univariate regression has one response variable; multivariate regression has multiple response variables
- C
Univariate regression uses least squares; multivariate regression uses maximum likelihood
- D
Univariate regression assumes a linear relationship; multivariate regression allows non-linear relationships
Correct answer
AUnivariate regression has one explanatory variable; multivariate regression has two or more explanatory variables
Explanation
Univariate regression involves a single predictor (x in mathbbR), while multivariate regression involves multiple predictors (x in mathbbRp with pgeq2).
- A
- 6
In the population framework for simple linear regression, the intercept and slope are derived by minimizing:
- A
E[Y−a−bX]
- B
E[∣Y−a−bX∣]
- C
E[(Y−a−bX)2]
- D
n1∑i=1n(Yi−a−bXi)2
Correct answer
CE[(Y−a−bX)2]
Explanation
The population parameters a and b minimize the expected squared error E[(Y−a−bX)2], which is a measure of average squared deviation from the line.
- A
- 7
What condition is necessary for the variance of X to be non-zero when deriving the least squares slope?
- A
To avoid division by zero in the formula b=Var(X)Cov(X,Y)
- B
To guarantee that the errors have mean zero
- C
To ensure the intercept a is identifiable
- D
To make the covariance between X and Y positive
Correct answer
ATo avoid division by zero in the formula b=Var(X)Cov(X,Y)
Explanation
The formula b=Cov(X,Y)/Var(X) requires Var(X)=0; if all X values are the same, the slope cannot be estimated.
- A
- 8
In simple linear regression, the slope b can be expressed in terms of expectations as:
- A
b=Var(X)E[Y]−E[X]
- B
b=Var(Y)Cov(X,Y)
- C
b=E[X2]−(E[X])2E[XY]−E[X]E[Y]
- D
b=E[X]E[Y]−a
Correct answer
Cb=E[X2]−(E[X])2E[XY]−E[X]E[Y]
Explanation
The slope b equals the covariance of X and Y divided by the variance of X, which simplifies to the given expression.
- A
- 9
What are the two key assumptions about the error term varepsilon needed for the least squares estimators to be unbiased?
- A
ε has constant variance and is uncorrelated across observations
- B
mathbbE[ε]=0 and Var(ε)=σ2
- C
mathbbE[ε]=0 and Cov(X,ε)=0
- D
ε is normally distributed and independent of X
Correct answer
CmathbbE[ε]=0 and Cov(X,ε)=0
Explanation
The derivation of the least squares estimators in the population leads to mathbbE[ε]=0 and extCov(X,ε)=0, which ensure that the parameters a and b satisfy the normal equations.
- A
- 10
If X and ε are independent, which of the following automatically holds?
- A
Neither mathbbE[ε]=0 nor extCov(X,ε)=0
- B
mathbbE[ε]=0
- C
Both mathbbE[ε]=0 and extCov(X,ε)=0
- D
extCov(X,ε)=0
Correct answer
DextCov(X,ε)=0
Explanation
Independence implies zero covariance, but does not guarantee that the mean of varepsilon is zero; however, we typically also assume mathbbE[ε]=0 separately.
- A
- 11
The least squares estimate hatb is obtained by:
- A
Solving Cov(X,Y)=0
- B
Minimizing sumi=1n(Yi−a−bXi)2 and then setting derivatives to zero
- C
Minimizing mathbbE[(Y−a−bX)2] and replacing expectations with sample averages
- D
Both (a) and (b) yield the same result
Correct answer
DBoth (a) and (b) yield the same result
Explanation
The sample least squares estimator can be found either by minimizing the sum of squared residuals or by replacing population expectations in the formula with sample averages; both approaches give identical results.
- A
- 12
In the sample least squares method, the intercept estimate hata is given by:
- A
hata=Yˉ−b^Xˉ
- B
hata=Yˉ/Xˉ
- C
hata=Yˉ+b^Xˉ
- D
hata=Yˉ−Xˉ
Correct answer
Ahata=Yˉ−b^Xˉ
Explanation
The least squares line passes through the sample means (ar{X}, ar{Y}), so hat{a} = ar{Y} - hat{b}ar{X}.
- A
- 13
What is the main advantage of using squared errors in least squares regression over using absolute errors?
- A
The solution has a closed form (explicit formula)
- B
Absolute errors require more computation
- C
Squared errors are always positive
- D
Squared errors are more robust to outliers
Correct answer
AThe solution has a closed form (explicit formula)
Explanation
The least squares criterion leads to a quadratic optimization problem that has a closed-form solution (normal equations), unlike absolute errors which typically require numerical optimization.
- A
- 14
In the multivariate linear regression model Y=Xβ+ε, the design matrix X includes:
- A
Only the response variable
- B
A column of ones for the intercept, followed by the predictor variables
- C
The errors for each observation
- D
Only the predictor variables without an intercept
Correct answer
BA column of ones for the intercept, followed by the predictor variables
Explanation
To include an intercept, a column of ones is added to the design matrix X; the corresponding coefficient is the intercept.
- A
- 15
The least squares estimator for eta in matrix form is:
- A
β^=XT(XXT)−1Y
- B
β^=(XTX)−1XTY
- C
β^=(YTY)−1XTY
- D
β^=(XTY)−1XTX
Correct answer
Bβ^=(XTX)−1XTY
Explanation
Minimizing ∥Y−Xβ∥2 yields the normal equations XTXβ^=XTY, and when XTX is invertible, β^=(XTX)−1XTY.
- A
- 16
Why is matrix notation particularly useful in multivariate regression?
- A
It reduces the number of assumptions needed
- B
It allows us to visualize the data in higher dimensions
- C
It automatically ensures the errors are normally distributed
- D
It provides a compact way to derive and express the estimator for many parameters
Correct answer
DIt provides a compact way to derive and express the estimator for many parameters
Explanation
Matrix notation simplifies the derivation and expression of the least squares estimator when there are multiple predictors, avoiding lengthy coordinate-by-coordinate calculations.
- A
- 17
In multivariate regression, the assumption that the covariance between each predictor and the error is zero implies:
- A
Each predictor is uncorrelated with the error term
- B
The error term has zero mean
- C
The predictors are uncorrelated with each other
- D
The error term is normally distributed
Correct answer
AEach predictor is uncorrelated with the error term
Explanation
The condition Cov(Xj,ε)=0 for each predictor Xj ensures that the error is uncorrelated with every predictor, which is necessary for consistent estimation.
- A
- 18
In the simple linear regression model, the slope b measures:
- A
The expected change in Y when X changes by one unit
- B
The intercept of the regression line
- C
The correlation between X and Y
- D
The proportion of variance in Y explained by X
Correct answer
AThe expected change in Y when X changes by one unit
Explanation
The slope represents the average change in the response Y for a one-unit increase in the predictor X.
- A

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