Question 1. Consider a p-dimensional response variable j, containing p variables, with n observation vectors 1,..., In. The sample mean vecior of these observation vectors is denoted by j = (1/n) E1 Fi. a) Given that the sample covariance matrix, S, is defined by 1 S = (或一司) (五一)", n-1 1=1 i) Show that 1 S = n - 1 i=1 ii) Using the above result, show that S can alternatively be defined as - ) "צ דה - 1 Y 1 S = Y, where Y is the data matrix, I is the identity matrix and J is a matrix of 1's. [Hint: Consider re-writing the mean vector in terms of the data matrix (see lecture notes).)

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
Please solve correctly part (b) Only in half hour please show neat and clean work
Question 1. Consider a p-dimensional response variable j, containing p variables, with n observation
vectors j1, ..., n. The sample mean vector of these observation vectors is denoted by = (1/n)E1 Fi.
a) Given that the sample covariance matrix, S, is defined by
n
1
(5i – 5) (7. – 5)" ,
S
-
1=1
i) Show that
S =
i=1
ii) Using the above result, show that S can alternatively be defined as
s=" (1-) .
yT
Y,
n -
where Y is the data matrix, I is the identity matrix and J is a matrix of 1's.
[Hint: Consider re-writing the mean vector g in terms of the data matrix (see lecture notes).
b) Consider the following (3x3) data matrix, containing three observations of three variables y1, y2 and y3:
5 2 2
1 3 5
6 4 1
Y =
Calculate
i) The sample covariance matrix S (by hand);
ii) The sample correlation matrix R (by hand) using the equation
R= D,-SD,-',
and comment on each of the three elements in the first column of this matrix.
[Hint: Recall how to find the inverse of a diagonal matrix.]
Transcribed Image Text:Question 1. Consider a p-dimensional response variable j, containing p variables, with n observation vectors j1, ..., n. The sample mean vector of these observation vectors is denoted by = (1/n)E1 Fi. a) Given that the sample covariance matrix, S, is defined by n 1 (5i – 5) (7. – 5)" , S - 1=1 i) Show that S = i=1 ii) Using the above result, show that S can alternatively be defined as s=" (1-) . yT Y, n - where Y is the data matrix, I is the identity matrix and J is a matrix of 1's. [Hint: Consider re-writing the mean vector g in terms of the data matrix (see lecture notes). b) Consider the following (3x3) data matrix, containing three observations of three variables y1, y2 and y3: 5 2 2 1 3 5 6 4 1 Y = Calculate i) The sample covariance matrix S (by hand); ii) The sample correlation matrix R (by hand) using the equation R= D,-SD,-', and comment on each of the three elements in the first column of this matrix. [Hint: Recall how to find the inverse of a diagonal matrix.]
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
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 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…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
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
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman