1. Home
  2. Explore
  3. Mathematics
  4. Linear Regression

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Linear Regression

  • 22Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Regression Fundamentals
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is the goal of regression?

Tap to flipClick to flipspace

To predict one variable (response) based on another variable (explanatory).

Or swipe the card

22 cards

  1. What is the goal of regression?

    To predict one variable (response) based on another variable (explanatory).

  2. What are the common names for the variables in regression?

    yyy is the explained variable (dependent/response), xxx is the explanatory variable (independent/predictor).

  3. What is the typical form of data in regression?

    A set of pairs (xi,yi)(x_i, y_i)(xi​,yi​) for i=1,…,ni=1,\dots,ni=1,…,n, where each pair is an observation.

  4. In the model y=a+bx+ϵy = a + bx + \epsilony=a+bx+ϵ, what does ϵ\epsilonϵ represent?

    The noise or error term, accounting for everything not explained by the linear relationship.

  5. What is the difference between univariate and multivariate regression?

    Univariate regression has a single real-valued explanatory variable (x∈Rx \in \mathbb{R}x∈R); multivariate has multiple (x∈Rpx \in \mathbb{R}^px∈Rp with p≥2p \geq 2p≥2).

  6. How is the intercept included in multivariate regression?

    By adding a covariate that is always 1 (a column of ones in the design matrix).

  7. Write the multivariate linear model in vector form.

    y=xTβ+ϵy = x^T \beta + \epsilony=xTβ+ϵ, where x∈Rpx \in \mathbb{R}^px∈Rp and β∈Rp\beta \in \mathbb{R}^pβ∈Rp.

  8. What are the two key assumptions about ϵ\epsilonϵ in the linear model?

    E[ϵ]=0\mathbb{E}[\epsilon] = 0E[ϵ]=0 and Cov(X,ϵ)=0\text{Cov}(X,\epsilon) = 0Cov(X,ϵ)=0.

  9. How can the assumption Cov(X,ϵ)=0\text{Cov}(X,\epsilon)=0Cov(X,ϵ)=0 be strengthened?

    By assuming XXX and ϵ\epsilonϵ are independent, or that E[ϵ∣X]=0\mathbb{E}[\epsilon|X]=0E[ϵ∣X]=0.

  10. What is the least squares criterion in regression?

    Minimize R(a,b)=E[(Y−a−bX)2]R(a,b) = \mathbb{E}[(Y - a - bX)^2]R(a,b)=E[(Y−a−bX)2] (population) or ∑i=1n(yi−a−bxi)2\sum_{i=1}^n (y_i - a - b x_i)^2∑i=1n​(yi​−a−bxi​)2 (sample).

  11. Why is the vertical distance used in least squares?

    It leads to a simple closed-form solution and is mathematically convenient.

  12. Derive the formula for the slope bbb in simple linear regression.

    b=Cov(X,Y)Var(X)b = \frac{\text{Cov}(X,Y)}{\text{Var}(X)}b=Var(X)Cov(X,Y)​.

  13. Derive the formula for the intercept aaa in simple linear regression.

    a=E[Y]−bE[X]a = \mathbb{E}[Y] - b \mathbb{E}[X]a=E[Y]−bE[X].

  14. Why must Var(X)≠0\text{Var}(X) \neq 0Var(X)=0 for the least squares estimator to exist?

    Because the formula for bbb involves division by Var(X)\text{Var}(X)Var(X); if zero, all xix_ixi​ are identical and no slope can be determined.

  15. What is an alternative to least squares for measuring fit?

    Mean absolute deviation: minimize ∑i=1n∣yi−a−bxi∣\sum_{i=1}^n |y_i - a - b x_i|∑i=1n​∣yi​−a−bxi​∣.

  16. What is the least squares estimator for bbb in simple linear regression?

    b^=∑i=1n(xi−xˉ)(yi−yˉ)∑i=1n(xi−xˉ)2\hat{b} = \frac{\sum_{i=1}^n (x_i - \bar{x})(y_i - \bar{y})}{\sum_{i=1}^n (x_i - \bar{x})^2}b^=∑i=1n​(xi​−xˉ)2∑i=1n​(xi​−xˉ)(yi​−yˉ​)​.

  17. What is the least squares estimator for aaa in simple linear regression?

    a^=yˉ−b^xˉ\hat{a} = \bar{y} - \hat{b} \bar{x}a^=yˉ​−b^xˉ.

  18. What is the matrix formulation of the linear regression model?

    y=Xβ+ϵy = X\beta + \epsilony=Xβ+ϵ, where yyy is n×1n \times 1n×1, XXX is n×pn \times pn×p, β\betaβ is p×1p \times 1p×1, ϵ\epsilonϵ is n×1n \times 1n×1.

  19. What is the least squares criterion in matrix notation?

    Minimize ∥y−Xβ∥2=(y−Xβ)T(y−Xβ)\| y - X\beta \|^2 = (y - X\beta)^T (y - X\beta)∥y−Xβ∥2=(y−Xβ)T(y−Xβ).

  20. What are the normal equations for multivariate regression?

    XTXβ=XTyX^T X \beta = X^T yXTXβ=XTy.

  21. How is the least squares estimator β^\hat{\beta}β^​ computed in multivariate regression?

    β^=(XTX)−1XTy\hat{\beta} = (X^T X)^{-1} X^T yβ^​=(XTX)−1XTy, assuming XTXX^T XXTX is invertible.

  22. What is the design matrix in regression?

    A matrix XXX with nnn rows (observations) and ppp columns (covariates), often with first column of ones for intercept.

Card 1 of 22
Card 1 of 22

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent