|
|
(14 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | = CumGeometric(k,p) =
| + | #REDIRECT[[Geometric distribution#CumGeometric]] |
− | | + | [[Category: Analytic Distribution Functions]] |
− | The cumulative probability function for the <code>[[Geometric]](p)</code> distribution.
| + | [[Category: Distribution Densities library functions]] |
− | | + | [[category:Cumulative distribution functions]] |
− | Computes the probability that at most «k» independent [[Bernoulli]] trials would be required before the first success is obtained. The probability of success on each trial is «p».
| |
− | | |
− | = Library =
| |
− | | |
− | :[[Distribution Densities Library]] (<code>"Distribution Densities.ana"</code>) | |
− | | |
− | This function was included in this library for the first time in the Analytica 4.4.3 patch release. But the function will work in earlier releases, so if you need it you can grab the most recent version of the [[Distribution Densities Library]].
| |
− | | |
− | = Example =
| |
− | | |
− | If you enter a lottery every day of the year, where each entry has odds of 1 chance in 1M of winning, what is the probability that you will win within one year? How about within 10 years?
| |
− | | |
− | :<code>[[CumGeometric]]( 365, 1/1M )</code> → 3.649e-004
| |
− | :<code>[[CumGeometric]]( 3653, 1/1M )</code> → 3.646e-003 | |
− | | |
− | What is the probability of rolling doubles ten times in a row with a pair of fair dice? To encode this, treat a success as a non-double roll, which has a probability of 5/6, so the answer is given by
| |
− | :<code>1-[[CumGeometric]](10, 5/6)</code> → 1.654e-008
| |
− | | |
− | = See Also =
| |
− | | |
− | * [[Geometric]](p)
| |
− | * [[Prob_Geometric]], [[CumGeometricInv]]
| |
Enable comment auto-refresher