Linear Regression
- 22Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is the goal of regression?
To predict one variable (response) based on another variable (explanatory).
Or swipe the card
22 cards
What is the goal of regression?
To predict one variable (response) based on another variable (explanatory).
What are the common names for the variables in regression?
y is the explained variable (dependent/response), x is the explanatory variable (independent/predictor).
What is the typical form of data in regression?
A set of pairs (xi,yi) for i=1,…,n, where each pair is an observation.
In the model y=a+bx+ϵ, what does ϵ represent?
The noise or error term, accounting for everything not explained by the linear relationship.
What is the difference between univariate and multivariate regression?
Univariate regression has a single real-valued explanatory variable (x∈R); multivariate has multiple (x∈Rp with p≥2).
How is the intercept included in multivariate regression?
By adding a covariate that is always 1 (a column of ones in the design matrix).
Write the multivariate linear model in vector form.
y=xTβ+ϵ, where x∈Rp and β∈Rp.
What are the two key assumptions about ϵ in the linear model?
E[ϵ]=0 and Cov(X,ϵ)=0.
How can the assumption Cov(X,ϵ)=0 be strengthened?
By assuming X and ϵ are independent, or that E[ϵ∣X]=0.
What is the least squares criterion in regression?
Minimize R(a,b)=E[(Y−a−bX)2] (population) or ∑i=1n(yi−a−bxi)2 (sample).
Why is the vertical distance used in least squares?
It leads to a simple closed-form solution and is mathematically convenient.
Derive the formula for the slope b in simple linear regression.
b=Var(X)Cov(X,Y).
Derive the formula for the intercept a in simple linear regression.
a=E[Y]−bE[X].
Why must Var(X)=0 for the least squares estimator to exist?
Because the formula for b involves division by Var(X); if zero, all xi are identical and no slope can be determined.
What is an alternative to least squares for measuring fit?
Mean absolute deviation: minimize ∑i=1n∣yi−a−bxi∣.
What is the least squares estimator for b in simple linear regression?
b^=∑i=1n(xi−xˉ)2∑i=1n(xi−xˉ)(yi−yˉ).
What is the least squares estimator for a in simple linear regression?
a^=yˉ−b^xˉ.
What is the matrix formulation of the linear regression model?
y=Xβ+ϵ, where y is n×1, X is n×p, β is p×1, ϵ is n×1.
What is the least squares criterion in matrix notation?
Minimize ∥y−Xβ∥2=(y−Xβ)T(y−Xβ).
What are the normal equations for multivariate regression?
XTXβ=XTy.
How is the least squares estimator β^ computed in multivariate regression?
β^=(XTX)−1XTy, assuming XTX is invertible.
What is the design matrix in regression?
A matrix X with n rows (observations) and p columns (covariates), often with first column of ones for intercept.

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