D’Agostino-Pearson Test

The D’Agostino-Pearson Test (D’Agostino and Pearson, 1973) combines the skewness and the kurtosis of the returns into one omnibus statistic. Like the Jarque-Bera test it asks whether the returns are as symmetric and as thin-tailed as a normal sample, but it first transforms each moment into a standard normal variable, so it stays valid in small samples where the chi-squared approximation of the Jarque-Bera test does not.

The formula for the D’Agostino-Pearson Test starts from the sample skewness \(\sqrt{b_{1}}\) and the sample kurtosis \(b_{2}\), with \(m_{k}\) the k-th central moment of the returns (with n in the denominator):

\[\sqrt{b_{1}} = \frac{m_{3}}{m_{2}^{3/2}}\] \[b_{2} = \frac{m_{4}}{m_{2}^{2}}\]

Each moment is then turned into a standard normal variable under normality: the skewness into \(Z_{1}\) by the transformation of D’Agostino (1970) and the kurtosis into \(Z_{2}\) by that of Anscombe and Glynn (1983). The statistic \(K^{2}\) sums their squares:

\[K^{2} = Z_{1}^{2} + Z_{2}^{2}\]

Under normality \(K^{2}\) is chi-squared with 2 degrees of freedom. A large \(K^{2}\), with a p-value below the significance level, rejects normality, and \(Z_{1}\) and \(Z_{2}\) show whether the skewness or the tails cause it. A distribution with the skewness and kurtosis of the normal but another shape passes the test.

A normality test asks whether a sample could come from a normal distribution: the null hypothesis is that it does, the alternative that it comes from any other distribution. The question matters because the Gaussian Value at Risk, the Black-Scholes model and many statistical tests assume normally distributed returns, while returns tend to be skewed and fat-tailed. The tests differ in the departure from normality they are most sensitive to. Every one of them reads the same way: a p-value below the chosen significance level (such as 0.05) rejects normality, while a higher p-value only means the sample gives no evidence against it, not that the returns are normal. In a long sample a test rejects even a departure too small to matter, and in a short one it misses a large one.

Also known as: D’Agostino K-squared test, omnibus normality test, normaltest.

In the Finance Toolkit this is get_normality_test with method="dagostino_pearson", the same function as Normality Test.

Example · ^GSPC, BTCUSD, TLT · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_normality_test:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["^GSPC", "BTCUSD", "TLT"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.econometrics.get_normality_test(method="dagostino_pearson", period="monthly")

Which returns:

Using Your Own Data

get_normality_test runs on any data, not only prices: ratios, economic indicators, yield curves or your own dataset. Pass a DataFrame, a Series or a dictionary of them to Econometrics as data, with the dates in the rows or the columns, and set changes to how its changes are calculated: "percentage", "log", "difference" for rates and ratios, or None when the data are changes already. For example, for the monthly unemployment rates of the United States and Germany:

from financetoolkit import Economics, Econometrics

economics = Economics(start_date="2000-01-01")

unemployment = economics.get_unemployment_rate(
    countries=["United States", "Germany"], period="monthly"
)

econometrics = Econometrics(data=unemployment, changes="difference")

econometrics.get_normality_test()

References

  • Paper D’Agostino, R.B. and Pearson, E.S. (1973). “Tests for Departure from Normality. Empirical Results for the Distributions of b₂ and √b₁.” Biometrika, 60(3), 613-622.
  • Paper Anscombe, F.J. and Glynn, W.J. (1983). “Distribution of the Kurtosis Statistic b₂ for Normal Samples.” Biometrika, 70(1), 227-234.
  • Library Referenced against scipy’s normaltest (D’Agostino-Pearson Test)
Share