Analysis of Variance (ANOVA)
Analysis of variance, usually called ANOVA, is a statistical technique for testing whether the average values of three or more groups are meaningfully different from each other, or whether the differences observed could plausibly be explained by random chance alone. It works by comparing the variation between the groups' averages to the variation within each group, producing a test statistic (the F-statistic) and a p-value that indicates how likely the observed pattern is if there were actually no real difference. ANOVA was developed by the statistician Ronald Fisher in the 1920s, originally to analyze agricultural field experiments.
This matters to anyone doing serious quantitative research on trading strategies or markets, because it's a standard tool for checking whether a pattern is statistically meaningful rather than a coincidence of the specific data sample used. A researcher might use ANOVA to test whether a strategy's average return genuinely differs across several market regimes, several asset classes, or several time periods, rather than assuming any observed difference is real just because the numbers look different on the surface.
For example, a quant researcher tests whether a strategy's average monthly return differs across four market regimes — bull, bear, high-volatility, and low-volatility — using 24 months of data for each. Running ANOVA on the four groups might produce a p-value of 0.02, which would normally be interpreted as statistically significant at the common 5% threshold, suggesting the differences between regimes are unlikely to be pure chance.
The reason to be careful applying it to markets is that ANOVA rests on assumptions financial data routinely breaks. It expects observations to be independent, drawn from roughly normal distributions, with similar variance across the groups being compared. Returns are reliably none of these: volatility clusters, so variance in a turbulent regime is many times that of a quiet one; returns have fatter tails than a normal distribution, so extreme observations arrive far more often than the test expects; and consecutive observations are not independent. Every one of these violations pushes in the same direction — it makes a p-value look smaller and a result look more significant than the data supports. The usual responses are to use tests that do not assume normality, to compare against a distribution built by reshuffling the data itself, or to use methods designed for the way variance actually behaves in returns.
The second trap has nothing to do with the test and everything to do with how many times it is run. A p-value of 0.05 means a one-in-twenty chance of seeing a result this strong when nothing real is there — so testing twenty variations of a strategy across four regimes and reporting the one that came out significant is a procedure guaranteed to manufacture significance from pure noise. This is the mechanism behind most backtested strategies that work beautifully until they are traded with money. The defences are the ordinary ones: decide what will be tested before looking, count every test that was run rather than only the survivor, adjust the threshold for the number of comparisons, and hold back data the search never touched.