Finite distributions #
Distributions on finitely many outcomes with rational probabilities, their rational expectations, and the checks that build them from literal probabilities.
Probabilities for the outcomes 0, ..., probabilities.length - 1.
Zero-probability outcomes retain their indices.
The probability of each outcome, by index.
- nonnegative (p : ℚ) : p ∈ self.probabilities → 0 ≤ p
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Rational expectation of a numeric function of the outcome index.
Equations
Instances For
Check literal probabilities once, preserving their values and outcome indices.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Complete the final probability and check the exact parameter domain.
Equations
- Determinize.Checking.remainderDistribution probabilities = Determinize.Checking.finiteDistribution (probabilities ++ [1 - probabilities.sum])
Instances For
Rational Bernoulli law on outcomes zero and one, including endpoints.