Skip to content
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

Distinguishing between statistical and systematic errors in Measurements.jl #167

Open
barrettp opened this issue Apr 4, 2024 · 1 comment

Comments

@barrettp
Copy link

barrettp commented Apr 4, 2024

Measurements.jl implicitly assumes that all errors are statistical errors. In most cases this is correct. However, there are cases when the total error is a combination of statistical and systematic error. This is a request to allow for such a distinction in Measurements.jl. So, when a measurement is displayed, it can contain both statistical and systematic errors.

@giordano
Copy link
Member

giordano commented Apr 4, 2024

There's a small little-known trick you can already use right now to achieve what you want: create a Measurement{Measurement}} object

julia> x = ((5 ± 0.1) ± 0.2)
5.0 ± 0.1 ± 0.2 ± 0.0

julia> y = ((10 ± 0.2) ± 0.3)
10.0 ± 0.2 ± 0.3 ± 0.0

julia> x + y
15.0 ± 0.22 ± 0.36 ± 0.0

The "problem" is that you have "3 errors", you have to always discard the last one, but the first two are propagated independently, which I believe is what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants