Contact

SFTEST Function (Gnumeric)

Statistical Intermediate Gnumeric

Run the Shapiro-Francia normality test in Gnumeric and interpret its approximate p-value, test statistic, and usable observation count.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

SFTEST returns an approximate p-value, test statistic and usable sample size for the Shapiro–Francia test of normality. It helps assess compatibility with a normal-distribution model. A large p-value is not proof that the population is normal, especially for a small sample; a rejected model is not a diagnosis of why data depart from it.

Syntax and returned array

=SFTEST(x)

x is the required sample array or reference. The function collects numeric values and ignores strings, Booleans and blanks. It sorts the collected sample internally. The result is one column with three rows: p-value first, test statistic second, numeric observation count third.

The usable count must be between 5 and 5000 inclusive. The help summarizes an out-of-range sample as #VALUE!, but the inspected implementation is more specific: the first two returned entries are #VALUE! while the third still reports n. Use INDEX to inspect the result components rather than assuming a scalar return.

Reproducible five-value fixture

Enter -2,-1,0,1,2 in A1:A5. The expected components of =SFTEST(A1:A5) are approximately:

  • p-value: 0.999999932080291
  • statistic: 0.995807518763752
  • count: 5

Inspect them with =INDEX(SFTEST(A1:A5),1,1), then row indices2 and3. These values are synthetic arithmetic checks, not evidence from a real sample.

Independently, form expected-normal scores z_i from standard-normal quantiles at (i−3/8)/(n+1/4), for i=1,…,n. The statistic is the squared correlation between sorted observations and those scores. Gnumeric’s documented implementation then applies its sample-size-dependent approximation to log(1−statistic) to obtain the upper-tail p-value. A separate Python standard-normal quantile/correlation calculation gives the expectations above; rounding near a statistic of 1 can affect the last digits.

Boundary behavior and interpretation

For A1:A4 alone, =INDEX(SFTEST(A1:A4),1,1) is expected to return #VALUE!, while row 3 still returns 4. This distinguishes an invalid sample size from an unknown count. Do not delete inconvenient observations merely to achieve a preferred test result.

A nearly linear set of five ordered values can give a very large p-value because its ordered pattern closely matches the expected-normal scores. That does not make five equally spaced measurements a demonstrated normal population. The approximation and power depend on sample size and assumptions; pair the test with a plot and subject-matter understanding.

Advanced use and troubleshooting

Use independent observations relevant to the model being tested. Repeated rounded values, constant data, dependence across time, or ignored missing cells can change the interpretation. Constant data cannot support the required correlation and produces error entries in the inspected implementation. Validate the numeric count rather than assuming every row is included.

If a result seems to be just one p-value, inspect array entry or extract all three rows. If the count differs from the number of selected cells, check text, Booleans and blanks. A p-value is not the probability that the null model is true, and comparing many tests without a plan can make conclusions misleading.

NEWS introduces SFTEST in 1.9.16 and records extreme-case precision improvements in 1.10.6. Only the stated small valid/boundary fixtures are runtime-tested here; historical versions and all extreme cases are not.

Native fixture results

The native 1.12.57 run returned p = 0.9999999320802911, statistic = 0.9958075187637522 and count = 5. The four-value boundary returned #VALUE! for its first entry and 4 for its third.

Availability and verification scope

The function is present in the inspected official source. Bounded examples are independently calculated; native Gnumeric ssconvert 1.12.57 results are recorded separately below. Retained statistical source 1.12.62 was originally obtained October 13–14, 2026 and inspected October 17; HPFILTER source 1.12.57 was freshly retrieved October 17. No historical-release execution, GUI operation, screenshot, or native 1.12.62 result is implied. The last functioning release is not established. English formulas use commas, with locale-specific separators adjusted as needed.

Array-returning functions require an appropriate result area. The INDEX formulas shown inspect individual elements without promising automatic dynamic-array spilling in the GUI.