Manuals/calci/DISCRETE

From ZCubes Wiki
Revision as of 20:33, 24 October 2013 by MassBot1 (talk | contribs) (Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''RANDOMNUMBERGENERATION'''(Number, RandomNumber, Distribution,  NewTableFlag, Value, Probability) where, ''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

RANDOMNUMBERGENERATION(Number, RandomNumber, Distribution,  NewTableFlag, Value, Probability)

where,

Number - represents the number of variables.

RandomNumber - represents the number of random number

Distribution - represents the distribution method(i.e discrete) to create random values.

NewTableFlag - is the TRUE or FALSE.If set as TRUE,the result in new sheet. If NewTableFlag is omitted, it assumed to be FALSE.

ValueArr - represents the values.

Probability - represents the probability value.


A discrete distribution is a distribution of a random variable that takes only finite set of values

Lets see an example in (Column1Row1)

=RANDOMNUMBERGENERATION(3, 4, "discrete", TRUE,[4,5,6,3,2,1],[0.2,0.1,0.3,0.2,0.1,0.1])

RANDOMNUMBERGENERATION returns the result in new sheet(13Space).

=RANDOMNUMBERGENERATION(5, 4, "discrete", TRUE, [2,1],[0.3,0.9])

RANDOMNUMBERGENERATION returns the #ERROR(sumofProbability >1).


RANDOM NUMBER GENERATION : DISCRETE


Syntax

Remarks

Examples

Description

If Number < 0 or RandomNumber < 0, RANDOMNUMBERGENERATION returns the #ERROR.

RANDOMNUMBERGENERATION returns the #ERROR, if Probability< 0 or Probability >1.


Random Number Generation
Binomial Distribution
0 1 1
1 0 2
0 2 1
1 1 1

Random Number Generation
Poisson Distribution
0 0 1
1 1 2
0 1 0
2 2 1


Random Number Generation
Discrete Distribution
1 6 6
4 5 5
3 1 6
3 6 3