Jump to content

Verify distribution uniformity/Chi-squared test: Difference between revisions

m
(→‎{{header|jq}}: simplify)
Line 745:
industrial-strength algorithm, see
e.g. https://people.sc.fsu.edu/~jburkardt/c_src/asa239/asa239.c
 
'''Generic Functions'''
<syntaxhighlight lang=jq>
Line 819 ⟶ 820:
" Estimated probability of observing a value >= D: \($dist|chi2Probability($dof)|round(2))",
" Uniform? \( (select(chiIsUniform(0.05)) | "Yes") // "No" )\n" ) ;
 
def task0($a):
def f0: pow(.; $a-1) * ((-.)|exp) ;
integrate(0;1;100; f0);
 
task
2,472

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.