Difference between revisions of "CumBernoulliInv"

(Added to 5.0 release of distribution densities library)
 
Line 4: Line 4:
 
''new to [[Analytica 5.0]]''
 
''new to [[Analytica 5.0]]''
  
== CumBernoulliInv( u, p ) ==
+
== CumBernoulliInv(u, p) ==
  
The inverse cumulative distribution function for the [[Bernoulli]] distribution.  Returns the smallest <code>[[Bernoulli]](«p»)</code> outcome, x, such that the probability of a random variate being less than or equal to x is at least «u».
+
The inverse cumulative distribution function for the [[Bernoulli]] distribution.  Returns the smallest [[Bernoulli]](p) outcome, ''x'', such that the probability of a random variate being less than or equal to ''x'' is at least «u».
  
 
Both «u» and «p» should be between 0 and 1.
 
Both «u» and «p» should be between 0 and 1.
Line 18: Line 18:
 
== Examples ==
 
== Examples ==
  
:<code>[[CumBernoulliInv]]( 0.5, 0.8 )<code> &rarr; 1
+
:<code>CumBernoulliInv(0.5, 0.8) &rarr; 1</code>
There is a 0,2 probability of an outcome of 0, which is not "at least" u=0.5. The probability that the outcome is less than or equal to 1 is 1.0, and 0.0 is at least u=0.5, so the result here is the outcome 1.
+
 
 +
There is a 0,2 probability of an outcome of 0, which is not "at least" u = 0.5. The probability that the outcome is less than or equal to 1 is 1.0, and 0.0 is at least u = 0.5, so the result here is the outcome 1.
  
 
== See Also ==
 
== See Also ==

Revision as of 19:04, 18 August 2016


new to Analytica 5.0

CumBernoulliInv(u, p)

The inverse cumulative distribution function for the Bernoulli distribution. Returns the smallest Bernoulli(p) outcome, x, such that the probability of a random variate being less than or equal to x is at least «u».

Both «u» and «p» should be between 0 and 1.

Library

Distribution Densities Library

To use this function, you need to add the Distribution Densities Library to your model.

Examples

CumBernoulliInv(0.5, 0.8) → 1

There is a 0,2 probability of an outcome of 0, which is not "at least" u = 0.5. The probability that the outcome is less than or equal to 1 is 1.0, and 0.0 is at least u = 0.5, so the result here is the outcome 1.

See Also

Comments


You are not allowed to post comments.