Goodness of fit: R-squared, adjusted R-squared, AIC and BIC

On this page

Learning Outcome Statement

Evaluate how well a multiple regression model explains the dependent variable by analyzing ANOVA table results and measures of goodness of fit.

On the exam: You get a multiple-regression ANOVA table or its sums of squares, sample size, predictor count, and sometimes likelihood information. You calculate or interpret goodness-of-fit measures, assess the overall F-test, or choose the lower AIC or BIC for models estimated on the same dependent-variable sample.

An asset manager wants to know whether factor returns explain monthly active returns across a sample, not whether the model merely looks busy. For each monthly observation, $Y$ is the dependent active return and $n$ is the number of observations. ANOVA separates the sample movement in $Y$ into the part explained by the regression and the part left in residuals, so you can judge fit before choosing a more complicated model.

QuantitySymbolUnit or count
Total sample variation$SST$squared percentage points
Model-explained variation$SSR$squared percentage points
Residual variation$SSE$squared percentage points
Sample observations$n$monthly observations
Slope predictors$k$excludes intercept
Estimated parameters$p$$k+1$, includes intercept

The intercept is outside $k$, but it is still estimated, so the sample residual degrees of freedom are $n-k-1$ and the parameter count $p$ includes it. The joint overall test uses $H_0$ that all slope coefficients equal zero against $H_1$ that at least one is nonzero, with rejection in the upper tail.

The coefficient of determination, $R^2$, is the explained share. Adjusted $R^2$ corrects that share for the sample and estimated slopes. The overall statistic, $F$, compares average explained variation with average residual variation. For AIC and BIC, $L$ is the model likelihood.

$$ \begin{aligned} SST &= SSR + SSE \ R^2 &= \frac{SSR}{SST} \ R^2_{\mathrm{adj}} &= 1 - \frac{SSE/(n-k-1)}{SST/(n-1)} \ F &= \frac{SSR/k}{SSE/(n-k-1)} \ AIC &= -2\ln L + 2p \ BIC &= -2\ln L + p\ln n \end{aligned} $$

$SST$ is the whole sample movement, and the model divides it into $SSR$ and $SSE$. A larger $SSR$ relative to $SST$ raises $R^2$ because more sample variation is explained. Adjusted $R^2$ charges for estimated slopes, and $F$ is large when explained variation per slope overwhelms residual variation, but statistical significance is separate from economic significance. AIC and BIC fall when likelihood improves and rise when parameter penalties dominate, so lower values are preferred for models using the same dependent-variable sample.

Run the calculation in this order.

Loading diagram…

Use the sequence to keep the calculations connected: first identify the sample and degrees of freedom, then check that explained and residual sums reconcile to the total. The split matters because every fit measure that follows uses one or more of these quantities. In the figure, compare the explained portion with the residual portion; neither should be confused with the full sample variation.

Worked example

You are handed an ANOVA table for an asset manager’s factor model of monthly active returns. It uses a sample of 100 monthly observations, an intercept, and 3 predictors. Calculate the fit measures, overall F-statistic, AIC, and BIC. The question supplies an upper-tail critical value or reported p-value if it requires a significance decision.

InputValue
Sample size, $n$100 monthly observations
Explained sum, $SSR$240 squared percentage points
Residual sum, $SSE$160 squared percentage points
Predictors, $k$3 predictors
Total sum, $SST$400.0000 squared percentage points
$-2\ln L$100
$\ln n$4.6052
Significance level, $\alpha$0.05

The bars show explained, residual, and total variation in squared percentage points. Read the first two bars as the components that combine to make the third: 240 explained plus 160 residual equals 400 total. This picture is a visual check of the ANOVA identity, not a separate estimate. Keep the units in mind when comparing bar heights; each sum is measured in squared percentage points, while $R^2$ is a unit-free share.

Loading diagram…
  1. Start with the ANOVA identity to check the supplied total. $SST=SSR+SSE=240+160=400.0000$.

  2. Count sample degrees of freedom before forming averages. The regression degrees of freedom are $k=3.00$, residual degrees of freedom are $n-k-1=100-3-1=96.00$, total degrees of freedom are $n-1=99.00$, and the estimated parameter count is $p=k+1=4.00$.

  3. Divide each sum by its degrees of freedom because the F ratio compares average variation. The mean square regression, $MSR$, is $SSR/k=240/3=80.0000$, and the mean square error, $MSE$, is $SSE/(n-k-1)=160/96=1.6667$.

  4. Compute both fit measures. Raw $R^2=SSR/SST=240/400=0.6000$. Adjusted $R^2=1-\frac{1.6667}{400/99}=0.5875$.

  5. Form the overall ratio after the mean squares are ready. $F=MSR/MSE=80/1.6667=48.00$. At $\alpha=0.05$, compare this upper-tail statistic with the supplied critical value or p-value.

  6. Apply the parameter penalty. With $p=4.00$, $AIC=100+2\times4=108.00$ and $BIC=100+4\times4.6052=118.42$. Compare these values with another model only when both models use the same dependent-variable sample.

The model explains a $0.6000$ fraction of sample variation, with adjusted fit of $0.5875$ after the parameter cost. The decision uses the supplied upper-tail comparison for statistical significance and lower AIC or BIC for same-sample model choice, while fit alone does not establish economic usefulness.

Changed condition

The manager adds a predictor to the same 100 monthly observations. The added variable changes neither $SSR$, $SSE$, nor the reported likelihood index. Predict what moves before checking the table.

MeasureOriginal modelAdded predictor
Degrees of freedomresidual $96.00$, parameters $4.00$residual $95.00$, parameters $5.00$
Fit and test$R^2=0.6000$, adjusted $R^2=0.5875$, $F=48.00$$R^2=0.6000$, adjusted $R^2=0.5832$, $F=35.63$
CriteriaAIC $108.00$, BIC $118.42$AIC $110.00$, BIC $123.03$

Before looking, predict that raw $R^2$ stays unchanged because $SSR$ and $SST$ stay fixed. The added slope consumes a residual degree of freedom and adds a parameter, so MSE rises, adjusted $R^2$ falls, and the overall $F$ falls. With likelihood unchanged, both information criteria rise, so the original model is preferred by both lower-is-better rules. Before reading on, recompute the new residual degrees of freedom from $n-k-1$.

Common error

You use $n-k$ for residual degrees of freedom and divide $SSE$ by that number when you count the $k$ predictors but forget that you estimated the intercept too. The shortcut feels right because you focus on the predictors. The intercept gives the mistake away, because the extra subtraction belongs in MSE and adjusted $R^2$.

Calculator

KeysDisplay
2ND CLR WORK0.0000
240 ENTER240.0000
400 ENTER400.0000
÷0.6000

Go deeper

You will often see raw $R^2$ stay the same or rise after an analyst adds a predictor to the same regression sample. The reason is mechanical: the expanded model can reproduce the old fitted values, and it can improve them if the new predictor helps explain the dependent variable. Adjusted $R^2$ asks whether that reduction in residual variation is large enough to justify the degrees of freedom the added predictor consumes. If the improvement is too small, adjusted $R^2$ can fall even while raw $R^2$ rises. AIC and BIC ask a similar model-selection question through likelihood and parameter penalties, with BIC charging $\ln n$ per parameter and AIC charging $2$. When you compare either criterion, match the dependent-variable sample and likelihood convention, or the difference may reflect changed data or likelihood scaling rather than a better model.

Check yourself

Practice

An asset manager estimates a monthly active-return regression with an intercept from 100 observations. The model has 3 predictors, SSR of 240, SSE of 160, and -2 ln L of 100. The significance level is 0.05.

Question 1

Using the vignette, what is the model's R^2?

Question 2

Using n=100, k=3, SSE=160, and SST=400.0000, what is adjusted R^2?

Question 3

Using the vignette, which calculation and tail convention is correct for the overall test?

Question 4

The original model has AIC 108.00 and BIC 118.42. A same-sample model with an added predictor has AIC 110.00 and BIC 123.03. Which model is preferred by both criteria?

The added predictor leaves SSR, SSE, and likelihood unchanged while predictors rise from 3 to 4. Which outcome follows?

Revision snapshot

ANOVA starts by splitting the sample's total variation into the part the regression explains and the part left in its errors: $SST = SSR + SSE$. The fraction explained by the model is $R^2 = \frac{SSR}{SST}$. Adjusted R-squared reduces that fraction when the model uses explanatory variables that do not earn their place: $1-\frac{SSE/(n-k-1)}{SST/(n-1)}$.

The overall F-test asks whether the slope coefficients work jointly, not whether one slope works alone. It compares explained variation per slope with unexplained variation per residual degree of freedom: $F=\frac{SSR/k}{SSE/(n-k-1)}$. Use the upper tail. The intercept creates the extra subtraction in residual degrees of freedom, MSE, and adjusted R-squared.

For model comparison, AIC and BIC penalize a model's fit for its number of estimated parameters: $AIC=-2\ln L+2p$ and $BIC=-2\ln L+p\ln n$. Prefer lower values when models use the same dependent-variable sample.

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: Goodness of fit: R-squared, adjusted R-squared, AIC and BIC

  1. 1. A consultant is reviewing the performance presentation of Meridian Balanced Fund, an institutional portfolio with a long-term total-return objective. The consultant must ensure that each reported return measure is consistent with its intended use and with the timing of external cash flows. The fund's investment committee evaluates the manager's skill using time-weighted returns because the plan sponsor, rather than the manager, determines the timing and amount of contributions and withdrawals. For participant-level reporting, however, the sponsor also calculates money-weighted returns to capture the investment experience associated with actual cash flows. The consultant first reviews a security purchased at the beginning of a measurement period. The security pays one cash distribution at the end of the period, and there are no taxes, transaction costs, or interim reinvestment assumptions. The holding-period return must therefore incorporate both the price change and the distribution received. The consultant next examines the fund's returns over two consecutive years. No external cash flows occur during this two-year interval. The committee asks for an annualized measure of compound growth rather than an estimate of the expected return for a single future year. The consultant notes that an arithmetic average would not capture the reduction in terminal wealth caused by return variability. A separate portfolio account is used to illustrate two distinct external-cash-flow scenarios. In the first scenario, the account makes a large sponsor-directed withdrawal at the end of Year 1, immediately after the account is valued; the withdrawn amount is not available for investment during Year 2. To evaluate the manager independently of the sponsor's cash-flow decision, the consultant divides the evaluation horizon into subperiods at the external cash-flow date and geometrically links the subperiod returns to compute a time-weighted return. In a second, separate scenario, the same account instead receives a large sponsor-directed contribution at the end of Year 1, immediately after valuation, and the contribution is available for investment throughout Year 2; the consultant uses this scenario to compute the money-weighted (dollar-weighted) return, which reflects the actual dollar experience of the investor, including the timing of the cash flow. All valuations are stated after management expenses, and no other contributions or withdrawals occur in either scenario. Finally, the committee requests the fund's inflation-adjusted annual return. The consultant intends to use the exact relation between nominal return, inflation, and real return. The committee chair proposes simply subtracting inflation from the nominal return, but the consultant explains that this is only an approximation because the exact calculation uses wealth relatives. Exhibit 1 contains all numerical information required for the six analyses.

    • 2. The Northstar Investment Office oversees a balanced fund and several specialist equity mandates. The chief investment officer asks analyst Daniel Okafor to evaluate the balanced fund's annual performance, estimate its current total risk, and review the benchmark assigned to a specialist manager. The balanced fund began the year with USD 10 million. Its quarterly valuations and external cash flows are reported in Exhibit 1. Each external flow occurred immediately after the associated valuation, and no other external flows occurred. Okafor notes that the investment office seeks a return measure that removes the effect of the timing and size of client-directed contributions and withdrawals. The valuation figures are net of transaction costs but before investment-management fees. For the requested calculation, no annualization beyond geometrically linking the four quarterly holding-period returns is necessary. To review different measures of central tendency, Okafor separately examines a strategy with quarterly returns of 6%, −2%, 5%, and 3%. He observes that the return distribution is not constant across quarters and wants to distinguish the arithmetic mean from the geometric mean and median. The investment office specifically requests the single-period arithmetic mean for use as an estimate of an expected quarterly return. The balanced fund currently allocates 60% to global equities and 40% to global bonds. Exhibit 2 presents annualized volatility and correlation estimates. The estimates are based on returns expressed in the same currency and periodicity. Okafor is instructed to use the standard two-asset portfolio variance formula, including the covariance term, and to assume the stated weights remain constant. Northstar also employs a Global Small-Cap Manager whose mandate permits investment in liquid small-cap equities across developed and emerging markets. The manager does not strategically allocate to large-cap equities and has no domestic-country restriction. The benchmark must be investable, measurable, specified in advance, and representative of the manager's normal opportunity set. Exhibit 3 describes three available indexes. The investment office wants the benchmark that best permits an assessment of the manager's skill without introducing a persistent capitalization or geographic mismatch.

      • 3. Elena Liu manages the Meridian Fund, a domestic large-cap equity portfolio. The investment policy permits active security selection and sector allocation but requires broad diversification. Liu does not control client contributions or withdrawals, which are initiated by the fund sponsor. Performance is reported after management fees but before taxes. A performance analyst is preparing the annual review using the quarterly returns in Exhibit 1. Because the fund's market value changes materially when the sponsor contributes or withdraws capital, the analyst must select a return measure that isolates Liu's investment decisions. The analyst also plans to report the arithmetic mean and sample standard deviation of the quarterly fund returns. Returns are assumed independently observed for this calculation, and percentages may be used directly because all observations use the same quarterly frequency. The sponsor asks whether the Technology Index should replace the Broad Equity Index as the performance benchmark. The sponsor notes that technology was the fund's largest sector during part of the year. Liu responds that the technology weight remained within the policy range shown in Exhibit 2 and that most fund assets remained distributed across other domestic large-cap sectors. The fund does not use leverage or derivatives to change its systematic equity exposure. The performance analyst makes three observations. First, adding periodic returns is acceptable for estimating an arithmetic average but not for calculating compounded wealth growth. Second, a money-weighted return reflects both investment performance and the timing of sponsor-directed cash flows. Third, an appropriate benchmark should be compatible with the mandate, measurable, specified in advance, and representative of the manager's opportunity set. The analyst will use the risk-free rate only in a separate risk-adjusted performance analysis, not as the fund's primary policy benchmark.

        • 4. Cascade Asset Management operates a domestic small-cap equity fund managed by Elena Cho. The fund's mandate permits investments only in publicly traded domestic companies classified as small capitalization when purchased. The mandate requires Cho to pursue long-term capital appreciation and dividend income. Fund returns reported to clients include reinvested dividends and are calculated before investment-management fees but after transaction costs. During the year, clients made a USD 10 million contribution and a USD 5 million withdrawal. Cho had no discretion over either the amount or timing of these external cash flows. Cascade's performance analyst records each external flow immediately before the applicable quarter-end valuation. Exhibit 1 reports the values needed to calculate each quarterly return using the ending-value adjustment convention appropriate for that timing. The investment committee asks the analyst to calculate the fund's annual time-weighted return. It also requests the annualized arithmetic mean of the four quarterly returns for use as a one-period expected-return estimate. The analyst notes that the annualized arithmetic mean should not be interpreted as the realized compounded return for the year. Cascade currently compares the fund with a broad domestic equity index. Cho argues that this index contains large- and mid-cap companies that she cannot purchase under the mandate. The committee therefore considers the alternatives in Exhibit 2. All three indices are independently maintained, transparent, and available for passive investment. The fund does not use leverage, derivatives, or foreign securities. A committee member proposes using the fund's money-weighted return to assess Cho because it reflects the actual growth experienced by the fund. The performance analyst responds that money-weighted return is affected by the size and timing of external cash flows. Because clients, rather than Cho, determine those flows, the analyst recommends a return measure that isolates the performance of Cho's investment decisions. No taxes are included in any return calculation.

          • 5. Meridian Advisory is reviewing performance information for several client accounts. An analyst is instructed to use return measures that are consistent with the economic question being evaluated. For an individual security held without interim trading, the analyst must measure the investor's total gain relative to the initial investment. For an account affected by an external contribution, the analyst must evaluate the manager independently of the amount and timing of the client's contribution. Exhibit 1 provides data for a stock, a balanced account, and a prospective two-asset portfolio. The stock was purchased at the beginning of the year and sold immediately after its year-end dividend was received. There were no taxes, transaction costs, or other distributions. The balanced account received one external contribution exactly at midyear. Its value of USD 10.80 million was measured immediately before the contribution, and no other external cash flows occurred. The year-end value was measured after all investment gains and losses for the second half of the year. The investment committee is also considering a two-asset portfolio. The weights in Exhibit 1 are market-value weights and sum to 100%. The standard deviations and correlation are estimated using annual returns and are expected to remain stable. The committee wants the total portfolio standard deviation, including the effect of covariance, rather than a weighted average of the individual standard deviations. Separately, Meridian advises an absolute-return fund described in Exhibit 2. A consultant proposes using a broad domestic equity index because the fund trades equity securities. Another consultant proposes using the median return of market-neutral peers. The investment committee states that the selected benchmark should represent the mandate rather than merely the securities traded or the returns achieved by competitors. All returns in the case are stated before tax, and no currency translation is required.

            • 6. Meridian Asset Management operates a global small-cap equity fund for institutional investors. The mandate permits investments in developed and emerging markets but restricts the manager to securities classified as small-cap at the time of purchase. The fund is fully invested, uses no leverage, and is evaluated in USD. Management wants reported performance to separate the manager's investment decisions from the timing of external client contributions and withdrawals. Exhibit 1 presents the quarterly portfolio returns and the only external cash flow during the year. Returns are measured after transaction costs but before management fees. The USD 20 million contribution was deposited immediately before the beginning of Q2 and remained invested for the rest of the year. The reported quarterly returns already reflect the portfolio values immediately before each external cash flow, so no additional cash-flow adjustment is needed when linking the subperiod returns. The investment committee is also reviewing the fund's benchmark. The committee specifies that an acceptable benchmark must be unambiguous, investable, measurable, specified in advance, and consistent with the manager's global small-cap opportunity set. The manager has no strategic allocation to large- or mid-cap companies and is not expected to concentrate investments in its home market. Three candidate benchmarks are described in Exhibit 2. Finally, the risk team estimates one-day value at risk using a parametric method. For this analysis, continuously compounded daily portfolio returns are assumed to be independently and normally distributed with the parameters in Exhibit 3. Value at risk is to be reported as a positive percentage loss at the fifth percentile of the daily return distribution. The risk team recognizes that the normal model may not capture fat tails, but the committee asks the analyst to apply the stated model rather than make a historical or simulation-based adjustment.

              • 7. Northbridge Pension Fund has closed its defined benefit plan to new members and is increasingly focused on meeting scheduled benefit payments. The investment committee asks analyst Elena Morris to review several return calculations and assess the benchmark used for a liability-matching mandate. The return calculations and the fund's principal liability are presented in Exhibit 1. All reported periodic returns are net of transaction costs but before investment-management fees, and no external cash flow occurs within a quarter. Consequently, each quarterly return represents a complete subperiod return that can be geometrically linked without an additional cash-flow adjustment. Morris first evaluates the fund's annual performance. One committee member proposes adding the four quarterly returns, arguing that the result is sufficiently accurate because each return covers an equal period. Morris notes that the committee requested the actual time-weighted return rather than an arithmetic approximation. She therefore intends to compound the quarterly wealth relatives. The committee also asks Morris to assess a completed share investment. The fund purchased one share at the beginning of the measurement period, received the stated cash dividend during the period, and sold the share at the end of the period. There were no taxes, transaction fees, or additional distributions. The requested holding-period return must incorporate all cash income and price appreciation relative to the initial purchase price. For a separate strategic analysis, the committee wants the purchasing-power increase from an investment that earned the nominal return in Exhibit 1. It instructs Morris to use the exact relationship between nominal return, real return, and inflation rather than the common subtraction approximation. Finally, Northbridge must select a benchmark for a liability-matching portfolio dedicated solely to the single payment described in Exhibit 1. The benchmark must be investable, specified in advance, measurable, and consistent with the amount and timing of that liability. Northbridge has sufficient assets to fund the payment and faces no tax on investment income. Exhibit 2 describes the three available benchmarks. The committee is not seeking a benchmark for the fund's return-seeking portfolio or for comparing Northbridge with peer institutions.

                • 8. Meridian Asset Consulting is reviewing the performance and risk of a balanced fund used by several institutional clients. The fund reports total returns after transaction costs but before management fees. An analyst first evaluates the fund's quarterly performance relative to its policy benchmark. Because the quarterly returns in Exhibit 1 cover consecutive non-overlapping periods and no external cash flows occur within the fund-level return series, the analyst must compound the returns when calculating the annual holding-period return. The analyst separately reviews an institutional account invested entirely in the fund. The account sponsor controls all contributions and withdrawals, and the manager receives no advance discretion over either their amount or timing. Exhibit 2 shows the account values and the only external cash flow during the year. The contribution occurred exactly halfway through the year, immediately after the pre-contribution account value was recorded. No other cash flows or fees were charged to the account. The consulting firm's policy is to evaluate the manager using time-weighted performance because the sponsor, rather than the manager, determines external cash flows. To assess whether the manager has generated positive active performance, the analyst uses 60 monthly active returns. The analyst specifies the hypotheses as H0: mean active return is less than or equal to zero and H1: mean active return is greater than zero. The test is conducted at the 5% significance level, and the reported standard error already incorporates the sample size. The consulting agreement also states that active performance must exceed a monthly fee hurdle of 0.25% to be economically sufficient. Statistical significance alone does not establish that the manager has covered this hurdle. Finally, the analyst estimates a one-month parametric value at risk using the portfolio inputs in Exhibit 3. For this calculation, monthly returns are assumed to be normally distributed and the quantile is calculated using the stated expected return and standard deviation. Value at risk is reported as a positive percentage loss rather than as the signed lower-tail return.

                  Flashcards: Goodness of fit: R-squared, adjusted R-squared, AIC and BIC

                  1. 1. What do both AIC and BIC evaluate?

                    Show answer

                    the quality of model fit among competing models for the same dependent variable

                  2. 2. Which has a higher penalty for overfitting: AIC or BIC?

                    Show answer

                    BIC

                  3. 3. What IC does a perfectly wrong manager have?

                    Show answer

                    \-1

                  4. 4. When is RMSE used?

                    Show answer

                    when the target variable is continuous

                  5. 5. What are the types of influential data points?

                    Show answer

                    - high leverage - outlier

                  6. 6. What is an outlier?

                    Show answer

                    too high or low y-value

                  7. 7. What is a Type 1 error?

                    Show answer

                    rejection of null when it is true

                  8. 8. What is AIC for?

                    Show answer

                    better forecast, want lower

                  9. 9. What does leverage impact?

                    Show answer

                    the trend of the regression line

                  10. 10. What kind of performance is the most important indicator of a model's real-world forecasting ability?

                    Show answer

                    out-of-sample

                  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