Difference between revisions of "CumBinomialInv"

 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= CumBinomialInv(u,n,p) =
+
#REDIRECT[[Binomial distribution#CumBinomialInv]]
 
+
[[Category: Analytic Distribution Functions]]
Computes the inverse cumulative probability for the binomial distribution, <code>[[Binomial]](n,p)</code>. Returns the greatest number ''k'' such that the probability of seeing ''k'' or fewer successes among «n» independent trials, each individual trial having a success probability of «p», is less than or equal to «u».  The result is a number between 0 and «n» inclusive.
+
[[Category: Distribution Densities library functions]]
 
+
[[category:Inverse cumulative probability functions]]
'''Parameters:'''
 
* «u» : The overall probability of ''k'' successes in «n» trials (where ''k'' is the result).  This is also known as the fractile or quartile level of the outcome. Must be <code>0 &le; «u» &le; 1</code>.
 
* «n» : The number of trials.
 
* «p» : The probability of success for each individual trial.  <code>0 &le; «p» &le; 1</code>
 
 
 
Notice that there are two probabilities here, «u» and «p».  You need to keep these straight.  These are the probability across all trials («u») and the probability for each individual trial («p»). 
 
 
 
== Library ==
 
 
 
:<code>Distribution Variations.ana</code>
 
 
 
This function was included in the <code>Distribution Variations.ana</code> library for the first time with the Analytica 4.4.3 release.  The function itself, however, should work fine in earlier 4.x releases of Analytica.
 
 
 
== Examples ==
 
 
 
An experiment is to be conducted that will consist of rolling a die 100 times and counting the number of times a 6 is rolled.  With a 75% probability, the number of sixes that will be observe will be less than or equal to:
 
:<code>[[CumBinomialInv]](75%, 100, 1/6 )</code>
 
 
 
 
 
[[CumBinomialInv]] is the inverse of [[CumBinomial]], so that for all n&ge;0, 0&le;k&le;n, and 0&le;p&le;1, the following holds
 
:<code>[[CumBinomialInv]]( [[CumBinomial]]( k,n,p ), n,p ) &rarr; k</code>
 
 
 
== Excel equivalent ==
 
 
 
Excel has two functions that are equivalent to [[CumBinomialInv]]: CRITBINOM(p,n,u) and BINOM.INV(p,n,u).  Apprently CRITBINOM is deprecated, and BINOM.INV is the more modern.  Just note that the first and third parameters are swapped in Excel vs. [[CumBinomialInv]].  The convention among Analytica's <code>Cum«Distribution»Inv</code> functions is for the first parameter to be the fractile level, and then for the remaining parameters to be the distribution parameter(s).
 
 
 
= See Also =
 
 
 
* [[CumBinomial]] --- ''the CDF function for the Binomial distribution''
 
* [[Prob_Binomial]] --- ''the probability function for the Binomial distribution''
 
* [[Binomial]]  -- ''The binomial distribution function''
 
* [[CumNormalInv]]
 

Latest revision as of 01:14, 8 December 2018

Comments


You are not allowed to post comments.