generating correlated series
古いコメントを表示
Hi Does anyone know of a way to generate series that have a defined correlation, mean and variance? i.e. I want to be able to say "the correlation between the first series and the second is 0.5, between the first and the 3rd is 0.8 etc". Also want to be able to say "mean and variance of the first is 1 and 0.5 respectively etc" for the other series. The last requirement is that none of the values in any of the series can be less than -1. Could anyone help me? I've honestly spent the whole day trying to sort this out!! Thanks!
4 件のコメント
Oleg Komarov
2011 年 6 月 27 日
Pdf of the series?
Michael
2011 年 6 月 27 日
Oleg Komarov
2011 年 6 月 27 日
probability density functions: uniform, normal,...
Michael
2011 年 6 月 27 日
回答 (1 件)
Oleg Komarov
2011 年 6 月 27 日
0 投票
If you have the stats TB then you just have to use mvnrand, otherwise you can read this reference (pretty straightforward): http://www.columbia.edu/~mh2078/MCS04/MCS_framework_FEegs.pdf chapter 3.
2 件のコメント
Michael
2011 年 6 月 27 日
Oleg Komarov
2011 年 6 月 28 日
TB = Toolbox;
Then you probability want to truncate the gaussian: http://www.mathworks.com/matlabcentral/fileexchange/23832-truncated-gaussian
カテゴリ
ヘルプ センター および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!