{ι : Type u_1} → [Fintype ι] → (ι → ℝ) → (ι → ℝ) → ℝ → ℝConcurrency at time t: the number of observations whose span [t0 i, t1 i] contains t.
López de Prado (Advances in Financial Machine Learning, ch. 4) measures how much an overlapping-label observation i (with span [t0 i, t1 i]) overlaps its peers via the concurrency c_t = Σᵢ 1[t ∈ [t0 i, t1 i]] and the per-observation uniqueness u_{t,i} = 1[t ∈ span i] / c_t.
This file states both over a finite index type ι and proves the basic bound used to justify uniqueness-weighted sampling: whenever i's span actually contains t, u_{t,i} ∈ (0, 1]. The average uniqueness of observation i (the mean of u_{t,i} over i's span) is not defined here.
concurrency: the number of observations whose span [t0 i, t1 i] contains t.uniqueness: the per-observation uniqueness at t, 1 / c_t if the span of i contains t and 0 otherwise.concurrency_pos: c_t > 0 whenever some span contains t.uniqueness_mem_Ioc: u_{t,i} ∈ (0, 1] whenever t ∈ span i.concurrency_sumElim: the concurrency of a pooled sample ι ⊕ κ is the sum of the two samples' concurrencies (used by Choice/Performance/PurgedCV.lean).overlapping labels, sample uniqueness, concurrency, López de Prado, sample weights, MSC 62M10, JEL C58
Above: what it imports. Below: what imports it.
{ι : Type u_1} → [Fintype ι] → (ι → ℝ) → (ι → ℝ) → ℝ → ℝConcurrency at time t: the number of observations whose span [t0 i, t1 i] contains t.
{ι : Type u_1} → [Fintype ι] → (ι → ℝ) → (ι → ℝ) → ℝ → ι → ℝPer-observation uniqueness at time t: 1 / c_t if i's span contains t, else 0.
∀ {ι : Type u_1} [Fintype ι] (t0 t1 : ι → ℝ) {t : ℝ} {i : ι}, t ∈ Set.Icc (t0 i) (t1 i) → 1 ≤ concurrency t0 t1 t∀ {ι : Type u_1} [Fintype ι] (t0 t1 : ι → ℝ) {t : ℝ} {i : ι}, t ∈ Set.Icc (t0 i) (t1 i) → 0 < concurrency t0 t1 t∀ {ι : Type u_1} [Fintype ι] (t0 t1 : ι → ℝ) {t : ℝ} {i : ι}, t ∈ Set.Icc (t0 i) (t1 i) → uniqueness t0 t1 t i ∈ Set.Ioc 0 1The headline bound: an observation whose span contains t has uniqueness strictly positive and at most 1.
∀ {ι : Type u_1} [Fintype ι] {κ : Type u_2} [Fintype κ] (t0 t1 : ι → ℝ) (t0' t1' : κ → ℝ) (t : ℝ), concurrency (Sum.elim t0 t0') (Sum.elim t1 t1') t = concurrency t0 t1 t + concurrency t0' t1' tConcurrency of a pooled sample: the labels of ι ⊕ κ active at t are those of ι and those of κ, so the concurrencies add.