Message Boards Message Boards

0
|
9346 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

How to generate correlated Normal random variables

Posted 11 years ago
Say, A, B and C are normally distributed random variables. They are correlated. How can I create random realizations for each variable such that the vectors show the given correlation?
Posted 11 years ago
If you provide correlations in covariance matrix you cau useĀ MultinormalDistribution, e.g. (from documentation):
RandomVariate[
MultinormalDistribution[{1, 2, 4}, {{2, -1/4, 1/3}, {-1/4, 2/3, 1/5}, {1/3, 1/5, 1/2}}], 10^3];
This will provide a sample of size 1000 from a correlated multinormal distribution.
POSTED BY: Mark Dooris
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract