Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Application of Cholesky decomposition (Matlab Programing) a) Write a program (cholprog.m) to find Cholesky decomposition of a symmetric positive definite matrix A Rnxn. Hint: Cholesky

image text in transcribed

Application of Cholesky decomposition (Matlab Programing) a) Write a program (cholprog.m) to find Cholesky decomposition of a symmetric positive definite matrix A Rnxn. Hint: Cholesky decomposition is A = LL", where L E Rnx" is a lower triangular matrix. b) We need to generate correlated random vectors, sampled from distribution N(u, E) for given mean u R and covariance matrix Rnxn. Write a program (corrNRV.m) to first generate M uncorrelated random vectors sampled from N(0,I) (using MATLAB command randn) followed by a procedure to generate y ~ N(u, 2) from &; ~ (0,1) for i {1,2..., M} by applying Cholesky decomposition on E. Note that this program is a widely used procedure to generate correlated random vectors from uncorrelated random vectors (not restricted to normal random vectors as well). For n = 2 and 3, write a program (Q2 2b.m) to plot 1000 uncorrelated random vectors sampled from N(0,1) and output correlated vectors for fixed p = 0 and covariance matrix & = 0.025 0.0075 0.001757 0.025 0.0075] 0.0075 0.007 0.00135 0.0075 0.007 (0.00175 0.00135 0.00043 Application of Cholesky decomposition (Matlab Programing) a) Write a program (cholprog.m) to find Cholesky decomposition of a symmetric positive definite matrix A Rnxn. Hint: Cholesky decomposition is A = LL", where L E Rnx" is a lower triangular matrix. b) We need to generate correlated random vectors, sampled from distribution N(u, E) for given mean u R and covariance matrix Rnxn. Write a program (corrNRV.m) to first generate M uncorrelated random vectors sampled from N(0,I) (using MATLAB command randn) followed by a procedure to generate y ~ N(u, 2) from &; ~ (0,1) for i {1,2..., M} by applying Cholesky decomposition on E. Note that this program is a widely used procedure to generate correlated random vectors from uncorrelated random vectors (not restricted to normal random vectors as well). For n = 2 and 3, write a program (Q2 2b.m) to plot 1000 uncorrelated random vectors sampled from N(0,1) and output correlated vectors for fixed p = 0 and covariance matrix & = 0.025 0.0075 0.001757 0.025 0.0075] 0.0075 0.007 0.00135 0.0075 0.007 (0.00175 0.00135 0.00043

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_2

Step: 3

blur-text-image_3

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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

EXPLAIN how HR technology has evolved.

Answered: 1 week ago

Question

=+How might these stem from country and regional cultures?

Answered: 1 week ago