代写代考 MATH5855: Multivariate Analysis Assignment 1

MATH5855: Multivariate Analysis Assignment 1
Due data: 5 pm on Tuesday October 4, 2022
Instructions:
􏰀 The assignment 1 contains 3 questions and worth a total of 70 points which will count towards

Copyright By PowCoder代写 加微信 powcoder

15% of the final mark for the subject.
􏰀 Use tables, graphs and concise text explanations to support your answers. Unclear answers may not be marked at your own cost. All tables and graphs must be clearly commented and identified.
􏰀 You need to submit TWO files, the pdf file of the answers and the R markdown file, containing the R codes.
X1 111−62  
Question1.[20Marks]LetX=X2 ∼N32,−6 10 −4.  
(a) Find the best linear approximation of X3 by a linear function of X1 and X2. [5 Marks]
(b) Using R, simulate n = 1000 samples from X. Transform the data to Z = 􏰁 Z Z Z 􏰂, 123
where Z1 = X2 −X3, Z2 = X2 +X1 and Z3 = Z1 +Z2. Plot the scatter-plots of pairs of observations and do the test to confirm the multivariate normality of Z. To generate the data, set the seed equal to the last 3 digits of your student zID; i.e., if your student zID is 1234567, you need to use ”‘set.seed(567)”’. Interpret the result of the test. [15 Marks]
Question 2. [25 Marks]
(a) State, explicitly, all possible values that a and b can take in order for the following matrix to
be a covariance matrix. Give arguments that justify your answer [5 Marks]

(b) Withou using using R, compute the eigenvalues and the eigenvectors of the matrix [10 Marks]
13 −4 Σ= 
(c) Using R, confirm the eigenvalues and the eigenvectors of Σ obtained in (b) and define the
matrix P and the diagonal matrix Λ such that Σ = P ΛP T . [10 Marks]
    
  2   Question 3. [25 Marks] Consider X = X1 ∼ N 2 , 1 0
  and b =   .
(a) Show that aT X and bT X are independent. [5 Marks]
(b) Using R, simulate n = 1000 samples from X and use the appropriate plot to confirm inde- pendence of aT X and bT X, visually. Make sure to set the seed equal to the last 3 digits of your student zID, as in Question 1. [10 Marks]
(c) Assume that the mean and covariance matrix of the simulated data is unknown. Find the ML estimators for μ and Σ based on the sample. [10 Marks]

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com