-
Notifications
You must be signed in to change notification settings - Fork 167
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
fix standard error of the mean #8826
base: main
Are you sure you want to change the base?
Conversation
…andard deviation, when estimating errors for interferometric observables.
Re tests - there is not a current unit test for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with sigma-clipped means... [email protected] should be an owner perhaps, maybe instead of me?
Stats are being changed to use the standard error of the mean (by rcooper@).
Re test outfits files - we have to resolve how we write in covariances of cvs, triple products, and the closure quads (all complex or 2d observable) into outfits files. The standard is vaguely defined (or I don't understand it) |
Do you need anything on the tests in this PR / from me? I've tested the updated uncertainties locally and they work fine, but best practice would have this be a full unit test. |
Hi Ben, thanks for putting this in! We have gone back and forth on using the standard error of the mean vs. standard deviation a few times and at some point settled on taking the (sigma-clipped) median & standard deviation over the integrations, but I'm in the midst of updating the code to calculate covariances for various observables for each [baseline/triangle/quad] and use those for the error bars. You can see those changes here, though I'm still getting everything working. I can certainly change the default to use the mean rather than median if that's the consensus but I'm not sure if I should still be dividing those by sqrt(n_integrations)? |
Hi Rachel, If we're distilling a whole bunch of integrations to a single mean and uncertainty, the right mean to choose is the SEM (ie 1/sqrt(N) not the standard deviation. This closely matches eg AMICAL. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8826 +/- ##
=======================================
Coverage 61.86% 61.86%
=======================================
Files 377 377
Lines 38911 38912 +1
=======================================
+ Hits 24071 24072 +1
Misses 14840 14840 ☔ View full report in Codecov by Sentry. |
Thanks Ben, I've updated the code to default to take the mean rather than median, and to take the SEM rather than just sqrt([co]variance). Hopefully this will address the issues raised here. Draft PR is here: #8846 |
This PR addresses a bug in the fork of ImPlaneIA that constitutes calwebb_ami3.
Tasks
Build 11.3
(use the latest build if not sure)no-changelog-entry-needed
)changes/
:echo "changed something" > changes/<PR#>.<changetype>.rst
(see below for change types)docs/
pageokify_regtests
to update the truth filesnews fragment change types...