-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationwork in progress
Description
Some general rules on what to expect when operating with (multiple) uncertainty estimates (GPT used for formatting):
1) When both operands only have propagate_to_all
- Output keys: only
{"propagate_to_all": ...} - Propagation: standard (uncorrelated) error propagation.
Example (mul):
R = A*B → σ_R^2 = (B σ_A)^2 + (A σ_B)^2
and store it under propagate_to_all.
2) One side has only propagate_to_all, the other has specific keys (e.g. poisson)
- Output keys: only the specific keys (
poisson,pixel_index, …).
Nopropagate_to_allkey in the result. - Meaning:
propagate_to_allacts as a fallback contributor into those specific keys.
So if a has only propagate_to_all and b has poisson, then result.uncertainties["poisson"] includes:
a’s global uncertainty contribution- plus
b’s poisson contribution
combined in quadrature (after proper unit handling).
This exactly matches your “apply propagate_to_all to it, as expected”.
3) Both operands have matching non-propagate_to_all keys
- Output keys: the matching keys
- Propagation: by key, combining left+right contributions for that key (quadrature).
So poisson + poisson stays poisson and is combined correctly.
4) Both operands have non-matching non-propagate_to_all keys
- Output keys: the union of keys (e.g.
{"pixel_index", "poisson"}) - Propagation: each key is propagated from the operand that owns it, without inventing NaNs and without trying to merge unrelated keys.
Concretely:
result["pixel_index"]comes only from thepixel_indexsource(s) (plus any global fallback if that operand only hadpropagate_to_all, per rule 2)result["poisson"]comes only from thepoissonsource(s)
No “matching” happens, so no cross-key quadrature sum between unrelated sources.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationwork in progress