Filter löschen
Filter löschen

About the generation of correlated random variables

2 Ansichten (letzte 30 Tage)
ahmed abrous
ahmed abrous am 16 Jun. 2014
Bearbeitet: ahmed abrous am 17 Jun. 2014
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 Kommentare
John D'Errico
John D'Errico am 16 Jun. 2014
Bearbeitet: John D'Errico am 16 Jun. 2014
Random variables from WHAT distribution? (Sort of a trick question. Anything but a normal distribution will be somewhat difficult.)
ahmed abrous
ahmed abrous am 17 Jun. 2014
Bearbeitet: ahmed abrous am 17 Jun. 2014
In fact, I have a PSD function (Power spectral density) and I want to create a Gaussian stationary random variables from that psd.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Honglei Chen
Honglei Chen am 16 Jun. 2014
Here is an example
sigma = [1 0.2;0.2 1];
x = randn(1000,2)*chol(sigma);
corrcoef(x) % verify

Kategorien

Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by