Manuals/calci/BERNOULLI

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

RANDOMNUMBERGENERATION(Number, RandomNumber, Distribution,  NewTableFlag, ProbabilityValue)

where,

Number - represents the number of variables.

RandomNumber - represents the number of random number

Distribution - represents the distribution method(i.e bernoulli) 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.

ProbabilityValue - represents the probability value and should be in range 0 to 1.


A theoretical distribution of the number of successes in a finite set of independent trials with a constant probability of success is called bernoulli distribution.

Lets see an example in (Column1Row1)

=RANDOMNUMBERGENERATION(3, 4, "Bernoulli", TRUE, 0.5)

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

=RANDOMNUMBERGENERATION(5, 4, "Bernoulli", TRUE, -1)

RANDOMNUMBERGENERATION returns the #ERROR(ProbabilityValue < 0).


RANDOM NUMBER GENERATION : BERNOULLI


Syntax

Remarks

Examples

Description

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

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



Random Number Generation
Bernoulli Distribution
0 0 0
0 0 0
0 1 1
0 0 1