A brief note on Earth Data with Python: Trends, Anomalies and Models . Read it before a test. Try each question at the end before you open its answer.
Trends and cycles Record: trend + + + seasonal cycle + + + noise. Least squares: b = S x y / S x x b = S_{xy}/S_{xx} b = S x y / S xx , a = y ˉ − b x ˉ a = \bar{y} - b\bar{x} a = y ˉ − b x ˉ ; the line passes through ( x ˉ , y ˉ ) (\bar{x}, \bar{y}) ( x ˉ , y ˉ ) . R squared: 1 − SSE / SST 1 - \text{SSE}/\text{SST} 1 − SSE / SST . A high value does not prove the shape. A yearly cycle: a mean over twelve months removes it. The mean of each calendar month gives it. Anomalies and uncertainty Anomaly: value − - − baseline mean. A new baseline shifts anomalies by one constant, and the trend stays. Standardised: z = ( x − μ ) / σ z = (x - \mu)/\sigma z = ( x − μ ) / σ . Area weights: proportional to sin φ 2 − sin φ 1 \sin\varphi_2 - \sin\varphi_1 sin φ 2 − sin φ 1 for a band. Standard error of a slope: s / S x x s/\sqrt{S_{xx}} s / S xx with s = SSE / ( n − 2 ) s = \sqrt{\text{SSE}/(n - 2)} s = SSE / ( n − 2 ) . About ± 2 SE \pm 2\,\text{SE} ± 2 SE for 95 % 95\ \% 95 % . Autocorrelation: n eff = n ( 1 − r 1 ) / ( 1 + r 1 ) n_{\text{eff}} = n(1 - r_1)/(1 + r_1) n eff = n ( 1 − r 1 ) / ( 1 + r 1 ) . Simple models Doubling time: ln 2 / ln ( 1 + r ) \ln 2/\ln(1 + r) ln 2/ ln ( 1 + r ) . A logarithm turns an exponential or a power law into a line. Box model: C d Δ T / d t = F − λ Δ T C\,d\Delta T/dt = F - \lambda\Delta T C d Δ T / d t = F − λ Δ T ; Δ T e q = F / λ \Delta T_{eq} = F/\lambda Δ T e q = F / λ ; τ = C / λ \tau = C/\lambda τ = C / λ ; 63 % 63\ \% 63 % after τ \tau τ . Euler step: Δ T n e w = Δ T + Δ t ( F − λ Δ T ) / C \Delta T_{new} = \Delta T + \Delta t\,(F - \lambda\Delta T)/C Δ T n e w = Δ T + Δ t ( F − λ Δ T ) / C . Testing: keep some data back. Overfitting shows outside the record. Usual slips Trusting a trend without its error. Predicting far beyond the record. Forgetting the area weights. Mixing the units of a rate and of a time. Practise with new numbers
Check yourself A trend of 0.30 ∘ C 0.30\ ^\circ\text{C} 0.30 ∘ C per decade is found over 30 30 30 years. What is the rise over the record along the line? Stuck? Show a hint Show the answerA new baseline mean is 0.4 ∘ C 0.4\ ^\circ\text{C} 0.4 ∘ C higher than the old one. What happens to every anomaly and to the trend? Stuck? Show a hint Show the answerAfter one time constant, how much of the final warming of a box model has happened? Stuck? Show a hint Show the answerSources D. S. Wilks, Statistical Methods in the Atmospheric Sciences (4th edition, Elsevier, 2019). WMO, WMO Guidelines on the Calculation of Climate Normals (WMO-No. 1203, 2017).