-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tpcf jackknife covariance matrix normalization error #815
Comments
CC @tmcclintock - you should be aware of this bug. We are fixing asap. I will re-release |
I'm pretty sure this is the line, as well as the following two, that need fixing. According to the numpy docs you need to use either the Apologies for being too lazy to PR. |
No apologies necessary, Tom, this is super helpful. Many thanks! |
Oops it isn't |
Right, I believe bias must be a boolean. Take a look at the current fix. I believe we are in agreement. |
Ah true. I misread the numpy docs. |
Resolved by PR #818 |
The covariance matrices in the tpcf_jackknife() mock_observables function aren't correctly normalized.
The tpcf_jackknife() function uses the numpy.cov() function to calculate the covariance matrix which normalizes by default using 1/(N-1) where N is the number of samples. For jackknife samples, it should instead be normalized by (N-1)/N.
Thanks to @yymao for the consultation on this matter.
The text was updated successfully, but these errors were encountered: