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. Problems
  2. /Six yearly values of a quantity, for x = 0, 1, …, 5, are 2.1, 2.9, 3.4, 4.6, 4.9 and 6.0…
AdvancedEarth and Environmental ScienceHigh School (11–12)Remote Sensing, GIS and Earth DataNumericalConceptual

Six yearly values of a quantity, for x = 0, 1, …, 5, are 2.1, 2.9, 3.4, 4.6, 4.9 and 6.0…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

Six yearly values of a quantity, for x=0,1,…,5x = 0, 1, \dots, 5x=0,1,…,5, are 2.1, 2.9, 3.4, 4.6, 4.9 and 6.0. A straight line and a quadratic, y=2.118+0.7004 x+0.0125 x2y = 2.118 + 0.7004\,x + 0.0125\,x^2y=2.118+0.7004x+0.0125x2, have both been fitted to the six values by least squares. (a) What is the slope of the straight line? (b) What is R2R^2R2 of the straight line? (c) What value does the straight line give at x=15x = 15x=15? (d) What does the quadratic give at x=15x = 15x=15? (e) What is the root mean square error of the straight line over the six points, SSE/6\sqrt{\text{SSE}/6}SSE/6​?

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

Growth by the fraction rrr a year doubles in ln⁡2/ln⁡(1+r)\ln 2/\ln(1 + r)ln2/ln(1+r) years. A recession is Q=Q0e−ktQ = Q_0e^{-kt}Q=Q0​e−kt, with half-life ln⁡2/k\ln 2/kln2/k. A one-box model, C dΔT/dt=F−λ ΔTC\,d\Delta T/dt = F - \lambda\,\Delta TCdΔT/dt=F−λΔT, has ΔTeq=F/λ\Delta T_{eq} = F/\lambdaΔTeq​=F/λ, the time constant τ=C/λ\tau = C/\lambdaτ=C/λ and ΔT=ΔTeq(1−e−t/τ)\Delta T = \Delta T_{eq}(1 - e^{-t/\tau})ΔT=ΔTeq​(1−e−t/τ). An Euler step is ΔTnew=ΔT+Δt (F−λΔT)/C\Delta T_{new} = \Delta T + \Delta t\,(F - \lambda\Delta T)/CΔTnew​=ΔT+Δt(F−λΔT)/C.

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. The sums. xˉ=2.5\bar{x} = 2.5xˉ=2.5, yˉ=3.983\bar{y} = 3.983yˉ​=3.983, Sxx=17.5S_{xx} = 17.5Sxx​=17.5, Sxy=13.350S_{xy} = 13.350Sxy​=13.350.

Step 2. The slope and the intercept. b=13.350/17.5=0.7629b = 13.350/17.5 = 0.7629b=13.350/17.5=0.7629 and a=3.983−0.7629×2.5=2.0762a = 3.983 - 0.7629 \times 2.5 = 2.0762a=3.983−0.7629×2.5=2.0762.

Step 3. The fit. R2=0.9841R^2 = 0.9841R2=0.9841. For the quadratic, R2=0.9847R^2 = 0.9847R2=0.9847, only a little higher.

Step 4. The two predictions. At x=15x = 15x=15 the line gives 2.0762+0.7629×15=13.522.0762 + 0.7629 \times 15 = 13.522.0762+0.7629×15=13.52. The quadratic gives 2.118+0.7004×15+0.0125×225=15.442.118 + 0.7004 \times 15 + 0.0125 \times 225 = 15.442.118+0.7004×15+0.0125×225=15.44.

Step 5. The error of the line. SSE=0.1642\text{SSE} = 0.1642SSE=0.1642, so 0.1642/6=0.165\sqrt{0.1642/6} = 0.1650.1642/6​=0.165.

Answer: 0.76290.76290.7629; 0.98410.98410.9841; 13.5213.5213.52; 15.4415.4415.44; 0.1650.1650.165.

Check. The two curves differ by 1.921.921.92 at x=15x = 15x=15, which is 14 %14\ \%14 % of the line's value, but by only 0.120.120.12 at x=6x = 6x=6, just beyond the data. Inside the record they cannot be told apart. The further we go, the more the choice of curve matters, and six points cannot make it.

Log in to save this for later
← All Problems
← After the monsoon ends, the discharge of a river, in m³/s, was measured every five days from day 0…Next →
More onRemote Sensing, GIS and Earth Data

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

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

More on this topic

  1. After the monsoon ends, the discharge of a river, in m³/s, was measured every five days from day 0…Hard
  2. A mixed layer of sea water is 100 m deep…Advanced
  3. The annual mean carbon dioxide at Mauna Loa was 316.91 ppm in 1960 and 414.24 ppm in 2020…Hard
The yearly global temperature anomalies of a ten-year period, in °C, are: 0.56, 0.61, 0.59, 0.54…Advanced
  • A temperature anomaly is known for six bands of latitude…Advanced
  • All problems on this topic →