Message Boards Message Boards

GROUPS:

How to generate correlated Normal random variables

Posted 9 years ago
7539 Views
|
1 Reply
|
1 Total Likes
|
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 9 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