Linear Regression via Least Squares - Linear Algebra
12 cards. Flip a card to check yourself, or study the whole deck card by card.
Card 1 of 12
Study these flashcards All 12 cards in this deck
- Which point does a least-squares line y=β0+β1x (with intercept) always pass through?
- (xˉ,yˉ), the point of means of the data.
- With design matrix X and observations y, what system gives the regression coefficients β?
- XTXβ=XTy.
- What is the sum of the residuals for a least-squares line that includes an intercept?
- 0. The residual vector is orthogonal to the column of ones in the design matrix.
- Why can y=β0+β1sinx be fit by linear least squares?
- The model is linear in the parameters β0,β1; the design matrix rows are [1,sinxi].
- In linear regression, what is the residual of data point i?
- The observed value minus the predicted value: yi−(β0+β1xi).
- For the model y=β0+β1x+β2x2, what is row i of the design matrix?
- [1,xi,xi2].
- Fit y=βx (no intercept) to (1,2) and (2,3) by least squares. What is β?
- 58. With one column, β=∑xi2∑xiyi=1+42+6.
- Which quantity does the least-squares regression line minimize?
- The sum of the squared residuals, ∑i(yi−β0−β1xi)2.
- For fitting y=β0+β1x to data (xi,yi), what is row i of the design matrix?
- [1,xi]. The 1 multiplies the intercept β0.
- What is the fitted intercept when y=β0+β1x is fit to (−1,0), (0,1), (1,5)?
- β0=2. Since xˉ=0, the line passes through (0,yˉ), and yˉ=2.
- What least-squares line fits (1,2), (2,4), (3,6)?
- y=2x. The points lie exactly on this line, so every residual is 0.
- What is the design matrix for fitting y=β0+β1x to (0,1), (1,3), (2,4)?
- [[1,0],[1,1],[1,2]], with observation vector (1,3,4).