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
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
2014 年 6 月 17 日
編集済み: ahmed abrous
2014 年 6 月 17 日
回答 (1 件)
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
カテゴリ
ヘルプ センター および File Exchange で Spectral Estimation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!