Skip to content
Prev 25526 / 63424 Next

Shapiro Test P Value Incorrect? (PR#9768)

This is not a bug. The algorithm uses different approximation of the
p-value for n=3 (exact value), 4<=n<=11 and n>=12 as seen in 
  src/library/stats/src/swilk.c
below the line 202
 /*  Calculate significance level for W */

The W statistic monotonically decreases in the presented example.

Petr.