Linear Regression — Interview Question Bank

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/33

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering fundamental concepts, mathematical formulations, diagnostic metrics, regularization techniques, and leakage scenarios from the Linear Regression Interview Question Bank.

Last updated 2:56 PM on 10/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

34 Terms

1
New cards

Linear Regression

A statistical model that represents a continuous target as a weighted sum of input features plus an error term (y=β0+β1x1+β2x2+⋯+βpxp+εy = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \dots + \beta_p x_p + \varepsilon), where "linear" strictly refers to being linear in the parameters (β\beta), not necessarily in the features.

2
New cards

Homoscedasticity

A key assumption of linear regression stating that the model error terms have a constant variance across all fitted values.

3
New cards

Exogeneity

The condition in linear regression where the error term has a conditional mean of zero given the predictors (E(ε∣X)=0E(\varepsilon | X) = 0), implying that features are measured without error and are uncorrelated with the error term.

4
New cards

Residual

The observed difference between the actual target value and the fitted model prediction (e=y−y^e = y - \hat{y}), serving as the sample estimate of the unobservable population error term (ε\varepsilon).

5
New cards

Ordinary Least Squares (OLS)

An estimation technique that determines regression parameters by minimizing the sum of squared residuals: min⁡β∑i=1n(yi−y^i)2\min_{\beta} \sum_{i=1}^n (y_i - \hat{y}_i)^2.

6
New cards

Normal Equation

The analytical closed-form solution to Ordinary Least Squares given by β^=(XTX)−1XTy\hat{\beta} = (X^T X)^{-1} X^T y, which fails when XTXX^T X is singular due to perfect multicollinearity or when features outnumber samples (p>np > n).

7
New cards

Gauss–Markov Theorem

A foundational theorem stating that under the conditions of linearity, exogeneity, homoscedasticity, and no autocorrelation, the OLS estimator is BLUE: the Best (minimum variance) Linear Unbiased Estimator.

8
New cards

Mean Absolute Error (MAE)

A regression evaluation metric reported in the same units as yy with low sensitivity to outliers, ideal when every unit of prediction error carries an equal cost.

9
New cards

Mean Squared Error (MSE)

A regression loss and evaluation metric expressed in y2y^2 units that is smooth and differentiable, disproportionately penalizing large errors.

10
New cards

Root Mean Squared Error (RMSE)

The square root of the Mean Squared Error, measured in the same units as yy, which penalizes large misses while providing an interpretable scale for stakeholders.

11
New cards

Coefficient of Determination (R2R^2)

The proportion of variance in the target variable explained by the model, calculated as 1−SSresSStot1 - \frac{SS_{\text{res}}}{SS_{\text{tot}}}, which can become negative on test data if the model performs worse than predicting the mean.

12
New cards

Adjusted R2R^2

A modified version of R2R^2 defined as Radj2=1−(1−R2)⋅n−1n−p−1R^2_{\text{adj}} = 1 - (1 - R^2) \cdot \frac{n - 1}{n - p - 1} that penalizes the inclusion of unnecessary predictor variables, increasing only if a new feature improves the model more than expected by chance.

13
New cards

Mean Absolute Percentage Error (MAPE)

A metric that expresses error as a percentage of actual values, which fails when actual target values are zero or near zero and penalizes over-forecasts and under-forecasts asymmetrically.

14
New cards

Multicollinearity

High correlation among predictor variables that inflates the variance of estimated coefficients, making them unstable, prone to sign-flipping, and difficult to interpret.

15
New cards

Variance Inflation Factor (VIF)

A diagnostic metric used to detect multicollinearity, calculated as VIF=11−Rj2\text{VIF} = \frac{1}{1 - R_j^2}, where Rj2R_j^2 is obtained by regressing feature jj on all remaining predictors; values above 55 or 1010 indicate concerning or severe collinearity.

16
New cards

Dummy Variable Trap

A state of perfect multicollinearity caused by including all kk dummy columns alongside an intercept term when one-hot encoding a categorical feature, resolved by dropping one category (k−1k - 1 dummies) as a reference.

17
New cards

Ridge Regression (L2L_2 Regularization)

A regularized regression method that adds an L2L_2 penalty (λ∑βj2\lambda \sum \beta_j^2) to the loss function, shrinking all coefficients smoothly toward zero without setting any exactly to zero, with closed-form solution β^ridge=(XTX+λI)−1XTy\hat{\beta}_{\text{ridge}} = (X^T X + \lambda I)^{-1} X^T y.

18
New cards

Lasso Regression (L1L_1 Regularization)

A regularized regression technique that applies an L1L_1 penalty (λ∑∣βj∣\lambda \sum |\beta_j|), driving some coefficients to exactly zero to produce sparse models and perform feature selection.

19
New cards

Elastic Net

A regularized regression approach that combines L1L_1 and L2L_2 penalties, producing a sparse model while preserving groups of strongly correlated features together.

20
New cards

Heteroscedasticity

A condition where the variance of regression errors varies across fitted values or predictors, visible as a funnel shape on a residuals-versus-fitted plot and formally detected using the Breusch–Pagan or White test.

21
New cards

Durbin–Watson Test

A statistical test for detecting autocorrelation among regression residuals, where a test statistic value near 22 indicates that residuals are independent.

22
New cards

Cook's Distance

A diagnostic measure that quantifies how much all fitted values or coefficients change when a specific observation is excluded, used to detect influential points.

23
New cards

Omitted Variable Bias

The bias introduced into coefficient estimates when a variable that affects the target yy and correlates with an included feature is left out of the regression specification.

24
New cards

Data Leakage

The unintended inclusion of information during training that would not be available at inference time, leading to overly optimistic evaluation metrics but failure on unseen production data.

25
New cards

Target Leakage

A specific type of data leakage in which a predictor feature is directly derived from or chronologically recorded after the occurrence of the target variable.

26
New cards

Train–Test Contamination

Data leakage caused when information from test data influences preprocessing steps, such as fitting scalers, imputers, or dimensionality reduction models on the full dataset before splitting.

27
New cards

Temporal (Look-Ahead) Leakage

A form of data leakage in time-series data where future information is used to predict past outcomes, often resulting from random cross-validation splitting or rolling features spanning forward dates.

28
New cards

Group / Entity Leakage

Data leakage that occurs when multiple records or observations from the same entity (such as patient IDs or near-duplicates) appear simultaneously in both the training and test sets.

29
New cards

Overfitting

A modeling issue characterized by high variance where the model learns sample-specific noise, resulting in low training error but substantially higher validation or test error.

30
New cards

Underfitting

A modeling flaw marked by high bias where the model is too simple to capture the underlying data patterns, producing high error on both training and validation sets.

31
New cards

Principal Component Analysis (PCA)

An unsupervised feature extraction technique that projects standardized data onto an orthogonal set of linear combinations (principal components) ordered by the variance explained.

32
New cards

Principal Component Regression (PCR)

A modeling strategy that fits an Ordinary Least Squares regression on the top principal components produced by PCA, removing multicollinearity and mitigating issues where p>np > n.

33
New cards

Prediction Interval

An estimated range covering the expected target value for a single new individual observation, which is inherently wider than a confidence interval because it accounts for irreducible error variance.

34
New cards

Robust Regression

An alternative regression framework (e.g., Huber, RANSAC, or Theil–Sen) designed to limit the influence of severe outliers by applying loss functions that grow slower than squared error.