Skip to content

ADescribe · Guide test 107

Jarque–Bera test

Tests normality through departures of sample skewness and kurtosis from their normal values.

Runs in CodeSplashPython example validatedR example validated

Do it in CodeSplash

In the app, set it up in Analyze with one of these methods:

In Normality test (one test), choose Test = Jarque–Bera.

Do it in CodeSplash Run this test on your own data, in Python or R.

Bench

Change the design, drag the data, move α. The statistic, its reference distribution and the verdict follow.

Bench · Jarque–Bera test

40
0.60

Sinh–arcsinh shape: 0 is symmetric.

1.00

Below 1: heavier tails than normal; 1 with ε = 0 is exactly normal.

0.050

Your data

Drag a point or use ↑/↓ to change it
Sample · n = 40 · mean 0.63

If H₀ were true

JB = 2.24
  1. The reference: how JB varies across samples when H₀ is true.
  2. Your statistic, from the data above.
  3. The p-value: the area at least as extreme as yours (p = .326).
  4. The hatched rejection region at α = .050: statistics landing here reject H₀.

The formula

JB=n6(S2+(K−3)24)∼χ22JB = \dfrac{n}{6}\left(S^2 + \dfrac{(K-3)^2}{4}\right) \sim \chi^2_2

With your numbers

JB=406(0.472+(2.32−3)24)=2.24JB = \dfrac{40}{6}\left(0.47^2 + \dfrac{(2.32-3)^2}{4}\right) = 2.24
SS
sample skewness
KK
sample kurtosis (3 for normal)

The verdict

JB(2) = 2.24, p = .326

p > α = .050: compatible with H₀

An asymptotic test popular in econometrics: in small samples its χ² reference is poor and it under-rejects.

Statistic
2.239
p-value
0.3264
Jarque–Bera test on Sample: n = 40: JB(2) = 2.24, p = .326. The p-value is above α = .050, so the data are compatible with H0.

Jarque–Bera test on Sample: n = 40: JB(2) = 2.24, p = .326. The p-value is above α = .050, so the data are compatible with H₀.

Question and hypotheses

H0: normality through its skewness zero and kurtosis three restrictions.

Assumptions

Independent identically distributed continuous observations; H0 is a normal distribution with unknown mean and positive variance. Censoring, truncation, clustering and fitted regression residuals require different calibration. Reliable χ² calibration is asymptotic and can require large samples.

Formula

JB=n6[g12+(g2−3)24]g1=m3m23/2g2=m4m22\begin{gathered}JB=\frac n6\left[g_1^2+\frac{(g_2-3)^2}{4}\right]\\[5pt] g_1=\frac{m_3}{m_2^{3/2}}\\[5pt] g_2=\frac{m_4}{m_2^2}\end{gathered}

Parameters and notation

mr=n⁻¹Σ(xi−x̄)^r. Use moment kurtosis g2, not already excess kurtosis, in the displayed formula.

Structure of the method

Estimate moment skewness and Pearson kurtosis, form their squared departures from zero and three with the Jarque–Bera weights, and compare the resulting statistic with chi-square-two asymptotically. This moment test differs from finite-sample-transformed D’Agostino–Pearson even though both examine skewness and tails.

Estimated and nuisance parameters

Estimate the mean and central moments of orders two through four using the specified denominator convention. Pearson kurtosis is three under a Gaussian distribution; excess kurtosis is zero. Mixing these two definitions or substituting bias-corrected moments without matching calibration changes the implementation.

Settings and design choices

Specify raw observations versus model residuals, moment convention, and asymptotic versus adjusted or simulated calibration. The original 60-observation examples demonstrate API use, not reliable large-sample justification. The SciPy documentation explicitly emphasizes that the chi-square approximation needs a large sample.

Fitting and adaptation

Re-estimate moments for each independent sample. A finite-sample normal Monte Carlo calibration can be based on the observed sample size; regression-residual versions should reproduce model fitting and any relevant time-series assumptions. Fine-tuning is irrelevant, and variant-specific adjustments must be named.

Sensitivity and robustness

Heavy tails and isolated extremes can dominate fourth moments. Normal skewness and kurtosis do not uniquely imply a normal distribution, while a statistically detectable moment difference may be practically unimportant. Serial dependence or heteroskedastic residuals require a model-aware variant rather than the iid reference.

How to use and calibrate

Compare with χ²2 asymptotically; adjusted versions and model residual versions require their stated calibration.

Example application

Test a large sample for skewness and tail departures from normality.

Interpretation and pitfalls

Watch out

Normal skewness and kurtosis do not characterize all distributions uniquely. Small sample chi square p values can be inaccurate.

What changed in edition 2

  • New sections: structure of the method, estimated and nuisance parameters, settings and design choices, fitting and adaptation, sensitivity and robustness.

Python and R

Normality is assessed for independent observations. For model diagnostics, test residual assumptions in context; do not automatically choose a downstream test based on a preliminary normality p-value.

Python · native

Validated — Executed successfully in the validation environment · needs numpy, scipy

import numpy as np
from scipy import stats
rng = np.random.default_rng(2026)
x=rng.normal(size=60)
print(stats.jarque_bera(x))
Output
SignificanceResult(statistic=np.float64(3.5824891363679634), pvalue=np.float64(0.16675250560472846))
R

Validated — Executed successfully in the validation environment · needs tseries

set.seed(2026)
x <- rnorm(60)
print(tseries::jarque.bera.test(x))
Output
	Jarque Bera Test

data:  x
X-squared = 0.10264, df = 2, p-value = 0.95

Sources

Statistics guide v4 (historical):
R: Executed successfully in the validation environment
Reference's record:
Edition 2 review: Python: executed · R: not executed (Rscript unavailable). Python: Ran in the reference's review, on this exact code. R: Reviewed but not run: R wasn't available to the reference's authors.

From the CodeSplash statistics guide (v4), entry 107, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT107.