Regression assumptions, residual analysis and ANOVA

Regression assumptions, residual analysis and ANOVA

Published September 28, 2026

Regression assumptions, residual analysis and ANOVA

On this page

Learning Outcome Statement

Describe and compare the assumptions of simple linear regression, identify violations through analyzing residuals, evaluate the estimated model’s goodness-of-fit and regression coefficients, and results of ANOVA estimates.

On the exam: You get a regression-output table, residual information or a residual plot, and an ANOVA table. You identify an assumption violation, calculate or interpret fit and coefficient statistics, or select the ANOVA conclusion.

A regression line turns each independent-variable observation into a predicted dependent-variable value. The residual is what the line missed, so residuals let you inspect the model rather than trust a fit statistic. For observation $i$, the actual dependent-variable value is $Y_i$, the independent-variable value is $X_i$, the estimated intercept is $\hat a$, the estimated slope is $\hat b$, the fitted value is $\hat Y_i$, and the leftover is $e_i$. You then use $R^2$ for fit, $t$ for an individual coefficient, and $F$ for the overall regression.

AssumptionResidual evidenceLikely issue
LinearityCurved pattern around fitted valuesLine misses systematic shape
Constant varianceFan-shaped spreadPrecision estimates become unreliable
IndependenceRuns or clusters over timeErrors remain related
NormalitySkewed or heavy-tailed distributionInference becomes less reliable

Read the pattern across observations, not the sign of one residual. Use a residual distribution check for normality, and treat any visual pattern as evidence to investigate rather than proof.

ANOVA starts with total squared variation, $SS_T$. The regression-explained part is $SS_R$, and the residual part is $SS_E$. The corresponding mean squares are $MS_R$ and $MS_E$, based on regression and error degrees of freedom $df_R$ and $df_E$. The fit ratio is $R^2$, the coefficient ratio is $t$, and the overall ratio is $F$.

$$ \begin{aligned} \hat Y_i&=\hat a+\hat bX_i & e_i&=Y_i-\hat Y_i\ SS_T&=SS_R+SS_E & R^2&=\frac{SS_R}{SS_T}=\frac{SS_T-SS_E}{SS_T}\ MS_R&=\frac{SS_R}{df_R} & MS_E&=\frac{SS_E}{df_E}\ t&=\frac{\text{coefficient estimate}}{\text{standard error}} & F&=\frac{MS_R}{MS_E} \end{aligned} $$

The fitted-value equation turns $X_i$ into a predicted value, and the residual is actual minus predicted. A larger $SS_R$ relative to $SS_T$ raises $R^2$, which measures goodness-of-fit, not causation. A larger coefficient estimate or smaller standard error raises $\lvert t\rvert$, while a larger $MS_R$ or smaller $MS_E$ raises $F$.

For a coefficient test, call the population coefficient $\theta$. Use $H_0:\theta=0$ against $H_a:\theta\neq0$. The coefficient alternative below is two-tailed. The overall ANOVA test with one regressor uses the upper tail of $F$ because its statistic cannot be negative. Statistical significance does not establish economic significance.

Worked example

You are handed an ordinary least squares output for a sample of monthly fund and market excess returns. The fund excess return is dependent, the market excess return is independent, and returns are decimal monthly excess returns. The symbols $n$ and $k$ count observations and estimated parameters. The exam asks you to inspect residuals, evaluate fit and coefficients, and select the ANOVA conclusion at a significance level of $0.05$.

InputValue
Intercept estimate $\hat a$0.002 decimal monthly excess return
Slope estimate $\hat b$1.1 dimensionless
Intercept standard error0.001 decimal monthly excess return
Slope standard error0.2 dimensionless
Observations $n$12 monthly observations
Parameters $k$2 parameters
Total sum of squares $SS_T$0.012 squared decimal monthly excess return
Error sum of squares $SS_E$0.0036 squared decimal monthly excess return
Significance level $\alpha$0.05
Critical $t$, two-tailed2.228
Critical $F$, upper-tail4.965
Fitted values-0.042, -0.020, 0.002, 0.024, 0.046
Residuals0.012, -0.005, 0.003, -0.006, 0.009

The parameter count includes the intercept and slope. Keep every return on the monthly decimal basis.

The chart pairs each fitted value with its residual in the table's order.

Read each residual beside its fitted value, keeping the table's ordering intact. A positive residual means the fund return finished above the line's prediction; a negative residual means it finished below. Look across all five points for a systematic shape, since one positive or negative miss alone does not establish an assumption problem. The vertical spread also helps you judge whether error size changes with the fitted return.

Loading diagram…

Use the plotted points to assess residual evidence before moving to the numerical output. In this sample, the residuals switch sign and do not show an obvious curve or widening spread. That visual check is only a diagnostic; use the model assumptions and the supplied regression statistics together. Then calculate fit from the sums of squares, test each coefficient using its own standard error, and finish with the overall ANOVA decision at the stated significance level.

Loading diagram…
  1. Read the residuals as actual minus predicted. Their signs vary without a clear curve, fan, or run, so the supplied plot shows no obvious violation.
  2. Subtract error variation from total variation to isolate what the line explains: $SS_R=SS_T-SS_E=0.012-0.0036=0.0084$.
  3. Divide explained variation by total variation to measure fit: $R^2=\frac{0.0084}{0.012}=0.700$.
  4. Use the regressor count for regression degrees of freedom, then subtract estimated parameters from observations for error degrees of freedom. This gives $df_R=1$, $df_E=12-2=10$, and total degrees of freedom $12-1=11$.
  5. Divide each sum of squares by its own degrees of freedom, not by the observation count for both rows. This gives $MS_R=\frac{0.0084}{1}=0.008400$ and $MS_E=\frac{0.0036}{10}=0.000360$.
  6. Form the ANOVA ratio: $F=\frac{0.008400}{0.000360}=23.333$. Compare this upper-tail statistic with the critical value $4.965$.
  7. Divide each coefficient by its standard error. The intercept gives $t=\frac{0.002}{0.001}=2.000$, and the slope gives $t=\frac{1.1}{0.2}=5.500$. Compare $\lvert t\rvert$ with the two-tailed critical value $2.228$.
  8. The intercept does not reject $H_0$ because $2.000$ is below $2.228$. The slope rejects $H_0$ because $5.500$ exceeds $2.228$, and the overall ANOVA rejects its null because $23.333$ exceeds $4.965$.

With $R^2=0.700$, the line explains $0.700$ of total sample variation. The slope and overall regression are statistically significant at $0.05$, while the intercept is not. That is evidence about this sample's association, not causation or economic significance.

Changed condition

The same sample and test convention are used, but the slope estimate changes from $1.1$ to $0.8$. Its standard error stays at $0.2$, so predict the new slope statistic before calculating it.

QuantityOriginalChanged
Slope estimate1.10.8
Slope standard error0.20.2
Slope $t$ statistic5.5004.000

With the denominator unchanged, lowering the coefficient estimate lowers the $t$ ratio. The statistic moves from $5.500$ to $4.000$, while the two-tailed cutoff stays at $2.228$. Before reading on, decide whether the changed slope rejects $H_0$.

Common error

You may declare a coefficient significant after comparing its $t$-statistic with a one-tailed critical value, even though the stated alternative is two-tailed. A positive estimate can make a positive-tail test feel right. The giveaway is that you compared the absolute $t$-statistic with the stated two-tailed critical value.

Calculator

KeysDisplay
0.0120.012
0.00360.0036
0.012 - 0.0036 =0.0084
0.0084 / 0.012 =0.700

Check yourself

Practice

Enter the model's unexplained difference: ____

A residual plot widens as fitted values rise. Which assumption is most directly questioned?

Put the ANOVA steps in order.

  • Separate explained and error variation
  • Assign degrees of freedom
  • Compute mean squares
  • Compute F statistic
  • Compare with critical value

Revision snapshot

A residual is the actual dependent-variable value minus the predicted dependent-variable value. $R$-squared equals explained variation divided by total variation, so it measures goodness-of-fit rather than causation. ANOVA separates total variation into regression variation and error variation. A $t$-statistic divides the coefficient estimate by its standard error. Apply the stated tail convention and critical value. On the exam, read residual patterns first, then interpret fit, coefficient, and ANOVA statistics. A candidate may use a one-tailed cutoff because the result looks directional. That feels right when the coefficient has the expected sign. The stated alternative reveals the mistake when it is two-tailed.

Unlock the full lesson and continue reading

Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more

Scan to download app

Scan to download
UNLOCK FREE ACCESS

Practice Questions: Regression assumptions, residual analysis and ANOVA

  1. 1. A manager reports performance after transaction costs but before deducting management fees. The reported measure is best described as:

    • A. Real return
    • B. Gross return
    • C. Net return
    Show answer

    Answer: B. Gross return

    Gross return - Gross return reflects portfolio transaction costs but is measured before management fees are deducted. - The manager’s reported performance matches that treatment of costs and fees. Net return - Net return deducts management fees, which the manager has not deducted. - Reflecting transaction costs alone does not make the reported performance net of fees. Real return - Real return adjusts a nominal return for inflation, not for the treatment of management fees. - The question describes transaction costs and fees but gives no inflation adjustment.

  2. 2. A return sample has a mean of 3.6%, median of 2.4%, and mode of 1.5%. Its distribution is most likely:

    • A. Negatively skewed
    • B. Approximately symmetric
    • C. Positively skewed
    Show answer

    Answer: C. Positively skewed

    Positively skewed - The ordering mean 3.6% > median 2.4% > mode 1.5% is characteristic of a positively skewed distribution. - A longer right tail pulls the mean above the median and mode. Negatively skewed - A longer left tail generally pulls the mean below the median and mode. - The sample instead has its mean above both, indicating positive rather than negative skew. Approximately symmetric - In an approximately symmetric distribution, the mean, median, and mode are generally close together. - Their ordering here, 3.6% > 2.4% > 1.5%, points to skewness rather than approximate symmetry.

  3. 3. An analyst calculates a stock's holding-period return using only its price change, although the investor received a cash dividend during the period. The reported return most likely:

    • A. Understates the investor's holding-period return
    • B. Correctly measures the investor's holding-period return
    • C. Overstates the investor's holding-period return
    Show answer

    Answer: A. Understates the investor's holding-period return

    Understates the investor's holding-period return - Holding-period return includes both the stock’s price change and the cash dividend received. - Calculating only \((P1-P0)/P0\) omits \(D/P0\) from the full return, \((P1-P0+D)/P0\). Correctly measures the investor's holding-period return - A price-only calculation measures the price return, not the investor’s full holding-period return. - The cash dividend is part of what the investor received during the period, so it cannot be excluded. Overstates the investor's holding-period return - Adding the cash dividend to the price change increases the calculated return. - Omitting that dividend therefore makes the reported return lower, not higher, than the investor’s holding-period return.

  4. 4. An analyst compares the arithmetic mean return and the geometric mean return calculated from the same series of historical periodic returns. The geometric mean return is most likely:

    • A. Equal to the arithmetic mean return only when returns are identical in every period
    • B. Greater than the arithmetic mean return whenever returns vary from period to period
    • C. Less than the arithmetic mean return whenever returns vary from period to period
    Show answer

    Answer: C. Less than the arithmetic mean return whenever returns vary from period to period

    Less than the arithmetic mean return whenever returns vary from period to period - The arithmetic–geometric mean inequality applied to periodic growth factors makes the geometric mean return no greater than the arithmetic mean return. - When returns vary, the inequality is strict: compounding produces a lower geometric mean return. Equal to the arithmetic mean return only when returns are identical in every period - This statement correctly identifies the equality condition for the two means. - It does not describe their relationship when returns vary, which is what the question asks. Greater than the arithmetic mean return whenever returns vary from period to period - Variation makes the geometric mean less than, not greater than, the arithmetic mean. - For example, returns of +10% and −10% have an arithmetic mean of 0% but a geometric mean of approximately −0.5%.

  5. 5. An analyst trains an algorithm on loans labeled default or non-default to classify new loans. This approach is best described as:

    • A. Supervised learning
    • B. Unsupervised learning
    • C. Reinforcement learning
    Show answer

    Answer: A. Supervised learning

    Supervised learning - The training loans have known default or non-default labels, so the algorithm learns from labeled examples. - Classifying new loans using those examples is a supervised classification task. Unsupervised learning - Unsupervised learning looks for patterns, such as clusters, in unlabeled data. - These training loans already have default outcomes, so the analyst supplies the categories the algorithm learns to predict. Reinforcement learning - Reinforcement learning trains an agent to choose actions using rewards or penalties. - Here, the algorithm learns to classify loans from known outcomes, not from feedback on its actions.

  6. 6. A portfolio has variable annual returns, including no year with the same return. Compared with its arithmetic mean return, its geometric mean return is most likely:

    • A. The geometric mean is lower
    • B. The arithmetic mean is lower
    • C. The two means are equal
    Show answer

    Answer: A. The geometric mean is lower

    The geometric mean is lower - The geometric mean measures the constant annual rate that produces the portfolio’s compounded return. - Because the annual returns vary, the arithmetic mean exceeds the geometric mean. The arithmetic mean is lower - This reverses the arithmetic–geometric mean relationship: for variable annual returns, the arithmetic mean is higher. - Compounding variable returns does not make the geometric mean exceed their arithmetic average. The two means are equal - Equality requires identical annual returns in every year. - The portfolio has no year with the same return, so its geometric and arithmetic means are not equal.

  7. 7. A portfolio analyst finds that monthly returns have a mean of 1.4%, a median of 0.8%, and a mode of 0.3%. The return distribution is most likely:

    • A. Positively skewed
    • B. Symmetrically distributed
    • C. Negatively skewed
    Show answer

    Answer: A. Positively skewed

    Positively skewed - The ordering mean 1.4% > median 0.8% > mode 0.3% is characteristic of a positively skewed distribution. - A longer right tail pulls the mean above the median and mode. Symmetrically distributed - A symmetric, unimodal return distribution would ordinarily have approximately equal mean, median, and mode. - The three reported measures differ and follow the ordering associated with positive skew, not symmetry. Negatively skewed - A longer left tail generally pulls the mean below the median and mode. - Negative skew would suggest the reverse ordering, rather than the reported mean > median > mode.

Flashcards: Regression assumptions, residual analysis and ANOVA

  1. 1. What is heteroskedasticity in linear regression?

    Show answer

    When the variance of the residuals is not constant across all observations.

  2. 2. What does the Total Sum of Squares (SST) measure in regression?

    Show answer

    The total variation in the dependent variable around its mean.

  3. 3. What does the Standard Error of Estimate (SEE) measure in a regression?

    Show answer

    The standard deviation of the residuals (prediction errors).

  4. 4. How is \(R^2\) calculated specifically in a simple linear regression?

    Show answer

    By squaring the correlation coefficient: \[R^2 = r^2\]

  5. 5. What formula determines the prediction interval for a regression forecast?

    Show answer

    \[\hat{Y} \pm (tc \times sf)\] where \(sf\) is the standard error of the forecast.

  6. 6. In a Lin-Log regression model, how is the slope coefficient interpreted?

    Show answer

    The absolute change in Y for a relative (percentage) change in X.

  7. 7. What does the Coefficient of Determination (\(R^2\)) represent?

    Show answer

    The percentage of total variation in the dependent variable explained by the independent variable.

  8. 8. What is the mathematical relationship between SST, SSR, and SSE?

    Show answer

    \[SST = SSR + SSE\]

  9. 9. What is the least squares (OLS) criterion in linear regression?

    Show answer

    The regression line is the one that minimizes the sum of squared errors (SSE).

Everything you need for CFA prep

Get full Oncourse access with lessons, practice questions, flashcards and AI study tools.

GET STARTED FOR FREE
75% OFFLimited time offer
GET 75% OFF