How big the error bar on a first-difference is depends entirely on how the two consecutive annual estimates are correlated.
The rules are the same ones you use for any other error propagation:
- Write the mathematical expression for the quantity you want.
- Build the vector of partial derivatives (Jacobian).
- Combine it with the covariance matrix of the inputs.
Below are the most common cases.
────────────────────────────────────────
- Simple arithmetic difference
────────────────────────────────────────
Definition
dXₜ = Xₜ – X₍ₜ – 1₎
Gradient (Jacobian)
∂dX/∂Xₜ = +1
∂dX/∂X₍ₜ – 1₎ = –1
General variance formula
Var(dXₜ) = σₜ² + σ₍ₜ – 1₎² − 2 ρ σₜ σ₍ₜ – 1₎
• σ are the standard deviations you already have (X_std).
• ρ is the correlation coefficient between the errors in the two years.
⇒ Standard deviation
X_std_diffₜ = √(σₜ² + σ₍ₜ – 1₎² − 2 ρ σₜ σ₍ₜ – 1₎)
Special cases you’ll often meet
a) Independent errors (ρ = 0)
X_std_diffₜ = √(σₜ² + σ₍ₜ – 1₎²)
b) Fully correlated systematic error (ρ = +1)
X_std_diffₜ = √(σₜ² + σ₍ₜ – 1₎² – 2σₜσ₍ₜ – 1₎) ≈ 0
(the shared bias cancels out)
c) Same magnitude of uncertainty both years (σₜ = σ, σ₍ₜ – 1₎ = σ)
• independent X_std_diff = σ√2
• fully corr. X_std_diff = 0
If you don’t know ρ, assume 0 (gives the conservative / widest interval), or try to estimate it by looking at the sources of error:
– instrument calibration error → usually highly correlated
– random sampling error → largely uncorrelated.
────────────────────────────────────────
2. Difference divided by Δt (a «rate»)
────────────────────────────────────────
If you simply divide by the constant Δt = 1 yr, the uncertainty divides by the same constant:
X_std_rateₜ = X_std_diffₜ / Δt
────────────────────────────────────────
3. Relative (percentage) change
────────────────────────────────────────
rₜ = (Xₜ – X₍ₜ – 1₎) / X₍ₜ – 1₎
Jacobian
∂r/∂Xₜ = 1 / X₍ₜ – 1₎
∂r/∂X₍ₜ – 1₎ = −Xₜ / X₍ₜ – 1₎² = −(1 + r)/X₍ₜ – 1₎
Variance
Var(rₜ) = [σₜ² + (1 + rₜ)² σ₍ₜ – 1₎² − 2(1 + rₜ) ρ σₜ σ₍ₜ – 1₎] / X₍ₜ – 1₎²
Again, drop the last term if errors are independent.
A handy “rule-of-thumb” version for independent errors:
r_stdₜ ≈ |rₜ| √( (σₜ/Xₜ)² + (σ₍ₜ – 1₎/X₍ₜ – 1₎)² )
────────────────────────────────────────
4. Quick implementation (Python example)
────────────────────────────────────────
import numpy as np
def diff_uncertainty(sig_t, sig_prev, rho=0.0):
"""Return σ(dX) for dX = X_t - X_{t-1}"""
return np.sqrt(sig_t**2 + sig_prev**2 - 2*rho*sig_t*sig_prev)
# example
sigma_2022 = 0.8 # units of X
sigma_2021 = 1.0
dX_sigma = diff_uncertainty(sigma_2022, sigma_2021, rho=0.0)
print(f"σ(dX_2022) = {dX_sigma:.2f}")
────────────────────────────────────────
5. Key takeaways
────────────────────────────────────────
• Use the variance-propagation formula Var(f) = J Σ Jᵀ.
• For a simple year-to-year difference, σ(dX) is √(σ_t² + σ_{t-1}²) if the errors are independent.
• Correlated errors can drastically shrink (or enlarge) the uncertainty—always think about ρ before you assume 0.
• If you turn that difference into a percentage-change, apply the standard error-propagation with the proper derivatives shown above.
That’s it—just classic error analysis applied to adjacent years in a time series 📈🔍