# Generate multivariate normal data

0

How can I generate data from multivariate normal distribution?

0

Use the GAUSS function rndMVn to create random multivariate normal numbers. Here is a quick example:

```cov = { 1 0.3, 0.3 1 };
m = { 0, 0 };
x = rndMVn(10, m, cov);
```

It will assign x to something similar to:

```      0.13556258       0.70364339
1.3377170        1.7658075
0.45610105        1.0462764
0.80858336       0.61191143
-0.12203310        1.1235922
-0.33557195       -1.1784729
0.64867047       0.64239651
-1.3486377      -0.35377445
0.25183689      -0.38000242
1.4196805        2.1463587
```

Note that the mean, m, must be specified for each column. If you at some point need multivariate t distributed numbers, you can use rndMVt

aptech
605
0

I dont have that function because i'm using Gauss 9.0. I also have GaussX.

0
```cov = {   1  0.3,
0.3    1 };

m = { 0, 0 };

x = rndn(10,2);

x1 = x * chol(cov) + m';
```

• ### Aptech Systems, Inc. Worldwide Headquarters

Aptech Systems, Inc.
2350 East Germann Road, Suite #21
Chandler, AZ 85286

Phone: 360.886.7100
FAX: 360.886.8922

• ### Training & Events

Want more guidance while learning about the full functionality of GAUSS and its capabilities? Get in touch for in-person training or browse additional references below.

• ### Tutorials

Step-by-step, informative lessons for those who want to dive into GAUSS and achieve their goals, fast.

• ### Have a Specific Question?

Get a real answer from a real person

• Need Support?
• ### Support Plans

Premier Support and Platinum Premier Support are annually renewable membership programs that provide you with important benefits including technical support, product maintenance, and substantial cost-saving features for your GAUSS System or the GAUSS Engine.

• ### User Forums

Join our community to see why our users are considered some of the most active and helpful in the industry!