how to generate a vector of uncorrelated random varaibles

Hi all, I like to generate a vector of uncorrelated random variables in matlab? is anyone have some suggestion to me? Thanks

 채택된 답변

Oleg Komarov
Oleg Komarov 2012년 2월 6일
Any distribution centered on 0 will yield uncorrelated vectors as long as you have enough observations:
v = rand(1e5,2);
corr(v)

댓글 수: 2

Hi Oleg, what is the principle underlying this conclusion?
what i like to get is: RVs=[a1, a2, a3, a4], a1...a5 are mutually uncorrelated, how to simulate the samples of this vector.
thanks again.
Most MATLAB random number generators (rand, randn, others) will generate arrays in which the columns are theoretically uncorrelated. That is, any sample correlation between them is just random. Only a few functions (mvnrnd) generate data with theoretical correlation.
If you need exactly zero sample correlation, then you'll probably have to impose that yourself. That will make the samples no longer independent, though.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Descriptive Statistics and Insights에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by