1. Home
  2. Explore
  3. Statistics
  4. Regression Analysis

Study methods

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

Regression Analysis

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

What is regression analysis and what are its main goals?

Tap to flipClick to flipspace

Regression analysis studies relationships between variables. Its goals include prediction, causal inference, functional approximation, and uncovering/validating functional relationships.

Or swipe the card

25 cards

  1. What is regression analysis and what are its main goals?

    Regression analysis studies relationships between variables. Its goals include prediction, causal inference, functional approximation, and uncovering/validating functional relationships.

  2. What is the general form of a linear regression model for a single observation?

    yi=β1xi,1+β2xi,2+⋯+βpxi,p+εiy_i = \beta_1 x_{i,1} + \beta_2 x_{i,2} + \dots + \beta_p x_{i,p} + \varepsilon_iyi​=β1​xi,1​+β2​xi,2​+⋯+βp​xi,p​+εi​

  3. What are the Gauss-Markov assumptions for linear regression residuals?

    1. Zero mean: E[εi]=0\mathbb{E}[\varepsilon_i] = 0E[εi​]=0 for all iii. 2. Constant variance: Var(εi)=σ2\text{Var}(\varepsilon_i) = \sigma^2Var(εi​)=σ2 for all iii. 3. Uncorrelated: Cov(εi,εj)=0\text{Cov}(\varepsilon_i, \varepsilon_j) = 0Cov(εi​,εj​)=0 for i≠ji \neq ji=j.
  4. What are the four main steps for fitting a regression model?

    1. Propose a model (specify response variable, explanatory variables, distribution of residuals). 2. Define a criterion for judging estimators. 3. Characterize and apply the best estimator. 4. Check assumptions; if needed, modify model and repeat.
  5. What is the ordinary least squares (OLS) criterion?

    Minimize Q(β)=∑i=1n(yi−xiTβ)2=(y−Xβ)T(y−Xβ)Q(\beta) = \sum_{i=1}^n (y_i - \mathbf{x}_i^T \beta)^2 = (\mathbf{y} - \mathbf{X}\beta)^T (\mathbf{y} - \mathbf{X}\beta)Q(β)=∑i=1n​(yi​−xiT​β)2=(y−Xβ)T(y−Xβ).

  6. What are the normal equations in OLS?

    XT(y−Xβ)=0\mathbf{X}^T (\mathbf{y} - \mathbf{X}\beta) = \mathbf{0}XT(y−Xβ)=0.

  7. What is the OLS estimator for β\betaβ in matrix form?

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

  8. What condition must X\mathbf{X}X satisfy for XTX\mathbf{X}^T \mathbf{X}XTX to be invertible?

    X\mathbf{X}X must have full column rank (i.e., columns are linearly independent).

  9. What is the hat matrix H\mathbf{H}H in linear regression and what is its role?

    H=X(XTX)−1XT\mathbf{H} = \mathbf{X}(\mathbf{X}^T \mathbf{X})^{-1} \mathbf{X}^TH=X(XTX)−1XT. It projects y\mathbf{y}y onto the column space of X\mathbf{X}X, giving fitted values y^=Hy\hat{\mathbf{y}} = \mathbf{H} \mathbf{y}y^​=Hy.

  10. What does the normal equation XTε^=0\mathbf{X}^T \hat{\boldsymbol{\varepsilon}} = \mathbf{0}XTε^=0 imply about residuals and explanatory variables?

    The residual vector ε^\hat{\boldsymbol{\varepsilon}}ε^ is orthogonal to every column of X\mathbf{X}X.

  11. State the Gauss-Markov theorem.

    Under Gauss-Markov assumptions (zero mean, constant variance, uncorrelated errors), the OLS estimator β^\hat{\beta}β^​ is the best linear unbiased estimator (BLUE) of β\betaβ. That is, among all linear unbiased estimators, OLS has the smallest variance.

  12. What is required for an estimator to be BLUE under the Gauss-Markov theorem?

    The estimator must be linear in y\mathbf{y}y, unbiased, and have the smallest variance among all such estimators.

  13. How does generalized least squares (GLS) handle non-constant variance or correlated errors?

    When Cov(ε)=σ2Σ\text{Cov}(\boldsymbol{\varepsilon}) = \sigma^2 \boldsymbol{\Sigma}Cov(ε)=σ2Σ with known Σ\boldsymbol{\Sigma}Σ, transform data: y∗=Σ−1/2y\mathbf{y}^* = \boldsymbol{\Sigma}^{-1/2} \mathbf{y}y∗=Σ−1/2y, X∗=Σ−1/2X\mathbf{X}^* = \boldsymbol{\Sigma}^{-1/2} \mathbf{X}X∗=Σ−1/2X. Then apply OLS to the transformed model.

  14. What is the GLS estimator for β\betaβ?

    β^GLS=(XTΣ−1X)−1XTΣ−1y\hat{\beta}_{\text{GLS}} = (\mathbf{X}^T \boldsymbol{\Sigma}^{-1} \mathbf{X})^{-1} \mathbf{X}^T \boldsymbol{\Sigma}^{-1} \mathbf{y}β^​GLS​=(XTΣ−1X)−1XTΣ−1y.

  15. Under the normal linear regression model, what is the distribution of y\mathbf{y}y conditional on X\mathbf{X}X?

    y∼N(Xβ,σ2In)\mathbf{y} \sim N(\mathbf{X}\beta, \sigma^2 \mathbf{I}_n)y∼N(Xβ,σ2In​).

  16. What is the distribution of the OLS estimator β^\hat{\beta}β^​ under normality?

    β^∼N(β,σ2(XTX)−1)\hat{\beta} \sim N(\beta, \sigma^2 (\mathbf{X}^T \mathbf{X})^{-1})β^​∼N(β,σ2(XTX)−1).

  17. How can the normality of β^\hat{\beta}β^​ be derived using moment generating functions?

    The MGF of β^\hat{\beta}β^​ is Mβ^(τ)=exp⁡(τTβ+12τTσ2(XTX)−1τ)M_{\hat{\beta}}(\tau) = \exp(\tau^T \beta + \frac{1}{2} \tau^T \sigma^2 (\mathbf{X}^T \mathbf{X})^{-1} \tau)Mβ^​​(τ)=exp(τTβ+21​τTσ2(XTX)−1τ), which is the MGF of a multivariate normal.

  18. In normal linear regression, what is the distribution of the residual sum of squares (SSE)?

    SSE=ε^Tε^∼σ2χn−p2\text{SSE} = \hat{\boldsymbol{\varepsilon}}^T \hat{\boldsymbol{\varepsilon}} \sim \sigma^2 \chi^2_{n-p}SSE=ε^Tε^∼σ2χn−p2​.

  19. Are β^\hat{\beta}β^​ and ε^\hat{\boldsymbol{\varepsilon}}ε^ independent in normal linear regression?

    Yes, β^\hat{\beta}β^​ and ε^\hat{\boldsymbol{\varepsilon}}ε^ are independent.

  20. What is the distribution of the ttt-statistic for a single coefficient βj\beta_jβj​?

    tj=β^j−βjs.e.(β^j)∼tn−pt_j = \frac{\hat{\beta}_j - \beta_j}{s.e.(\hat{\beta}_j)} \sim t_{n-p}tj​=s.e.(β^​j​)β^​j​−βj​​∼tn−p​, where s.e.(β^j)=σ^(XTX)jj−1s.e.(\hat{\beta}_j) = \hat{\sigma} \sqrt{(\mathbf{X}^T \mathbf{X})^{-1}_{jj}}s.e.(β^​j​)=σ^(XTX)jj−1​​ and σ^2=SSE/(n−p)\hat{\sigma}^2 = \text{SSE}/(n-p)σ^2=SSE/(n−p).

  21. What is the QR decomposition of a matrix X\mathbf{X}X (n×pn \times pn×p)?

    X=QR\mathbf{X} = \mathbf{Q} \mathbf{R}X=QR, where Q\mathbf{Q}Q is n×pn \times pn×p with orthonormal columns (QTQ=Ip\mathbf{Q}^T \mathbf{Q} = \mathbf{I}_pQTQ=Ip​), and R\mathbf{R}R is p×pp \times pp×p upper triangular.

  22. How is the OLS estimator expressed using the QR decomposition?

    β^=R−1QTy\hat{\beta} = \mathbf{R}^{-1} \mathbf{Q}^T \mathbf{y}β^​=R−1QTy.

  23. What is the hat matrix in terms of the QR decomposition?

    H=QQT\mathbf{H} = \mathbf{Q} \mathbf{Q}^TH=QQT.

  24. Under normality, what is the maximum likelihood estimator (MLE) of β\betaβ?

    The MLE of β\betaβ is identical to the OLS estimator β^\hat{\beta}β^​.

  25. What is the likelihood function for a normal linear regression model?

    L(β,σ2)=∏i=1n12πσ2exp⁡(−(yi−xiTβ)22σ2)L(\beta, \sigma^2) = \prod_{i=1}^n \frac{1}{\sqrt{2\pi\sigma^2}} \exp\left(-\frac{(y_i - \mathbf{x}_i^T \beta)^2}{2\sigma^2}\right)L(β,σ2)=∏i=1n​2πσ2​1​exp(−2σ2(yi​−xiT​β)2​).

Card 1 of 25
Card 1 of 25

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent