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

Speaker 1Speaker 2

Regression Analysis

4:59
0:00-4:59
  1. Simon

    Today we're diving into regression analysis — one of the most powerful tools in statistical modeling. At its core, it's about understanding how a dependent variable, say stock returns, relates to one or more explanatory variables, like market indicators or firm characteristics.

  2. Maria

    Right, and it's used everywhere in finance: predicting prices, testing what factors actually drive returns, or even approximating complex functions. But to really get it, we need to start with the foundational model: linear regression.

  3. Simon

    Exactly. The linear model assumes that for each observation i, the response y_i is a linear combination of the explanatory variables plus an error term epsilon_i. So y_i equals beta_1 x_i1 plus beta_2 x_i2, up to beta_p x_ip, plus epsilon_i. The betas are the regression parameters we want to estimate.

  4. Maria

    And those epsilons capture everything the model doesn't explain — measurement error, omitted factors, or just randomness. So the first step in regression is to propose a model: pick a response variable and a set of explanatory variables. But choosing the right scale matters — for financial data, modeling log returns instead of prices often makes sense because changes become percentage changes.

  5. Simon

    That's a great point. Once we have a model, we need a criterion to estimate the betas. The most basic is ordinary least squares, or OLS. It minimizes the sum of squared residuals: the differences between the actual y_i and the fitted values from the model.

  6. Maria

    And we can solve that using matrix algebra. If we stack all the y's into a vector Y and all the x's into a matrix X, then the OLS estimator beta-hat equals (X^T X)^{-1} X^T Y. That formula assumes X^T X is invertible, which requires that the columns of X are linearly independent — no explanatory variable is a perfect linear combination of the others.

  7. Simon

    Right. If they are dependent, you have reduced rank, and the betas aren't uniquely estimated. But even then, predictions might still be fine. Now, the fitted values are X times beta-hat, and that can be written as H Y, where H is the hat matrix. H projects Y onto the column space of X, and the residuals are orthogonal to that space.

  8. Maria

    So far, that's just geometry. But to bring in statistics, we need assumptions about the errors. The Gauss-Markov theorem makes very weak ones: the errors have mean zero, constant variance sigma-squared, and are uncorrelated. Under these, the OLS estimator is the best linear unbiased estimator — BLUE — meaning it has the smallest variance among all linear unbiased estimators.

  9. Simon

    That's a powerful result. It says that if you want an unbiased estimate that's linear in Y, you can't do better than OLS. The proof involves showing that any other linear estimator has variance at least as large, because the difference between it and the OLS estimator is uncorrelated with the OLS estimator.

  10. Maria

    But what if the Gauss-Markov assumptions don't hold? For instance, if the errors have unequal variances or are correlated? We can still handle that with generalized least squares. We transform Y and X using a known covariance matrix to get a new model that satisfies the classic assumptions, then apply OLS to the transformed data.

  11. Simon

    And that's where the distribution theory comes in. If we further assume the errors are normally distributed, then we know the exact distribution of beta-hat: it's multivariate normal with mean beta and covariance sigma^2 (X^T X)^{-1}. That lets us do hypothesis tests, like checking if a particular beta is zero.

  12. Maria

    Right. For example, the t-statistic for beta_j is (beta-hat_j - beta_j) divided by its estimated standard error, and under the null it follows a t distribution with n-p degrees of freedom. That's how we assess significance of predictors.

  13. Simon

    And there's a neat computational trick: the QR decomposition of X. If we write X = Q R, where Q is orthonormal and R is upper triangular, then beta-hat = R^{-1} Q^T Y. That avoids explicitly inverting X^T X and is numerically more stable.

  14. Maria

    Finally, under normality, OLS is also the maximum likelihood estimator — it maximizes the likelihood function, which is the joint density of the data given the parameters. That's a nice consistency: least squares and maximum likelihood coincide for normal errors.

  15. Simon

    And that's just the start. There are extensions like robust estimation, Bayesian regression, and handling missing data. But the core ideas — specifying a model, estimating via least squares or generalized least squares, checking residuals, and using distribution theory — are the foundation for all of them.

  16. Maria

    So to recap: we set up a linear model, use OLS to estimate the betas, lean on the Gauss-Markov theorem for optimality under basic assumptions, and when errors are normal we get exact distributions for inference. The whole framework is incredibly versatile.

  17. Simon

    Absolutely. And understanding these foundations makes you a better modeler in any field that uses statistics. Next time, we'll look at how to check assumptions and diagnose influential points.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent