Sequences drawn from a prediction rule #
A prediction rule gives, after every finite sequence of draws, the distribution of the next
draw: a family of kernels κ n : Kernel (Fin n → α) α ([Pit06] p. 45 and p. 58).
seqLaw κ n is the law of the first n draws, built one draw at a time: the empty sequence,
then the joint law of the sequence so far and the next draw, appended with Fin.snoc.
On a countable space the mass of a sequence is the product, along the sequence, of the
probability of each draw given the ones before it (seqLaw_singleton). This is the Fin-indexed
form of the Ionescu–Tulcea partial trajectory: after the first draw, the law of the next n is
ProbabilityTheory.Kernel.partialTraj of the prediction rule read on trajectories
(seqLaw_succ_eq_map_partialTraj).
Main definitions #
ProbabilityTheory.seqLaw κ n: the law of the firstndraws of the prediction ruleκ.ProbabilityTheory.seqTrajectory κ: the law of the whole sequence of draws, the Ionescu–Tulcea trajectory measure started at the first draw.
Main results #
ProbabilityTheory.isProbabilityMeasure_seqLaw: a Markov prediction rule gives probability laws.ProbabilityTheory.seqLaw_succ_singleton_snoc,ProbabilityTheory.seqLaw_singleton: the chain rule on a countable space.ProbabilityTheory.integral_seqLaw_succ: the chain rule for expectations.ProbabilityTheory.seqLaw_succ_eq_map_partialTraj: the law as a partial trajectory.ProbabilityTheory.seqTrajectory_map_frestrictLe: the first draws of the whole sequence have the law of the first draws.
References #
The law of the first n draws of the sequence with prediction rule κ: each draw is
sampled from κ at the sequence so far and appended to it.
Equations
- ProbabilityTheory.seqLaw κ 0 = MeasureTheory.Measure.dirac default
- ProbabilityTheory.seqLaw κ n.succ = MeasureTheory.Measure.map (fun (p : (Fin n → α) × α) => Fin.snoc p.1 p.2) ((ProbabilityTheory.seqLaw κ n).compProd (κ n))
Instances For
The chain rule for expectations: integrating over the first n + 1 draws integrates the next
draw against the prediction rule, then the first n.
The chain rule, one draw at a time: appending c to s multiplies its mass by the
probability of drawing c after s.
The chain rule: the mass of a sequence is the product of the probability of each draw given the draws before it.
The law as a partial trajectory #
The times 0, …, n are the indices of the first n + 1 draws.
Equations
- n.iicEquivFin = { toFun := fun (i : ↥(Finset.Iic n)) => ⟨↑i, ⋯⟩, invFun := fun (j : Fin (n + 1)) => ⟨↑j, ⋯⟩, left_inv := ⋯, right_inv := ⋯ }
Instances For
A trajectory up to time n as the sequence of its first n + 1 draws.
Equations
- ProbabilityTheory.trajEquivFin n = MeasurableEquiv.piCongrLeft (fun (x : Fin (n + 1)) => α) n.iicEquivFin
Instances For
The prediction rule read on trajectories: after the draws at times 0, …, n, the law of the
draw at time n + 1.
Equations
- ProbabilityTheory.trajRule κ n = (κ (n + 1)).comap ⇑(ProbabilityTheory.trajEquivFin n) ⋯
Instances For
After the first draw, the next n draws of a prediction rule are the partial trajectory of
the rule read on trajectories.
The law of the whole sequence of draws of the prediction rule κ: the Ionescu–Tulcea
trajectory measure started at the first draw.
Equations
- ProbabilityTheory.seqTrajectory κ = ProbabilityTheory.Kernel.trajMeasure ((κ 0) default) (ProbabilityTheory.trajRule κ)
Instances For
The first n + 1 draws of the whole sequence have the law of the first n + 1 draws.