subject
Computers and Technology, 12.08.2020 05:01 j015

Longley data set. The Longley data set of labor statistics was one of the first used to test the accuracy of least squares computations. You don't need to go to the NIST Web site to do this problem, but if you are interested in the background, you should see the Longley page at [3]. The data set is available in NCM in the file longley. dat. You can bring the data into MATLAB with load longley. dat
y = longley (:,1);
x = longley (:,2:7);
There are 16 observations of 7 variables, gathered over the years 1947 to 1962. The variable y and the 6 variables making up the columns of the data matrix X are X3 =
y = Total Derived Employment,
x1 = GNP Implicit Price Deflater,
x2 = Gross National Product,
x3 = Unemployment,
x4 = Size of Armed Forces,
x5 = Non-institutional Population
x6 = Age
The objective is to predict y by a linear combination of a constant and the six x's:
y aBo + Bkxk. 26 = 6 1
A) Use the MATLAB backslash operator to compute Bo, B1, ..., B6. This involves augmenting X with a column of all l’s, corresponding to the constant term.
B) Compare your B’s with the certified values.
C) Use errorbar to plot y with error bars whose magnitude is the difference between y and the least squares fit.
D) Use corrcoef to compute the correlation coefficients for X without the column of 1's. Which variables are highly correlated?
E) Normalize the vector y so that its mean is zero and its standard deviation is one. You can do this with
y = y mean(y);
y = y/std(y)
Do the same thing to the columns of X. Now plot all seven normalized vari- ables on the same axis. Include a legend.
Using MATLAB to solve it.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Which two technologies support the building of single-page applications?
Answers: 2
You know the right answer?
Longley data set. The Longley data set of labor statistics was one of the first used to test the acc...
Questions
question
Mathematics, 09.11.2020 21:10
question
Spanish, 09.11.2020 21:10
question
Mathematics, 09.11.2020 21:10
question
Mathematics, 09.11.2020 21:10
question
Mathematics, 09.11.2020 21:10