- ANOVA & Hypothesis Testing: An Overview
- Choosing a Hypothesis Test and Setting It Up
- ANOVA, Regression Variation, and the F-Test
- Worked ANOVA and Hypothesis Test
- p-Values, Confidence Intervals, Errors, and Power
- Assumptions, Residual Diagnostics, and Nonparametric Alternatives
- Economic Significance and Investment Interpretation
- Common Mistakes and Exam Traps
- ANOVA & Hypothesis Testing: Q&A
- Level 1 CFA Exam Takeaway: ANOVA & Hypothesis Testing
ANOVA & Hypothesis Testing: An Overview
Regression analysis helps an analyst describe how a dependent variable changes with one or more explanatory variables. Hypothesis testing asks whether the estimated relationship is distinguishable from zero or another stated value, given the sample evidence. Analysis of variance, or ANOVA, organizes the variation in the dependent variable so that the analyst can evaluate the regression as a whole.
In a regression setting, an individual coefficient is commonly tested with a t-test. The overall explanatory power of a regression with several independent variables is tested with an F-test. The tests answer different questions: a t-test focuses on one coefficient, whereas the F-test assesses whether the explanatory variables are jointly useful.
Statistical evidence is only one input to an investment decision. A relationship may be statistically significant yet too small, unstable, costly to trade, or economically implausible to use. A sound conclusion combines the test result, the model assumptions, and the investment meaning rather than treating a low p-value as a trading signal by itself.
Choosing a Hypothesis Test and Setting It Up
Start with a precise question and identify the parameter being tested. In a regression of return on market exposure, an analyst might ask whether one factor coefficient differs from zero. In a regression with several factors, the analyst might ask whether the factors jointly explain any variation in return. The research question determines the null and alternative hypotheses, not the other way around.
The null hypothesis, written , is the benchmark claim tested against the data. The alternative, , is the competing claim. A two-sided coefficient test usually takes the form versus ; it asks whether the coefficient is either positive or negative. A one-sided alternative is appropriate only when the direction was justified before seeing the result.
For a regression coefficient, the t-statistic compares the estimate with its hypothesized value in standard-error units. The standard error measures sampling uncertainty: a larger standard error makes the same estimated coefficient less persuasive. Match the degrees of freedom to the regression model, which are typically for a model with observations and independent variables.
- – estimated coefficient for independent variable
- – hypothesized population value of that coefficient
- – standard error of the estimated coefficient
Choose a significance level, , before examining the result. The level is the maximum probability of a Type I error that the analyst is willing to accept under the test design. At a 5% level, reject a two-sided null when the absolute t-statistic exceeds the applicable critical value, or equivalently when the p-value is below 0.05.

ANOVA, Regression Variation, and the F-Test
ANOVA separates the observed variation in the dependent variable into variation explained by the regression and residual variation left unexplained. The accounting identity is total variation equals explained variation plus error variation. A good fit typically has a relatively large explained component, but the decomposition alone does not establish that the model is useful outside the sample.
The sum of squares total, , measures the total dispersion of observed dependent-variable values around their mean. The sum of squares regression, , measures the portion associated with fitted values from the regression. The sum of squares error, , measures the portion left in the residuals. Their relationship is .
- – sum of squares total
- – sum of squares regression, or explained variation
- – sum of squares error, or unexplained variation
The F-statistic compares average explained variation with average unexplained variation. For a regression with independent variables, its numerator degrees of freedom are , and its denominator degrees of freedom are . A large F-statistic is evidence against the joint null that all slope coefficients equal zero; it does not identify which individual coefficient matters.
- – F-statistic for the overall regression
- – mean square regression, calculated as
- – mean square error, calculated as
- – number of observations
- – number of independent variables
The F-test uses a right-tailed rejection region because the statistic cannot be negative. In a simple regression with one independent variable, the overall F-statistic equals the square of the t-statistic for the slope coefficient. Use the t-test for the individual slope and the F-test for the overall model; in multiple regression, an overall F-test can reject even when no single coefficient is significant on its own because of correlated explanatory variables.
Worked ANOVA and Hypothesis Test
Suppose an analyst regresses a portfolio’s monthly excess returns on two preselected risk factors using 12 monthly observations. The overall test is against : at least one slope coefficient differs from zero. The null is a joint claim, so rejecting it does not mean that both factors are individually significant.
Assume the regression produces and . The total variation is therefore . With and , the regression has 2 numerator degrees of freedom and 9 denominator degrees of freedom.
- – explained sum of squares in the sample
- – residual sum of squares in the sample
- – number of factors in the regression
- – number of monthly observations
At the 5% significance level, the critical value for an F distribution with 2 and 9 degrees of freedom is approximately 4.26. Because exceeds , reject the null. The corresponding p-value is approximately 0.007, which is also below 0.05. In plain English, the sample provides evidence that the two factors jointly explain some variation in the portfolio’s monthly excess return.
The coefficient of determination is , so the fitted model explains about 66.7% of the in-sample variation. This is a descriptive result, not a guarantee of forecast accuracy. The analyst should next examine individual coefficients, residual behavior, factor definitions, out-of-sample performance, and whether the magnitude of the relationship is economically useful.
| Regression, or explained | 2 | 0.0180 | 0.0090 | SSR divided by k |
| Error, or unexplained | 9 | 0.0090 | 0.0010 | SSE divided by n minus k minus one |
| Total | 11 | 0.0270 | Not applicable | SST equals SSR plus SSE |
| Overall F-test | 2 and 9 | F is 9.00 | MSR divided by MSE | Reject the 5% joint null; p-value is approximately 0.007 |
p-Values, Confidence Intervals, Errors, and Power
A p-value is the probability, assuming the null hypothesis is true, of observing a test statistic at least as extreme as the one calculated. It is not the probability that the null is true, and it is not a measure of economic importance. Compare the p-value with the chosen significance level: reject when the p-value is below .
A confidence interval presents a related way to summarize a two-sided coefficient test. At a given confidence level, reject the null value when it falls outside the corresponding interval. For example, a 95% confidence interval for a coefficient that excludes zero leads to rejection of a two-sided zero-coefficient null at the 5% significance level, provided the same assumptions and degrees of freedom apply.
- – estimated coefficient for independent variable
- – two-sided critical t-value
- – standard error of the estimated coefficient
- – selected significance level
A Type I error occurs when the analyst rejects a true null hypothesis. Its probability is controlled by the chosen under the model assumptions. A Type II error occurs when the analyst fails to reject a false null. Failing to reject does not prove that there is no relationship; the data may simply be too noisy or too limited to detect it.
Test power is the probability of rejecting a false null, so it equals one minus the Type II error probability. Power generally rises when the true effect is larger, the sample size increases, the data are less variable, or the significance level is less stringent. Reducing lowers Type I error risk but, holding other factors constant, also reduces power.
The prediction interval for a future dependent-variable observation is wider than a confidence interval for the conditional mean because it includes both uncertainty about the estimated mean and the new observation’s residual uncertainty. Use a prediction interval when forecasting a future return or other individual outcome, and recognize that the interval becomes wider for a forecast point far from the sample mean of the independent variable.
Assumptions, Residual Diagnostics, and Nonparametric Alternatives
Statistical tests are reliable only to the extent that their assumptions are reasonable. Regression observations should be independent in the way the model assumes, the functional relationship should be appropriately specified, and the residuals should not show an unmodeled pattern. Residuals are the diagnostic evidence because they reveal what the fitted regression failed to explain.
Normal residuals matter especially in small samples for the exact t and F reference distributions. Equal residual variance, called homoskedasticity, supports the usual standard errors; changing residual variance, or heteroskedasticity, can make those standard errors and test results misleading. Serial correlation in time-series residuals can similarly understate uncertainty when monthly or daily observations are related through time.
Inspect a residual plot against fitted values and time. A funnel shape suggests nonconstant variance; runs or cycles can suggest dependence or missing variables; a curved pattern can indicate that a linear specification is inadequate; and extreme points can dominate the regression. Do not treat a mechanically produced ANOVA table as proof that the model is well specified.
An analyst may transform variables, use more appropriate standard-error methods, change the specification, collect more data, or use a robust or nonparametric alternative where appropriate. A nonparametric test can be safer when the data are ordinal, heavily skewed, dominated by outliers, or too inconsistent with distributional assumptions for a parametric procedure to be credible. It may, however, test a different question and can have less power when parametric assumptions actually hold.
Economic Significance and Investment Interpretation
Statistical significance asks whether a result is unlikely under a stated null model. Economic significance asks whether the size of the result matters after considering capital, risk, turnover, taxes, financing, liquidity, and implementation costs. A small coefficient can be statistically significant in a very large sample while still being too small to affect an investment decision.
For example, a factor model may show a reliably positive coefficient for a characteristic, yet the expected incremental return may be less than estimated transaction costs. Conversely, a large expected effect from a small sample may be economically attractive but statistically uncertain. The analyst should report both the estimated magnitude and its uncertainty rather than announcing only that a test passed or failed.
ANOVA and hypothesis tests also do not establish causation. A significant association may arise from omitted variables, data mining, changing market structure, or a relationship that disappears after publication. Use statistical results to discipline judgment, then test whether the relation is robust across periods, economically plausible, and implementable in the relevant portfolio.
Common Mistakes and Exam Traps
Do not confuse with a p-value. The significance level is selected before the test as a decision threshold; the p-value is calculated from the observed statistic. A p-value below supports rejection of , but it does not quantify the probability that the alternative is true.
Do not use the F-test to identify an individual significant slope in a multiple regression. Rejecting the overall null means that at least one slope differs from zero. Use individual t-tests or other coefficient-level analysis to investigate which variables contribute, while remaining alert to multicollinearity and multiple-testing concerns.
Do not reverse the meaning of , , and , or use the wrong degrees of freedom. In a model with independent variables, regression degrees of freedom are , error degrees of freedom are , and total degrees of freedom are . The identity between t-squared and F applies only to a simple regression test of one slope.
Do not infer a reliable forecast merely because is high or an F-test rejects. In-sample fit can be inflated by overfitting, unstable parameters, and unusual observations. Check assumptions and economic relevance before using the result for valuation, risk management, or portfolio construction.
ANOVA & Hypothesis Testing: Q&A
How do you choose the correct hypothesis test?
What is the difference between a p-value and a significance level?
How are confidence intervals related to two-sided tests?
What is the difference between statistical and economic significance?
How do sample size and variance affect test power?
When should a nonparametric test be used?
What does a rejected overall F-test mean in investment terms?
Why can a high R-squared still be a weak investment result?
Level 1 CFA Exam Takeaway: ANOVA & Hypothesis Testing
- Set the null and alternative hypotheses before choosing a test statistic and significance level.
- Use a t-test for an individual regression coefficient and an F-test for the joint significance of regression slopes.
- Remember the ANOVA identity , with F based on .
- Distinguish a p-value from , and distinguish Type I error, Type II error, and test power.
- Treat statistical significance as evidence, not proof of economic value, causation, or forecast reliability.
- Check residual behavior and model assumptions before relying on ANOVA or regression-test results.

