To make the calculations simpler, before computing the regression line, subtract 2000 from each of the years so that for example, the year 2009 is given as 9 and the first (x,y) data point is therefore (9, 0.72) and likewise for the other years. Fill in the x, and y, data in the third and fourth columns of the table. As discussed in Section 2.6 of the textbook, use the set of (x,y) data points to assemble the matrices X and Y. See Example 7 page 101 in the textbook, or any of the assigned homework problems in Section 2.6 for an example of this. Find the the equation of the least squares regression line for the data as the linear model f(x) = ao + a₁x in the manner discussed in the textbook using the formula A = (XTX)-¹XTY. What are your values for ao and a₁? 1 Use the linear model to create a table of estimated values for wind energy consumption. Add this information to the above table in the fifth column. For each year compare the estimated values with the data by computing the square of the error. Add this information to the above table in the last column. Characterize the overall accuracy of the linear model by computing the sum of the square errors. Use the linear model to predict the wind energy consumption for 2014 and 2015.
To make the calculations simpler, before computing the regression line, subtract 2000 from each of the years so that for example, the year 2009 is given as 9 and the first (x,y) data point is therefore (9, 0.72) and likewise for the other years. Fill in the x, and y, data in the third and fourth columns of the table. As discussed in Section 2.6 of the textbook, use the set of (x,y) data points to assemble the matrices X and Y. See Example 7 page 101 in the textbook, or any of the assigned homework problems in Section 2.6 for an example of this. Find the the equation of the least squares regression line for the data as the linear model f(x) = ao + a₁x in the manner discussed in the textbook using the formula A = (XTX)-¹XTY. What are your values for ao and a₁? 1 Use the linear model to create a table of estimated values for wind energy consumption. Add this information to the above table in the fifth column. For each year compare the estimated values with the data by computing the square of the error. Add this information to the above table in the last column. Characterize the overall accuracy of the linear model by computing the sum of the square errors. Use the linear model to predict the wind energy consumption for 2014 and 2015.
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
Expert Solution
Step 1: Write the given information.
Year | Consuption | xi | yi | Linear Model | Squared Error |
2009 | 0.72 | 9 | 0.72 | ||
2010 | 0.92 | 10 | 0.92 | ||
2011 | 1.17 | 11 | 1.17 | ||
2012 | 1.34 | 12 | 1.34 | ||
2013 | 1.6 | 13 | 1.6 |
The linear model for the data set is given as
Step by step
Solved in 5 steps with 6 images
Recommended textbooks for you
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman