Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Discussion Groups

Discussion Groups | Matlab DSP | How to generate Random Vectors given Covariance Matrix?

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

How to generate Random Vectors given Covariance Matrix? - Yanjun Yan - Mar 30 20:19:00 2003



Hi, All:

Do you know how should I generate the Random Vectors given the Covariance
Matrix?

Or in general, how should I realize the correlation between Random variables?

eg:
X=[x1,x2]
Covariance Matrix is[1,0.5;0.5,1]

I want to generate 1000 samples of X, what should I do?

Thanks a LOT!

Kitty






(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: How to generate Random Vectors given Covariance Matrix? - navaneetha krishnan - Mar 31 0:50:00 2003

Hi,
There is a procedure, where you do cholesky
decomposition of the required covariance matrix and
multiply the generated random numbers with a
triangular matrix obtained from cholesky
decomposition.
If you need only for two variables, this should reduce
to a simple formula.

You can get more info in a statistics book or random
process book.

Navan --- Yanjun Yan <> wrote:
> Hi, All:
>
> Do you know how should I generate the Random Vectors
> given the Covariance
> Matrix?
>
> Or in general, how should I realize the correlation
> between Random variables?
>
> eg:
> X=[x1,x2]
> Covariance Matrix is[1,0.5;0.5,1]
>
> I want to generate 1000 samples of X, what should I
> do?
>
> Thanks a LOT!
>
> Kitty
__________________________________________________




(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )