HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Notes
  2. /Earth Data with Python: Trends, Anomalies and Models: Quick Revision
Earth and Environmental ScienceAlso Statistics & Data Science

Earth Data with Python: Trends, Anomalies and Models: Quick Revision

A brief note on Earth Data with Python: Trends, Anomalies and Models: the least-squares trend, the seasonal cycle, anomalies and baselines, the uncertainty of a trend, doubling times and a box model, with questions to check yourself.

StemPy LabWritten by StemPy Lab
Log in to save

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=Sxy/Sxxb = S_{xy}/S_{xx}b=Sxy​/Sxx​, a=yˉ−bxˉa = \bar{y} - b\bar{x}a=yˉ​−bxˉ; the line passes through (xˉ,yˉ)(\bar{x}, \bar{y})(xˉ,yˉ​).
  • R squared: 1−SSE/SST1 - \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)/\sigmaz=(x−μ)/σ.
  • Area weights: proportional to sin⁡φ2−sin⁡φ1\sin\varphi_2 - \sin\varphi_1sinφ2​−sinφ1​ for a band.
  • Standard error of a slope: s/Sxxs/\sqrt{S_{xx}}s/Sxx​​ with s=SSE/(n−2)s = \sqrt{\text{SSE}/(n - 2)}s=SSE/(n−2)​. About ±2 SE\pm 2\,\text{SE}±2SE for 95 %95\ \%95 %.
  • Autocorrelation: neff=n(1−r1)/(1+r1)n_{\text{eff}} = n(1 - r_1)/(1 + r_1)neff​=n(1−r1​)/(1+r1​).

Simple models

  • Doubling time: ln⁡2/ln⁡(1+r)\ln 2/\ln(1 + r)ln2/ln(1+r). A logarithm turns an exponential or a power law into a line.
  • Box model: C dΔT/dt=F−λΔTC\,d\Delta T/dt = F - \lambda\Delta TCdΔT/dt=F−λΔT; ΔTeq=F/λ\Delta T_{eq} = F/\lambdaΔTeq​=F/λ; τ=C/λ\tau = C/\lambdaτ=C/λ; 63 %63\ \%63 % after τ\tauτ.
  • Euler step: ΔTnew=ΔT+Δt (F−λΔT)/C\Delta T_{new} = \Delta T + \Delta t\,(F - \lambda\Delta T)/CΔTnew​=Δ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

  1. A trend of 0.30 ∘C0.30\ ^\circ\text{C}0.30 ∘C per decade is found over 303030 years. What is the rise over the record along the line?
  1. A new baseline mean is 0.4 ∘C0.4\ ^\circ\text{C}0.4 ∘C higher than the old one. What happens to every anomaly and to the trend?
  1. After one time constant, how much of the final warming of a box model has happened?

Sources

  • 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).
← All Notes
← GIS: Coordinates, Projections and Map Layers: Quick RevisionThe Earth's Layers: Quick Revision →
More onRemote Sensing, GIS and Earth Data

Discussion (0)

Log in to join the discussion.

Loading…

On this page

  1. Trends and cycles
  2. Anomalies and uncertainty
  3. Simple models
  4. Usual slips
  5. Practise with new numbers
  6. Check yourself
  7. Sources

Goes with the lesson

  1. Simple models of Earth dataEarth Data with Python: Trends, Anomalies and Models

More notes on this topic

GIS: Coordinates, Projections and Map Layers: Quick Revision
  • Remote Sensing: Spectra, Satellites and Vegetation: Quick Revision
  • All notes on this topic →