About the generation of correlated random variables
5 次查看(过去 30 天)
显示 更早的评论
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.)
回答(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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!