xrft icon indicating copy to clipboard operation
xrft copied to clipboard

Confidence level

Open iuryt opened this issue 3 years ago • 3 comments

Hi,

Nice package!

I think it would be nice to add an example to docs or have a new feature for estimating the 95% confidence level by which the spectrum differ from white or red noise.

I found this post on Stack Overflow and would like to know the best way to do that using your package.

iuryt avatar Apr 20 '22 12:04 iuryt

Thanks for using our package @iuryt :)

In Appendix E of this paper, we provide how to estimate the 95% confidence level based on the chi2 distribution: https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2021MS002692 Jupyter notebooks where I compute the confidence interval are available via Github (doi:10.5281/zenodo.5563893).

roxyboy avatar Apr 25 '22 10:04 roxyboy

You can also estimate the confidence intervals via bootstrapping.

roxyboy avatar Mar 06 '23 21:03 roxyboy

Possibly useful: xbootstrap

dougiesquire avatar Mar 06 '23 23:03 dougiesquire