rmjarvis / TreeCorr

Code for efficiently computing 2-point and 3-point correlation functions. For documentation, go to
http://rmjarvis.github.io/TreeCorr/
Other
98 stars 37 forks source link

Errors on NN correlation #62

Closed ltlancas closed 7 years ago

ltlancas commented 7 years ago

Hi,

I'm just wondering how the errors on the two-point correlation are calculated in the code and couldn't find exactly how it was done by looking on the website. Let me know if there's an easy reference!

Thanks!

rmjarvis commented 7 years ago

I assume by "errors", you mean the estimates of the uncertainty, varxi. It's just a straightforward propagation of Poisson errors in the counts.

The code doesn't currently make any attempt to estimate sample variance, so these are always underestimates of the true uncertainty. To include sample variance, you should generally do some kind of bootstrap or jackknife style covariance estimate, but these are not integrated into TreeCorr yet, so you'd have to do them yourself. (Or many people use theory covariances.)

ltlancas commented 7 years ago

Yup yup, that's what I meant. Okay, this is what I suspected but thanks for the clarification!