Statistics/Chi-squared distribution: Difference between revisions
m
change table
m (→{{header|Python}}: cdf function) |
m (change table) |
||
Line 130:
end
▲println("\nχ2 x P value (df=3)\n----------------------")
for p in [1, 2, 4, 8, 16, 32]
println(lpad(p, 2), " ", cdf, " ", round(1.0 - cdf, digits=10))
end
Line 174:
10 0.00085003666 0.00336897349 0.00850036660 0.01684486749 0.02833455534
χ2 x cdf for χ2 P value (df=3)
------------------------------------
1 0.
2 0.
4 0.
8 0.
16 0.
32 0.9999994767 5.
For the airport data, diff total is 4.512820512820512, χ2 is 0.08875392598443503, p value 0.7888504263193064
|