NLA-lib Explorer

NLAlib.samplingSketchWithoutReplacement_eq_map

Library · theorem

The law of the row-sampling sketch without replacement is the pushforward of a uniform injection under any measurable space on n with measurable singletons.

NLAlib.samplingSketchWithoutReplacement_eq_map.{u_2, u_3, u_4} {𝕜 : Type u_2} [RCLike 𝕜]
  {k : Type u_3} {n : Type u_4} [Fintype k] [Fintype n] [DecidableEq n] [MeasurableSpace n]
  [MeasurableSingletonClass n] :
  samplingSketchWithoutReplacement k n =
    Measure.map (samplingSketchMatrix fun x ↦ (↑(Fintype.card n))⁻¹)
      (uniformOn {ι | Function.Injective ι})

Full source on GitHub

Import NLAlib.Sketching.Sampling.WithoutReplacement.