Equations
- MindFormal.A641Practice.lessonTail p m N = ∑ d ∈ Finset.range m, MindFormal.A641Practice.slotMass p N d
Instances For
The full finite pattern law of independent Bernoulli lesson slots. This is a sampling premise; neither a count law nor a waiting-time law is assumed. Restriction to a finite prefix keeps all joint slot indicators.
- measurable : Measurable X
- patterns (N : ℕ) : ProbabilityTheory.HasLaw (fun (ω : Ω) => X ω ∩ Set.Iio N) (ProbabilityTheory.setBernoulli (Set.Iio N) p) μ
Instances For
The number of slots up to the m-th usable lesson, including infinity on a stream that never supplies it. Each not-yet-successful prefix pays one further slot. This is the tail-count definition of the hitting time.
Equations
- MindFormal.A641Practice.BernoulliSlots.waitingSlots m ω = ∑' (N : ℕ), if MindFormal.A641Practice.lessonCount X N ω < m then 1 else 0
Instances For
On a stream whose m-th success first occurs at slot N, the constructed hitting time is exactly N. Its laws below are consequences of sampling.
Calendar time pays each sampled slot and the separate fixed costs. The expectation follows from the constructed hitting time, including its infinite-stream convention, rather than from an assumed waiting law.