Talk:Statistics/Chi-squared distribution: Difference between revisions

m
 
Line 4:
According to Wikipedia, for the case k = 2, this formula reduces to F(x; 2) = 1 - exp(-x/2). But for values of x from 0 to 10, the only way I can get this simple formula to agree with the one in the task description is if I halve 'x' first before applying the latter. Here's the Wren code I have so far in case I'm missing something or have done something silly:
 
<syntaxhighlight lang="ecmascriptwren">import "./math" for Math
import "./fmt" for Fmt
 
9,490

edits