pub fn p_value_from_chi2(chi2: f64, k: usize) -> f64
p-value from chi-squared statistic with k degrees of freedom.