When I run
from statsmodels.stats.diagnostic import lilliefors
lilliefors(np.arange(5))
I get the output
(0.13645537156723098, 2.1686565649378555)
The second value is supposed to be the p-value. And p-values above 1 don't make any sense.
Do I miss something? Or is there a limitation of the test?
In MATLAB I get for
[H, p] = lillietest([0:4])
the output with the warning
Warning: P is greater than the largest tabulated value, returning 0.5.
> In lillietest (line 203)
H =
0
p =
0.5000
I guess that a similar warning should be implemented here, to avoid confusion by the users.