MathFin
Map / Statistics / MathFin.Choice.Performance.LabelUniqueness

Per-observation uniqueness bound for overlapping-label samples

MathFin.Choice.Performance.LabelUniquenessMSC 62M10JEL C58 source

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.

Main definitions

  • 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.

Main results

  • 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).

Tags

overlapping labels, sample uniqueness, concurrency, López de Prado, sample weights, MSC 62M10, JEL C58

Import neighbourhood

Above: what it imports. Below: what imports it.

Declarations 6

defMathFin.concurrencysource
{ι : Type u_1} → [Fintype ι] → (ι → ℝ) → (ι → ℝ) → ℝ → ℝ

Concurrency at time t: the number of observations whose span [t0 i, t1 i] contains t.

defMathFin.uniquenesssource
{ι : Type u_1} → [Fintype ι] → (ι → ℝ) → (ι → ℝ) → ℝ → ι → ℝ

Per-observation uniqueness at time t: 1 / c_t if i's span contains t, else 0.

theoremMathFin.one_le_concurrencysource
∀ {ι : Type u_1} [Fintype ι] (t0 t1 : ι → ℝ) {t : ℝ} {i : ι}, t ∈ Set.Icc (t0 i) (t1 i) → 1 ≤ concurrency t0 t1 t
theoremMathFin.concurrency_possource
∀ {ι : Type u_1} [Fintype ι] (t0 t1 : ι → ℝ) {t : ℝ} {i : ι}, t ∈ Set.Icc (t0 i) (t1 i) → 0 < concurrency t0 t1 t
theoremMathFin.uniqueness_mem_Iocsource
∀ {ι : Type u_1} [Fintype ι] (t0 t1 : ι → ℝ) {t : ℝ} {i : ι}, t ∈ Set.Icc (t0 i) (t1 i) → uniqueness t0 t1 t i ∈ Set.Ioc 0 1

The headline bound: an observation whose span contains t has uniqueness strictly positive and at most 1.

theoremMathFin.concurrency_sumElimsource
∀ {ι : 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' t

Concurrency of a pooled sample: the labels of ι ⊕ κ active at t are those of ι and those of κ, so the concurrencies add.