The El Nino-Southern Oscillation (ENSO) is a cycle of warm and cold surface sea water temperatures in the southern Pacific Ocean. As the area of warm sea water moves the air pressure gets higher on either the east or west of the Pacific. This has an effect on rainfall and temperature globally, but given our geographic location, it has a very strong effect on New Zealand weather. The cycle varies between two and seven years, with an average of four years.
In this project you are going to investigate exactly what kind of effect it has on New Zealand, and see if you can predict the strength of the El Nino into the future.
There are three datasets provided as projectdata.zip in the dataset section of the course webpage. They are all from the Ministry for the Environment (https://data.mfe.govt.nz/. The data is in the csv files, which there is various information in the other files in the zip package.
- Load all three files into Python and take a look at them. Ensure that you understand what isrecorded in each. Compare the geographic locations of data collected, and the years. Create new dataframes that contain only the data for matched years and locations where appropriate. Deal appropriately with NaN datapoints. (3 marks)
- Make plots of the various timeseries and check if you can see the expected temporal patternin the ENSO index. (3 marks)
- Test whether or not there is a correlation between the rainfall and temperature and the index.(4 marks)
1
- Test whether or not this correlation is stronger or weaker in different parts of the country. (5 marks)
- Using the Auckland data, predict the strength of the ENSO index for each year using therainfall and temperature data. You will need to:
- Choose the appropriate data and normalise it
- Split it into training and testing sets
- Choose an appropriate algorithm
- Perform the training
- Report appropriate metrics
(15 marks)
- Using just the ENSO index data, see if you can predict the strength of the ENSO index fordate t + 1 using the index values for dates t 1,t 2,t 3. The easiest way to do this is to assemble the data into an array with 3 columns. The first few rows would be (where Imyt is the index value for date month-year):
I0186 | I0286 | I0386 |
I0286 | I0386 | I0486 |
I0386 | I0486 | I0586 |
Then use the first line to predict I0486 and so on.
You need to follow the same data preparation steps as in the previous question.
Compare the model with two others:
- Using the last 6 monthly values instead of the last 3
- Using the last 12 monthly values instead of the last 3
Explain why you get the results you do. (15 marks)
- Test whether or not the ENSO is getting stronger or weaker over time. (5 marks)
2
Reviews
There are no reviews yet.