diff --git a/docs/pyerrors/fits.html b/docs/pyerrors/fits.html index bb34f8d4..2ecd896e 100644 --- a/docs/pyerrors/fits.html +++ b/docs/pyerrors/fits.html @@ -476,7 +476,7 @@ 365 raise Exception('The minimization procedure did not converge.') 366 367 output.chisquare = chisquare -368 output.dof = x_all.shape[-1] - n_parms + len(loc_priors) +368 output.dof = y_all.shape[-1] - n_parms + len(loc_priors) 369 output.p_value = 1 - scipy.stats.chi2.cdf(output.chisquare, output.dof) 370 if output.dof > 0: 371 output.chisquare_by_dof = output.chisquare / output.dof @@ -504,7 +504,7 @@ 393 hat_vector = prepare_hat_matrix() 394 A = W @ hat_vector 395 P_phi = A @ np.linalg.pinv(A.T @ A) @ A.T -396 expected_chisquare = np.trace((np.identity(x_all.shape[-1]) - P_phi) @ W @ cov @ W) +396 expected_chisquare = np.trace((np.identity(y_all.shape[-1]) - P_phi) @ W @ cov @ W) 397 output.chisquare_by_expected_chisquare = output.chisquare / expected_chisquare 398 if not silent: 399 print('chisquare/expected_chisquare:', output.chisquare_by_expected_chisquare) @@ -1398,7 +1398,7 @@ Hotelling t-squared p-value for correlated fits. 366 raise Exception('The minimization procedure did not converge.') 367 368 output.chisquare = chisquare -369 output.dof = x_all.shape[-1] - n_parms + len(loc_priors) +369 output.dof = y_all.shape[-1] - n_parms + len(loc_priors) 370 output.p_value = 1 - scipy.stats.chi2.cdf(output.chisquare, output.dof) 371 if output.dof > 0: 372 output.chisquare_by_dof = output.chisquare / output.dof @@ -1426,7 +1426,7 @@ Hotelling t-squared p-value for correlated fits. 394 hat_vector = prepare_hat_matrix() 395 A = W @ hat_vector 396 P_phi = A @ np.linalg.pinv(A.T @ A) @ A.T -397 expected_chisquare = np.trace((np.identity(x_all.shape[-1]) - P_phi) @ W @ cov @ W) +397 expected_chisquare = np.trace((np.identity(y_all.shape[-1]) - P_phi) @ W @ cov @ W) 398 output.chisquare_by_expected_chisquare = output.chisquare / expected_chisquare 399 if not silent: 400 print('chisquare/expected_chisquare:', output.chisquare_by_expected_chisquare)