About the generation of correlated random variables

Hi everyone,
I have a question to ask on this forum. I want to create random variables from the correlation matrix, found from the PSD function.
How can I proceed,
Thank you.

댓글 수: 2

John D'Errico
John D'Errico 2014년 6월 16일
편집: John D'Errico 2014년 6월 16일
Random variables from WHAT distribution? (Sort of a trick question. Anything but a normal distribution will be somewhat difficult.)
ahmed abrous
ahmed abrous 2014년 6월 17일
편집: ahmed abrous 2014년 6월 17일
In fact, I have a PSD function (Power spectral density) and I want to create a Gaussian stationary random variables from that psd.

댓글을 달려면 로그인하십시오.

답변 (1개)

Honglei Chen
Honglei Chen 2014년 6월 16일
Here is an example
sigma = [1 0.2;0.2 1];
x = randn(1000,2)*chol(sigma);
corrcoef(x) % verify

카테고리

질문:

2014년 6월 16일

편집:

2014년 6월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by