intRight
intRight, function
def pure intRight(r: ranvar, a: number): number
Returns the probability mass of r over `[a, \infty)$.
r: ranvar to integrate.a: left bound.
Examples
r = poisson(3)
table T = with
[| as A |]
[| 0 |]
[| 2 |]
T.Sum = intRight(r, T.A)
show table "Right integral" with
T.A
T.Sum
This produces the following table:
| A | Sum |
|---|---|
| 0 | 1 |
| 2 | 0.8008485 |
Remarks
intRight(r, a) is equivalent to int(r, a, support.max(r)).