ADTEST Function (Gnumeric)
Run Gnumeric Anderson-Darling normality checks with ADTEST, reading its p-value, corrected statistic and included sample count.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
ADTEST performs Gnumeric’s Anderson–Darling normality test on a numerical sample. It returns three results: an approximate p-value, a corrected test statistic, and the number of included observations. The implementation estimates the sample mean and standard deviation before evaluating the normal distribution; it is not a test against an arbitrary user-supplied mean and variance.
Syntax and output layout
ADTEST(x)
x is an array or range of sample values. Gnumeric ignores strings, logical values, and blank cells when collecting the numerical sample. It needs at least eight included numerical observations.
The output is a single column with three rows:
- Approximate p-value
- Corrected Anderson–Darling statistic
- Included observation count
The examples below use INDEX to read individual array elements. This avoids assuming that entering a normal scalar formula automatically displays all three rows in a particular GUI version.
Worked example: inspect all three outputs
Put the integers 1 through 8 in A1:A8, one per row. Then enter:
| Formula | Native result, approximately |
|---|---|
=INDEX(ADTEST(A1:A8),1,1) |
0.961455692938579 |
=INDEX(ADTEST(A1:A8),2,1) |
0.151273955462212 |
=INDEX(ADTEST(A1:A8),3,1) |
8 |
These deliberately simple values make the fixture easy to reproduce; they are not a claim that an evenly spaced sequence was randomly sampled from a normal population. A large p-value does not prove normality, especially with a small sample.
The source applies the finite-sample multiplier 1+0.75/n+2.25/n² to its raw statistic, then uses a piecewise approximation for the p-value. When comparing another implementation, check whether it reports the corrected or uncorrected statistic and whether its parameter-estimation and p-value conventions match.
Advanced use: interpret a test in context
Treat a low p-value as evidence against the normal-model assumption under the test’s assumptions, rather than a measure of the probability that the data are normal. Choose any decision threshold before examining the result and consider sample size, independence, data collection, and diagnostic plots alongside the test.
Inspect the returned count. Text-formatted numbers, blanks, and logical values can make the included sample smaller than the number of rows. Clean or validate inputs deliberately instead of silently interpreting a p-value from a different sample than intended.
ADTEST tests distributional shape, not whether observations are unbiased, independent, or useful for a particular model. A passing normality check does not validate an entire forecasting or measurement process.
Errors and troubleshooting
With only A1:A7, =INDEX(ADTEST(A1:A7),1,1) returns #VALUE!, but =INDEX(ADTEST(A1:A7),3,1) still returns 7. The callback fills the first two output positions with errors while retaining the count; the array is not simply replaced wholesale by one error.
Source errors and a degenerate sample can prevent a meaningful result. Investigate constant data or invalid values rather than replacing an error with a p-value of zero or one. The bounded tests here do not certify every degenerate or extreme-tail case.
Version and verification
Official release notes add ADTEST in Gnumeric 1.9.16. The implementation and five native array-element checks in 1.12.57 under C.UTF-8 were reviewed on 17 October 2026. The test statistic was also reconstructed independently from the eight-number sample. No GUI array-entry test or all-distributions validation is claimed; no retirement is established.