Message Boards Message Boards

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

RandomVariate for Normal distribution

Posted 3 years ago

Hi, I came accross this example of visualising a 3D histogram of a data sets:

data1 = RandomVariate[NormalDistribution[0, 1], {100, 2}];
data2 = RandomVariate[NormalDistribution[1, 1], {100, 2}];
Manipulate[SmoothHistogram3D[{data1, data2}, ColorFunction -> Function[{x, y, z}, Hue[z]]]]

I am wondering, what are the two components {100, 2} in the two data sets referring to?

POSTED BY: Mary Caisy
Posted 3 years ago

You get 100 samples of 2 numbers (i.e., a 100 x 2 array of independent random numbers from the given distribution).

POSTED BY: Jim Baldwin
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