pyFAI icon indicating copy to clipboard operation
pyFAI copied to clipboard

standard deviation (std) vs standard error to the mean (sem)

Open kif opened this issue 6 years ago • 1 comments

PyFAI is actually reporting the standard error to the mean which is roughly sqrt(sum(variance))/count while the standard deviation is sqrt(sum(variance)/count). There is sqrt(count) difference which correspond to error of the mean (reported) or the error of one pixel (not reported)

The bug is that in all the docs, code and docstrings, this is called std or sigma and both are wrong.

I suggest to use sigma_p for the standard deviation (error of one pixel) and sigma_m for the standard error of the mean. But of course this will take ages to correct all the code and have everything consistent !

kif avatar Dec 12 '19 19:12 kif

related to #1632

kif avatar Jan 31 '22 15:01 kif