Here are twenty yearly mean temperatures of a station, in degrees Celsius, from 2001 to 2020. They were made for this lab. You will turn them into anomalies against a baseline, smooth them, and find the trend.
The idea. An anomaly is a value minus the mean of a baseline. A running mean of five years averages each year with the two years either side, and it is shorter than the record by four values. The trend is the least-squares slope.
Your tasks.
anomalies, return the list of the anomalies against the mean of the first ten years, 2001 to 2010.running_mean, return the list of five-year running means of a list of values.trend_per_decade, return the least-squares slope of the temperatures against the years, in degrees Celsius per decade.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…