Skip to content

Extensions of Multiple Regression ​

This module extends ordinary multiple regression in two directions:

  1. Influence analysis: identifying observations that may materially affect the fitted model.
  2. Qualitative information: representing categorical explanatory variables and modeling a binary dependent variable.

Influence Analysis ​

An observation may be unusual because of its explanatory-variable values, its dependent-variable value, or both. These cases must be distinguished:

ConceptWhat is unusual?Primary measure
High leverageThe observation's X valuesLeverage, hii
OutlierThe observed Yi is far from its fitted valueStudentized residual
Influential observationRemoving the observation materially changes the fitted regressionCook's distance or deletion diagnostics

High leverage or a large residual creates the potential for influence. Neither one alone proves that an observation materially changes the regression.

Read the three cases from left to right:

  1. High leverage without a large residual: the point is far from the sample in the horizontal X direction but agrees with the existing relationship. It extends the data range without rotating the fitted line much.
  2. Outlier without high leverage: the point is far from the line vertically but lies near the center of the X distribution. It has a large residual, but surrounding observations limit its ability to rotate the slope.
  3. Influential observation: the point is both horizontally remote and vertically inconsistent with the original relationship. With few nearby observations to counterbalance it, the point pulls the fitted line toward itself.

The dashed line in each panel is fitted without the labeled observation; the solid line includes it. Their separation makes influence directly visible.

Leverage ​

Leverage measures how unusual an observation's independent-variable values are relative to those of the sample. It is the ith diagonal element of the OLS hat matrix:

H=X(X′X)−1X′,hii=Hii.

The fitted values satisfy Y^=HY, which is why H is called the hat matrix.

Important properties are

0≤hii≤1,∑i=1nhii=k+1,

when the model contains k predictors and an intercept. Therefore, average leverage is

h¯=k+1n.

A commonly used investigation rule is

hii>3(k+1n).

This is a screening guideline, not a formal rejection threshold. A high-leverage observation can lie close to the fitted regression and therefore have little influence.

Outliers and Studentized Residuals ​

An outlier has an unusually large residual relative to its estimated variability. The ordinary residual is

ei=Yi−Y^i.

Residual variance differs across observations because leverage differs. Studentization places residuals on a comparable scale. The externally studentized residual, also called the studentized deleted residual, is

ti∗=eis(i)1−hii,

where s(i) is the regression standard error estimated after deleting observation i.

Under normally distributed errors and the null hypothesis that observation i follows the same regression model as the other observations,

ti∗∼tn−k−2.

A large absolute value, |ti∗|, indicates a potential outlier. The relevant null is not that the observation is influential; studentized residuals detect unusual conditional Y values, whereas influence also depends on leverage.

NOTE

Inspecting many observations creates a multiple-testing problem. A simple cutoff such as |ti∗|>2 is useful for screening but will flag some observations by chance, especially in a large sample.

Cook's Distance ​

Cook's distance combines residual size and leverage to estimate how much the fitted regression would change if observation i were removed:

Di=ei2(k+1)MSE(hii(1−hii)2).

Cook's distance grows when an observation has:

  • a large residual;
  • high leverage; or
  • both.

Larger Di means greater potential influence. Values above 1 are often treated as strongly influential, while rules such as Di>4/n are used for screening. These are investigation rules rather than automatic deletion criteria.

How to Respond to an Influential Observation ​

  1. Check for data-entry, measurement, and unit errors.
  2. Decide whether the observation belongs to the population represented by the model.
  3. Examine whether it reveals a missing variable, interaction, structural break, or incorrect functional form. See M3: Model Misspecification.
  4. Compare the model with and without the observation and report material sensitivity.
  5. Do not remove a valid observation solely because it weakens the desired result.

Categorical Explanatory Variables ​

Dummy Variables ​

A dummy variable represents category membership using values of 0 and 1. If a categorical predictor has g categories and the regression includes an intercept, use g−1 dummy variables. The omitted category becomes the reference category.

Using all g dummies with an intercept creates perfect multicollinearity—the dummy-variable trap discussed in M3: Multicollinearity.

Example: Different Intercepts ​

Suppose firms belong to the financial, technology, or healthcare sector. Define

DTech=1 for a technology firm, otherwise 0,

and similarly define DHealth. If financial firms are the reference group,

Yi=β0+β1Xi+γ1DTech,i+γ2DHealth,i+εi.
  • β0 is the intercept for financial firms.
  • γ1 is the intercept difference between technology and financial firms, holding X constant.
  • γ2 is the intercept difference between healthcare and financial firms, holding X constant.

Changing the reference category changes the coefficient representation but not the fitted values.

Interaction Terms ​

To allow the slope on X to differ between two groups, interact X with a dummy variable:

Yi=β0+β1Xi+γDi+δ(XiDi)+εi.
GroupInterceptSlope on X
Reference group, D=0β0β1
Comparison group, D=1β0+γβ1+δ

Therefore:

  • γ measures the difference in intercepts; and
  • δ measures the difference in slopes.

A restricted F-test can determine whether a set of category and interaction terms is jointly significant.

Binary Dependent Variables ​

When the dependent variable takes only two values—such as default/no default or success/failure—ordinary linear regression can produce probabilities below 0 or above 1 and imposes heteroskedastic errors. A logit model instead connects the predictors to a probability through the logistic function.

Logit Model ​

Let

pi=P(Yi=1∣Xi).

The logit model specifies the log odds as a linear function of the predictors:

ln⁡(pi1−pi)=β0+β1X1i+⋯+βkXki.

Solving for the probability gives

pi=11+exp⁡[−(β0+β1X1i+⋯+βkXki)].

There is no additive εi inside this probability equation. Conditional on the predictors, Yi follows a Bernoulli distribution with probability pi.

Interpreting Logit Coefficients ​

A one-unit increase in Xj, holding the other variables constant:

  • changes the log odds by βj; and
  • multiplies the odds by eβj.

For example, if β^j=0.40, the estimated odds multiply by

e0.40≈1.49,

which is approximately a 49% increase in the odds—not necessarily a 49% increase in probability. The change in probability depends on the starting probability and the values of all predictors.

Estimation and Model Evaluation ​

Logit coefficients are estimated using maximum likelihood estimation (MLE) rather than OLS. MLE chooses the coefficients that make the observed sequence of zeros and ones most likely.

Log-Likelihood ​

The log-likelihood for independent binary observations is

ℓ(β)=∑i=1n[Yiln⁡(pi)+(1−Yi)ln⁡(1−pi)].

A higher maximized log-likelihood indicates better in-sample fit for models estimated on the same observations and dependent variable. Because log-likelihood values are usually negative, “higher” generally means closer to zero.

Pseudo R-Squared ​

Pseudo R2 measures compare the fitted model with a benchmark such as an intercept-only model. They are not interpreted as the proportion of variation explained and are not directly comparable with OLS R2.

Likelihood-Ratio Test ​

The likelihood-ratio (LR) test determines whether q coefficient restrictions are jointly supported. It compares:

  • a restricted model, estimated under H0; and
  • an unrestricted model, which allows the tested coefficients to vary.

The statistic is

LR=2(ℓU−ℓR),

where ℓU and ℓR are the maximized log-likelihoods. Because the unrestricted model fits at least as well, ℓU≥ℓR and LR≥0.

Under H0 and standard regularity conditions,

LR∼aχq2,

where q is the number of restrictions. Reject H0 for a sufficiently large LR statistic or a p-value below the selected significance level.

Worked Example ​

Suppose the unrestricted logit model includes two industry variables being tested jointly and has ℓU=−118. The restricted model excludes them and has ℓR=−125:

LR=2[−118−(−125)]=14.

There are q=2 restrictions. At the 5% level, the χ22 critical value is approximately 5.99. Since 14>5.99, reject the null: the two industry variables are jointly significant.

The LR test plays a role for maximum-likelihood models similar to the restricted F-test for OLS models, although their reference distributions and estimation frameworks differ.

Summary ​

TaskModel or diagnosticKey interpretation
Find unusual predictor valuesLeverageHigh leverage means unusual X, not necessarily influence
Find unusual outcomes conditional on XStudentized deleted residualLarge $
Measure overall influenceCook's distanceCombines residual size and leverage
Include a categorical predictorg−1 dummy variablesCoefficients are interpreted relative to a reference category
Allow group-specific slopesDummy-variable interactionInteraction coefficient is the slope difference
Model a binary outcomeLogitCoefficients change log odds; eβj is an odds ratio
Test restrictions in a logit modelLR testCompare restricted and unrestricted log-likelihoods