Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help me using R? Suppose X and Y are correlated normal random variables with mean and covariance matrices ux 20 O 9 12

Can someone help me using R?

image text in transcribed
Suppose X and Y are correlated normal random variables with mean and covariance matrices ux 20 O 9 12 U = MY 10 -2 12 25 Use R to simulate 1000 x, y-pairs according to this bivariate distribution and make a scatterplot of the points. Make sure the x- and u- ranges are exactly the same (like 0 to 40, and -10 to 30, respectively). Hint: use the murnorm() function from the MASS package. Next, find the eigenvectors of the covariance matrix with the eigen () command. Note R gives unit eigenvectors (their lengths are 1). Draw these eigenvec- tors on your scatterplot using arrows(). You might want to multiply them by a factor of 10 each to stretch them out. What do you ob- serve? It turns out that eigenvectors of any real, symmetric matrix are orthogonal

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mathematics For The Liberal Arts

Authors: Donald Bindner, Martin J Erickson, Joe Hemmeter

1st Edition

1118371747, 9781118371749

More Books

Students also viewed these Mathematics questions