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

(→‎{{header|Fortran}}: Use gsl_cdf_chisq_Q, simplify code and enhance readability)
(→‎{{header|Fortran}}: Add output.)
Line 491:
 
end program chi2test</lang>
 
Output:
<lang txt>Dataset 1: 199809.0000 200665.0000 199607.0000 200270.0000 199649.0000
dof: 4 chisq: 4.1463
probability: 0.3866
uniform? T
 
Dataset 2: 522573.0000 244456.0000 139979.0000 71531.0000 21461.0000
dof: 4 chisq: 790063.2500
probability: 0.0000
uniform? F</lang>
 
=={{header|Go}}==
Anonymous user