Jarque-Bera statistics combine squared sample skewness with squared excess kurtosis. The construction checks two moment features associated with a normal distribution rather than inspecting a histogram by eye. Understanding its two components prevents several common reading errors: symmetry alone is insufficient, the sign of skewness disappears after squaring, and the reported statistic is not itself a probability of normality.
The SciPy 1.16 jarque_bera documentation describes a check of skewness and kurtosis against normal-distribution values. Skewness measures an asymmetry feature of the sample. Ordinary kurtosis uses a fourth-moment ratio with a normal reference of three. Excess kurtosis subtracts three, giving a normal reference of zero.
Those two conventions require different-looking formulas for the same construction. If K denotes ordinary kurtosis, the relevant deviation is K minus three. If k denotes excess kurtosis, it is already that deviation. Subtracting three again after receiving an excess-kurtosis value would change the statistic and create a spurious difference from the intended reference.
The moment ratios also explain why changing a measurement's unit does not simply multiply this statistic by the unit conversion. Skewness divides a centered third moment by the variance raised to the three-halves power. Ordinary kurtosis divides a centered fourth moment by the squared variance. For a positive scale conversion, the corresponding powers cancel in these ratios. A constant array is a different case because its variance is zero; the ratios do not supply the usual informative shape summary.

The original SciPy implementation calculates skewness s and excess kurtosis k from centered observations. Its statistic is the sample count divided by six, multiplied by s squared plus k squared divided by four. Each squared contribution is nonnegative. Opposite signs cannot cancel across the two components.
For an explicitly hypothetical summary with six thousand observations, zero skewness and ordinary kurtosis five, excess kurtosis is two. The bracket becomes zero plus four divided by four, or one. The statistic is then one thousand. This is a calculation from invented summary features, not a test run on six thousand collected robot observations.
In that invented summary, the skewness term is zero but the excess-kurtosis term is not. A distribution can therefore be symmetric and still depart from the moment values used by this statistic. Looking only for a longer left or right tail would miss the second component of the calculation.
For another synthetic summary, retain the same count but use skewness one half and ordinary kurtosis three. The skewness term contributes one quarter and the excess-kurtosis term contributes zero, giving a statistic of two hundred fifty. Changing the skewness to minus one half leaves the squared contribution and the final statistic unchanged. The direction of asymmetry must be read from the skewness value, not recovered from the combined statistic.

The cited documentation warns that the usual reference calculation relies on a sufficiently large sample and explicitly mentions counts above two thousand. The implementation uses a chi-square reference with two degrees of freedom. This is an asymptotic relationship, not a declaration that the reference suddenly becomes exact at a particular integer count.
Sample size also appears directly in the statistic. Holding the two hypothetical moment features fixed while doubling the count doubles the statistic. This arithmetic explains why a detectable departure and the practical size of that departure are different report fields. It does not mean that simply duplicating observations creates a larger independent sample with better evidence.
A p-value based on the reference distribution is not the probability that the observations came from a normal population. A nonsignificant result also does not certify every distributional feature as normal. It says that this particular calculation has not supplied the chosen level of evidence against its null under the stated assumptions.
For a useful offline robotics-data note, retain the sample count, skewness, the kurtosis convention and the calculated statistic beside any probability value. A plot of the observed distribution and a description of how readings were sampled can answer questions that two moments cannot. If the observations are dependent or include missing values, document how that situation was handled rather than treating the array length alone as the effective information.
The two illustrations here explain conventions and synthetic component arithmetic. They contain no measured histogram and make no claim about the noise of a particular sensor. Related statistical explanations appear in the robot statistics section and the technical article archive.