Residual autocorrelations and AR model fit

Residual autocorrelations and AR model fit

Published September 28, 2026

Residual autocorrelations and AR model fit

On this page

Learning Outcome Statement

Explain how autocorrelations of the residuals can be used to test whether the autoregressive model fits the time series.

On the exam: You receive an estimated autoregressive order, the number of periodic residual observations, residual autocorrelations through a stated maximum lag, and a significance level or chi-square critical value. You state the hypotheses, calculate or interpret the Ljung-Box statistic, apply the upper-tail rejection rule, and conclude whether the model fits.

An autoregressive model uses earlier observations to explain the current observation. After fitting it, each residual is the actual observation minus the fitted observation for that period. If the model captured the predictable time pattern, residuals should not move together across periods. Residual autocorrelations near zero across tested lags are consistent with adequate AR fit, but they do not prove it.

QuantitySymbolUnit or statement
Residual observations$n$sample count
Estimated AR order$p$periods
Maximum tested lag$m$periods
Lag index$k$periods
Sample residual autocorrelation$\hat{\rho}_k$dimensionless estimate
Null hypothesis$H_0$lags 1 through $m$ jointly zero
Alternative hypothesis$H_a$at least one tested lag nonzero
Significance level$\alpha$decimal upper-tail level

Use $n$ for the residual sample count, and read the hats as sample estimates rather than population quantities. The test is joint residual dependence, not individual AR-coefficient significance.

To combine the evidence across the tested lags, the Ljung-Box statistic $Q(m)$ squares each sample residual autocorrelation and applies a finite-sample correction:

$$ Q(m)=n(n+2)\sum_{k=1}^{m}\frac{\hat{\rho}_k^2}{n-k} $$

Squaring removes the sign, so positive or negative dependence with the same magnitude pushes $Q$ in the same direction. The factor $n(n+2)$ scales the evidence with the sample size. The denominator $n-k$ applies a lag-specific finite-sample correction. Estimating the $p$ AR terms consumes approximately $p$ degrees of freedom, leaving $m-p$ for the chi-square comparison. The upper tail is the rejection region, so a large $Q$ provides evidence against the zero-autocorrelation null. Failing to reject means no detected residual serial correlation.

.

Worked example

You are given an estimated autoregressive model for monthly portfolio excess returns. The report supplies residual observations, sample residual autocorrelations through a stated maximum lag, and an upper-tail critical value. Your job is to calculate the Ljung-Box statistic at the stated significance level and decide whether the residuals still show serial correlation.

GivenValue
FrequencyMonthly
Residual count, $n$120 monthly residual observations
Estimated AR order, $p$2 periods
Maximum residual lag, $m$4 months
Sample residual autocorrelation, $\hat{\rho}_1$0.08
Sample residual autocorrelation, $\hat{\rho}_2$-0.05
Sample residual autocorrelation, $\hat{\rho}_3$0.12
Sample residual autocorrelation, $\hat{\rho}_4$-0.03
Significance level, $\alpha$0.05
Upper-tail critical value5.991

Monthly frequency gives each lag a month-sized step. The count $n$ is the number of residual observations used in the test. The chart keeps the sample correlations near zero over the tested lags, but the test combines all of them rather than judging the chart by eye.

Loading diagram…

Now follow the finite-sample calculation schedule. At lag $k$, the denominator is $n-k$, and the last column supplies the lag contribution before the common Ljung-Box scaling. Match each row to the same lag in the chart: square its sample autocorrelation, then divide by that row’s denominator. This keeps negative correlations from offsetting positive ones. Add the four contributions before applying the common sample-size factor; the schedule organizes the calculation, while the final comparison still uses the upper-tail critical value.

Lag$n-k$Term
1119.000.0001
2118.00-0.0000
3117.000.0001
4116.00-0.0000

Read the two entries shown as $-0.0000$ as zero in this schedule.

  1. Apply the $n-k$ denominator at each lag. You are correcting for the observations lost at that lag, which produces the entries in the schedule.
  2. Subtract the estimated AR order from the maximum tested lag. The chi-square degrees of freedom are $m-p=4-2=2.00$.
  3. Substitute the sample count and corrected lag terms into the Ljung-Box formula. Retaining calculation precision produces $Q(4)=2.1655$.
  4. Use the upper-tail rule at $\alpha=0.05$. The statistic minus the critical value is $2.1655-5.991=-3.8255$, so the rejection condition is not met.

At $\alpha=0.05$, you fail to reject $H_0$ and find no detected residual serial correlation. That supports, but does not prove, an adequate AR fit.

Changed condition

Keep the same monthly model and all of its reported test inputs. Only the sample residual autocorrelation at the selected lag changes, and the question asks whether the conclusion changes.

QuantityBaseChanged
$\hat{\rho}_3$0.120.3
$Q(4)$2.165511.6251
$Q(4)-5.991$-3.82555.6341

Predict the direction before looking at the changed column. The larger absolute residual autocorrelation contributes more after squaring, so $Q$ rises and crosses the unchanged upper-tail critical value. You reject $H_0$ and conclude that the model leaves detected residual serial correlation, so it does not pass this residual-fit diagnostic. Before reading on, calculate the changed lag contribution and the new $Q(4)$ yourself.

Common error

You may reject when $Q$ is below the critical value if you mistake the statistic for a lower-tail fit measure. That feels right because small residual correlations look like a small test result. But the test statistic $Q$ is nonnegative, and the chi-square calculation accumulates squared correlations. The upper-tail decision exposes the mistake: you reject the zero-autocorrelation null only when $Q$ is sufficiently large. A smaller $Q$ means you fail to reject it.

Check yourself

Practice

A portfolio manager estimates an AR(2) model from 120 monthly residual observations. The sample residual autocorrelations through lag 4 are 0.08, -0.05, 0.12, and -0.03. The significance level is 0.05 and the upper-tail critical value is 5.991.

Question 1

Calculate the Ljung-Box statistic for the vignette. Which value is correct?

Question 2

Which hypotheses match the Ljung-Box test through lag 4?

Question 3

At significance level 0.05, which conclusion follows for the base case with critical value 5.991?

Question 4

Which changed condition produces rejection of the residual-autocorrelation test?

For an estimated AR(2) model tested through lag 4, which chi-square degrees of freedom should be used?

Revision snapshot

Residual autocorrelations near zero across tested lags support, but do not prove, an adequate AR fit. The Ljung-Box statistic turns those residual correlations into the test statistic shown below.

$$ Q(m)=n(n+2)\sum_{k=1}^{m}\frac{\hat{\rho}_k^2}{n-k} $$

For an estimated $AR(p)$, compare $Q$ with a chi-square critical value using approximately $m-p$ degrees of freedom. A large $Q$ points to the upper tail and evidence against the null of zero autocorrelation. If you fail to reject, you found no detected residual serial correlation, not proof that none exists. On the exam, state the hypotheses, use the sample residual count and autocorrelations, calculate or interpret $Q$, and apply the upper-tail critical value. Do not reject when $Q$ is below that critical value.

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: Residual autocorrelations and AR model fit

  1. 1. An investor deposits USD 100,000 for three years at a stated annual rate of 4.25%, compounded monthly. The calculated future value is closest to:

    • A. USD 112,750
    • B. USD 113,638
    • C. USD 113,300
    Show answer

    Answer: B. USD 113,638

    USD 113,638 - Monthly compounding uses a periodic rate of 0.0425/12 over 36 months, giving USD 100,000(1 + 0.0425/12)^36 β‰ˆ USD 113,573. - USD 113,638 is the closest listed value, although it is not the calculated future value. USD 112,750 - This comes from using simple interest: USD 100,000 Γ— (1 + 0.0425 Γ— 3) = USD 112,750. - It omits the interest earned on earlier months’ interest. USD 113,300 - This comes from annual rather than monthly compounding: USD 100,000(1.0425)^3 β‰ˆ USD 113,300. - The stated rate is compounded monthly, so the calculation requires 36 compounding periods, not three.

  2. 2. A fund needs USD 2,000,000 in four years. It invests USD 400,000 today and USD 300,000 at each year-end for three years. At 5% annually, the additional amount required today is closest to:

    • A. USD 428,400
    • B. USD 449,900
    • C. USD 520,700
    Show answer

    Answer: A. USD 428,400

    USD 428,400 - The scheduled deposits grow to USD 1,479,240 in year four: USD 400,000(1.05)^4 + USD 300,000[(1.05)^3 + (1.05)^2 + 1.05]. - The year-four shortfall is USD 2,000,000 βˆ’ USD 1,479,240 = USD 520,760, whose value today is USD 520,760/(1.05)^4 β‰ˆ USD 428,431. USD 449,900 - Discounting the USD 520,760 shortfall for three years instead of four gives approximately USD 449,852, closest to USD 449,900. - The additional investment is made today, so it earns interest for all four years before the fund needs the money. USD 520,700 - This is close to the year-four shortfall of USD 520,760, rather than the amount required today. - A deposit made today grows at 5% for four years, so the future shortfall must be discounted by (1.05)^4.

  3. 3. A bank quotes a nominal annual rate of 6.00%, compounded monthly. The calculated effective annual rate is closest to:

    • A. 6.00%
    • B. 6.17%
    • C. 6.36%
    Show answer

    Answer: B. 6.17%

    6.17% - The monthly rate is 6.00% Γ· 12 = 0.50%. - Compounding that rate for 12 months gives \((1 + 0.06/12)^{12} - 1 \approx \mathbf{6.17\%}\). 6.00% - 6.00% is the quoted nominal annual rate, not the effective annual rate. - It omits the interest earned on earlier months’ interest. 6.36% - 6.36% results from adding \(6.00\% + (6.00\%)^2\). - That calculation uses the full annual rate as an extra compounding gain instead of applying the 0.50% monthly rate for 12 months.

  4. 4. An analyst models continuously compounded returns as normally distributed. The corresponding asset-price distribution is best described as:

    • A. Prices are normally distributed and may be negative
    • B. Prices are lognormally distributed and remain nonnegative
    • C. Prices are uniformly distributed around their expected value
    Show answer

    Answer: B. Prices are lognormally distributed and remain nonnegative

    Prices are lognormally distributed and remain nonnegative - A continuously compounded return is \(r=\ln(PT/P0)\), so the future price is \(PT=P0e^r\). - If \(r\) is normal, exponentiating it makes \(PT\) lognormal and strictly positive when \(P0>0\). Prices are normally distributed and may be negative - The normal distribution applies to continuously compounded returns, not directly to price levels. - Although a normal return can be negative, \(P0e^r\) cannot be negative. Prices are uniformly distributed around their expected value - Exponentiating a normally distributed return produces a lognormal, not uniform, price distribution. - The resulting prices are bounded below by zero, rather than uniformly spread around their expected value.

  5. 5. A portfolio report presents performance after transaction costs but before investment-management fees. The reported measure is best classified as:

    • A. Net return
    • B. Gross-of-fees return
    • C. Real return
    Show answer

    Answer: B. Gross-of-fees return

    Gross-of-fees return - The report deducts transaction costs but not investment-management fees, so it presents a gross-of-fees return. - β€œGross-of-fees” refers to management fees; it does not mean that trading costs are excluded. Net return - A net return deducts investment-management fees, but the report presents performance before those fees. - Deducting transaction costs alone does not make the reported measure net of management fees. Real return - A real return adjusts for inflation, not for investment-management fees. - The report describes its treatment of transaction costs and fees but gives no inflation adjustment.

  6. 6. An investment committee wants to assess a manager's investment skill independently of the management fee negotiated by each client. The committee should most likely compare:

    • A. Net-of-fees return
    • B. Gross-of-fees return
    • C. Real net-of-fees return
    Show answer

    Answer: B. Gross-of-fees return

    Gross-of-fees return - Gross-of-fees return measures the manager’s investment performance before each client’s negotiated management fee is deducted. - Comparing it across clients keeps differences in fee agreements from obscuring the committee’s assessment of investment skill. Net-of-fees return - Net-of-fees return subtracts the management fee, so clients with different negotiated fees can have different returns from the same investment performance. - It is useful for assessing what a client retains, but not for isolating the manager’s skill from the fee agreement. Real net-of-fees return - Real net-of-fees return reflects both management fees and an adjustment for inflation. - Neither adjustment helps the committee isolate investment skill from the client-specific fees it wants to set aside.

  7. 7. A fund's mandate is actively managed US small-cap equities with no foreign holdings. The most appropriate performance benchmark is:

    • A. An investable US small-cap equity index
    • B. A broad US all-cap equity index
    • C. A developed global equity index
    Show answer

    Answer: A. An investable US small-cap equity index

    An investable US small-cap equity index - It matches the fund’s US small-cap mandate and excludes foreign holdings. - An investable index represents securities available to the manager, making it an appropriate measure of active performance. A broad US all-cap equity index - It includes mid- and large-cap stocks outside the fund’s small-cap mandate. - Those stocks can affect index returns for reasons unrelated to the manager’s performance within the permitted opportunity set. A developed global equity index - It includes foreign equities that the mandate prohibits the fund from holding. - Its returns can also reflect foreign-market and currency exposures unrelated to the manager’s US small-cap decisions.

  8. 8. An analyst observes a unimodal return distribution with a long right tail. The ordering of its location measures is most likely:

    • A. Mode < median < mean
    • B. Mean < median < mode
    • C. Mean = median = mode
    Show answer

    Answer: A. Mode < median < mean

    Mode < median < mean - The long right tail indicates positive skewness and pulls the mean toward unusually high returns. - In the usual unimodal right-skewed pattern, the mode lies at the peak, the median is farther right, and the mean is farthest right. Mean < median < mode - This ordering is typical of a long left tail, which pulls the mean below the median. - The observed return distribution instead has a long right tail, so this ordering reverses the expected effect on the mean. Mean = median = mode - Equality of these measures is typical of a symmetric unimodal distribution. - The observed long right tail makes that symmetric ordering unlikely.

Flashcards: Residual autocorrelations and AR model fit

  1. 1. What is the Breusch-Godfrey test for?

    Show answer

    test for multiple lag serial correlation

  2. 2. What test to use to detect residual serial correlation at a single lag?

    Show answer

    Durbin-Watson statistic

  3. 3. For a time series model without serial correlation, what should the DW statistic be equal to? What does it mean if DW is not equal to that?

    Show answer

    Means the residual terms are correlated

  4. 4. Describe the distribution characteristics of asset returns

    Show answer

    skewness and excess kurtosis (fat tails)

  5. 5. For invalid results between two data series, either..

    Show answer

    - if one data series has a unit root - both have a unit root and they are not cointegrated

  6. 6. For regression results between two data series to be valid, either

    Show answer

    - neither data series has a unit root - both have a unit root but they are cointegrated

  7. 7. Three types of momentum indicators

    Show answer

    - earnings surprise = reported EPS - expected EPS - standardized unexpected earnings (SUE) = (earnings surprise)/(stdev of earnings surprise) - relative strength: patterns of persistence or reversal may exist in stock returns

  8. 8. What is a structural change?

    Show answer

    a significant shift in the plotted data at a point in time that seems to divide the data into two or more distinct patterns

  9. 9. What is serial correlation?

    Show answer

    \- situation in which regression residual terms are correlated with one another (not independent)\ \- poses problem with regressions using time series data

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