Normality describes whether data follow a normal, bell-shaped distribution; a p value measures how surprising observed data would be if a specified null hypothesis were true. They answer different questions: normality tests assess a distributional assumption, while p values assess evidence against a hypothesis. Neither one, by itself, proves a conclusion.
Formula
This calculator gives a Jarque–Bera (JB) normality-test statistic and an approximate p value from a list of observations. The statistic compares sample skewness and kurtosis with the values expected under normality:
JB = (n/6)[S² + (K − 3)²/4], and, for the large-sample approximation, p ≈ exp(−JB/2).
- n is the number of observations, with no unit.
- S is moment skewness: the average cubed deviation from the mean divided by the cube of the population-form standard deviation; it has no unit.
- K is moment kurtosis: the average fourth-power deviation divided by the fourth power of that standard deviation; it has no unit. A normal distribution has K = 3.
- JB is the test statistic, with no unit. Under the null hypothesis and suitable large-sample conditions, it is compared with a chi-square distribution with 2 degrees of freedom.
- p is the approximate upper-tail probability for that chi-square reference distribution, ranging from 0 to 1.
The list fields use the observations as entered; their units do not affect the test statistic. The formula uses moment skewness and kurtosis calculated with divisor n. Software packages can apply different finite-sample corrections, so their results may differ slightly.
Worked Example
For the default observations −4, −2, −1, 0, 1, 2, and 4:
- There are n = 7 values. Their sum is 0, so the mean is 0. The sum of squared deviations is 42, giving sample standard deviation √(42/6) = 2.64575, shown as 2.646.
- The average cubed deviation is 0 because the observations are symmetric around zero. Thus S = 0.
- The sum of fourth powers is 2(4⁴ + 2⁴ + 1⁴) = 546. The average is 546/7 = 78. The population-form variance is 42/7 = 6, so the average fourth power divided by the squared variance is 78/36 = 2.16667. Therefore K − 3 = −0.83333.
- JB = (7/6)[0² + (−0.83333)²/4] ≈ 0.20255. The corresponding approximate p value is exp(−0.20255/2) ≈ 0.9036, displayed to four decimal places.
The high p value means this test does not find strong evidence against normality for these observations. It does not establish that the underlying data are normal, particularly with only seven values.
Assumptions
- The observations are independent and drawn from the same population; dependence can invalidate the reference distribution.
- The data are numeric, with enough observations for the large-sample chi-square approximation to be useful. The approximation can be unreliable in small samples.
- The calculation uses the Jarque–Bera test and its two-degree-of-freedom asymptotic reference distribution. It does not adjust for fitting model parameters or for multiple tests.
What Normality and a P Value Tell You
“Normality” can refer to a model assumption, a visual description, or a formal hypothesis. In a normal distribution, values cluster symmetrically around the mean, and increasingly extreme values become less common in a predictable way. Many statistical methods do not require every measured variable to be normal. For example, in linear regression, the relevant assumption for conventional small-sample inference concerns model errors or residuals, not necessarily the raw outcome or predictors.
A p value is calculated assuming a null hypothesis and a statistical model. It is the probability of obtaining a test statistic at least as extreme as the observed one if that null and model are correct. A p value is not the probability that the null hypothesis is true, the chance that a result occurred “by chance,” or a measure of how large or important an effect is.
In a normality test, the null hypothesis is that the population follows a normal distribution. A small p value may indicate evidence against that assumption, but the result depends on sample size and the chosen test. A large p value means the data did not provide enough evidence to reject normality; it does not confirm normality.
How to Check Normality in Practice
Use several forms of evidence rather than letting one threshold decide a modeling choice:
- Plot the data. A histogram can show skew or multiple clusters, while a normal Q–Q plot reveals departures from a straight-line pattern, especially in the tails.
- Consider the data source. Look for outliers, measurement limits, time trends, grouping, and repeated observations. These may matter more than a formal normality-test result.
- Choose a test suited to the task. Jarque–Bera focuses on skewness and kurtosis. Shapiro–Wilk is another commonly used test; procedures differ in sensitivity and sample-size behavior.
- Assess the model you intend to use. For regression or analysis of variance, inspect residuals and relevant assumptions, rather than testing unrelated raw variables.
- Report the method and context. State the test, sample size, test statistic, p value, and any important visual findings. Avoid reporting only “normal” or “not normal.”
Choosing a Test and Interpreting Results
The calculator is suitable for a quick Jarque–Bera calculation when data are independent and the asymptotic approximation is reasonable. It is not a substitute for software designed for a particular analysis. If the sample is small, compare a Q–Q plot with a test intended for small samples, and treat the test’s p value cautiously. With large samples, tests can flag small deviations that have little practical effect.
A significance cutoff such as 0.05 is a convention, not a universal boundary between normal and non-normal data. For example, p = 0.04 and p = 0.06 do not represent fundamentally different distributions. Consider the magnitude and type of deviation and whether it affects the conclusions of the planned analysis. Robust methods, bootstrap procedures, or suitable transformations may be useful alternatives, depending on the research question and data structure.
Common Problems and Misconceptions
- Confusing p with probability of the null: p = 0.03 does not mean there is a 3% chance the data are normal or that the null is true.
- Equating “not rejected” with “proved normal”: low power, especially in small samples, can leave substantial departures undetected.
- Ignoring dependence: clustered, repeated, or time-series observations are not independent merely because they are listed as separate numbers.
- Testing the wrong quantity: normality of predictors is usually not the key assumption in ordinary regression; residual behavior is more relevant to its standard inference.
- Overreacting to outliers: investigate whether an extreme value reflects an error, a real rare event, or a different population before removing or transforming it.
Finally, “normality test” and “p-value test” are not competing categories: a normality test itself produces a p value. That value summarizes evidence under the test’s assumptions; plots and subject-matter reasoning help determine what the evidence means.
Frequently Asked Questions
What does a normality-test p value mean?
It is the probability, assuming the population is normal and the test’s other assumptions hold, of obtaining a test statistic at least as extreme as the observed one. It is not the probability that the data are normal.
Is p > 0.05 proof that my data are normal?
No. It means the test did not reject its normality null at that cutoff. The sample may be too small to detect departures, so also inspect plots and consider the analysis requirements.
Which p value is acceptable for normality?
There is no universally acceptable value. A cutoff such as 0.05 is commonly used as a decision convention, but interpretation should account for sample size, test choice, plots, and how much non-normality matters to the analysis.
Should I test raw data or regression residuals?
For standard regression inference, residuals are usually more relevant to a normal-error assumption than the raw outcome or predictors. Other assumptions, such as independence and constant variance, must also be considered.
What if my data are not normally distributed?
First check data quality and the model assumptions. Depending on the goal, you might use a transformation, a robust or nonparametric method, or an analysis that models the distribution directly; do not transform data automatically just to obtain a larger p value.
Related
Formula used
list x | Observations | -4, -2, -1, 0, 1, 2, 4 out n | Number of observations | count(x) | 0 out m | Mean | mean(x) | 3 out sd | Sample standard deviation | sd(x) | 3 out z | Jarque-Bera statistic | (count(x) / 6) * ( ((sum((x - mean(x)) ^ 3) / count(x)) / (sd(x) ^ 3)) ^ 2 + ((sum((x - mean(x)) ^ 4) / count(x)) / (sd(x) ^ 4) - 3) ^ 2 / 4 ) | 3 out p | Approximate normality-test p value | exp(-z / 2) | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Mean and Median Calculation Example
- Right Triangle Trigonometry Angle Calculation
- Simple Interest Rate Calculation Example$150.00
- Mean Absolute Deviation Calculation Example
- Ladder Height Calculation Problem?24.74 ft
- Average Speed Calculation Problem?100.00 km