e mean temperature of the period 1951-1980, for t irst column indicates the year and the second co e in temperature.

icon
Related questions
Question

Help with all parts and put into MATLAB

The file GlobalTempData contains the change in temperature, compared
to the mean temperature of the period 1951-1980, for the years 1881-2020.
The first column indicates the year and the second column indicates the
change in temperature.
(a) Formulate a least squares (regression) problem to find the best quadratic
function (in the year) that fits the data.
(b) Solve the problem using CVX.
(c) Generate a figure to plot the given data, and on the same figure plot
the quadratic function for the years 1881-2040.
(d) Use your model to predict the change in temperature for the year
2030.
Transcribed Image Text:The file GlobalTempData contains the change in temperature, compared to the mean temperature of the period 1951-1980, for the years 1881-2020. The first column indicates the year and the second column indicates the change in temperature. (a) Formulate a least squares (regression) problem to find the best quadratic function (in the year) that fits the data. (b) Solve the problem using CVX. (c) Generate a figure to plot the given data, and on the same figure plot the quadratic function for the years 1881-2040. (d) Use your model to predict the change in temperature for the year 2030.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer