KatInterview

Probability and Regression Fundamentals: A Rapid-Fire Review

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsprobabilityolsregularization

Last updated

A multi-part conceptual review covering dice probabilities, variance estimation, correlation versus independence, OLS and regularization, multicollinearity, and PCA.

Answer each of the following short theory questions. Equations and brief examples are welcome. Be precise: state conditions and mention standard counterexamples where they exist.

Part A: Probability

  1. Two fair six-sided dice are rolled.
    • What is the probability that the two values differ, so that one die is strictly larger than the other?
    • What is the probability that one particular die (say, the first) shows a strictly larger value than the other?

Part B: Descriptive statistics

  1. Define the mean and the variance of a random variable.
  2. Is the common "divide by n" sample variance biased? If so, what adjustment makes it unbiased?

Part C: Correlation and independence

  1. Suppose X and Y each have a normal marginal distribution and Corr(X, Y) = 0. Must they be independent? Under what condition does zero correlation guarantee independence?

Part D: Linear regression

  1. Describe linear regression and list the standard assumptions behind Ordinary Least Squares (OLS).
  2. Give the closed-form OLS estimator.
  3. Why does multicollinearity cause trouble? How do you detect it, and how can you reduce it?
  4. Explain Ridge and Lasso regression, and how each relates to collinearity.

Part E: Principal Component Analysis

  1. Explain what PCA does and how it works.
  2. In the PCA setting, what do eigenvalues and eigenvectors represent?
  3. What are the main limitations of PCA?

Hints

Hint 1

For the dice, count ordered outcomes out of 36 and remember that ties exist. Symmetry splits the non-tied outcomes evenly between the two dice.

Hint 2

For zero correlation versus independence, build a counterexample with Y = W·X where W is a random sign independent of X. Then recall what extra property of the joint distribution makes the implication true.

Hint 3

For regression, connect everything through the matrix XᵀX: collinearity makes it nearly singular, ridge adds λI to fix it, and PCA is an eigen-decomposition of a closely related matrix.