ADescribe · Guide test 107
Jarque–Bera test
Tests normality through departures of sample skewness and kurtosis from their normal values.
Do it in CodeSplash
In the app, set it up in Analyze with one of these methods:
- Normality tests (battery) — Is a numeric variable (or each group of it) plausibly normal — by tests and by shape?
- Normality test (one test) — Is a numeric variable (or each group of it) plausibly normally distributed?
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
Sinh–arcsinh shape: 0 is symmetric.
Below 1: heavier tails than normal; 1 with ε = 0 is exactly normal.
Your data
Drag a point or use ↑/↓ to change itIf H₀ were true
- The reference: how JB varies across samples when H₀ is true.
- Your statistic, from the data above.
- The p-value: the area at least as extreme as yours (p = .326).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
The formula
With your numbers
- sample skewness
- 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 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
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.
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))
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
- SciPy — SciPy · jarque_beradocs.scipy.org
- scipy.stats.jarque_beradocs.scipy.org
- jarque.bera.testsearch.r-project.org
- 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.