and then calculate certain basic multivariate statistics corresponding to these 3 columns from the data set, outlined below.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Please provide solution using R language don't need to send code please solve correctly in one hour
Question 3. (To be done using 'R'). In this question, you are required to import BostonHousing data set
from mlbench package in 'R', create a subset of only 3 variables:
• per capita crime rate by town
• average number of rooms per dwelling
• weighted distances to five Boston employment centres,
and then calculate certain basic multivariate statistics corresponding to these 3 columns from the data set,
outlined below.
Once you have successfully imported your data as a data frame:
i) Calculate the sample mean vector j;
ii) Calculate the sample covariance matrix S. Explain what the (2, 3) element of this matrix describes and
interpret its value;
iii) Calculate the diagonal matrix Ds and its inverse Ds
iv) Calculate the sample correlation matrix R. Again, explain what the (3, 2) element of this matrix de-
scribes and interpret its value;
v) Write down the form of the (3 x 3) matrix of coefficients, denoted A, that considers the differences
between each of the three variables; [Hint: Use the theory of linear combinations]
vi) Calculate the sample mean vector i for the difference between each of the variables;
vii) Calculate the sample covariance matrix Sv for the differences of the three variables;
viii) Calculate the sample correlation matrix R, for the differences of the three variables.
[For this question, you only need to submit the solution. You do not have to submit any code.]
Transcribed Image Text:Question 3. (To be done using 'R'). In this question, you are required to import BostonHousing data set from mlbench package in 'R', create a subset of only 3 variables: • per capita crime rate by town • average number of rooms per dwelling • weighted distances to five Boston employment centres, and then calculate certain basic multivariate statistics corresponding to these 3 columns from the data set, outlined below. Once you have successfully imported your data as a data frame: i) Calculate the sample mean vector j; ii) Calculate the sample covariance matrix S. Explain what the (2, 3) element of this matrix describes and interpret its value; iii) Calculate the diagonal matrix Ds and its inverse Ds iv) Calculate the sample correlation matrix R. Again, explain what the (3, 2) element of this matrix de- scribes and interpret its value; v) Write down the form of the (3 x 3) matrix of coefficients, denoted A, that considers the differences between each of the three variables; [Hint: Use the theory of linear combinations] vi) Calculate the sample mean vector i for the difference between each of the variables; vii) Calculate the sample covariance matrix Sv for the differences of the three variables; viii) Calculate the sample correlation matrix R, for the differences of the three variables. [For this question, you only need to submit the solution. You do not have to submit any code.]
Expert Solution
steps

Step by step

Solved in 7 steps with 6 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY