NLA-lib Explorer

Row sampling without replacement

Library · Source module

Row sampling without replacement

Sampling \lvert k \rvert rows of an n-row matrix without replacement, in order, is a uniformly random injection \iota : k \to n (uniformOn {ι : k → n | Function.Injective ι}), and the sketch is NLAlib.samplingSketchMatrix at uniform weights: row j is \sqrt{\lvert n \rvert / \lvert k \rvert}\, \mathbf{e}_{\iota(j)}^{\mathsf{H}}, so the sketch is \sqrt{\lvert n \rvert / \lvert k \rvert}\, \mathbf{P}^{\mathsf{H}} for the selection matrix \mathbf{P} of \iota. Its law NLAlib.samplingSketchWithoutReplacement k n is the pushforward of the uniform injection; the measurable space on the row index n is fixed to ⊤ inside the definition, so no statement carries an instance on n, and NLAlib.samplingSketchWithoutReplacement_eq_map recovers the pushforward under any measurable space on n with measurable singletons.

For a fixed \mathbf{U} : n \times r of any shape and rank whose leverage scores are dominated by uniform weights, \ell_i(\mathbf{U}) \le L / \lvert n \rvert, the sketch is a random subspace injection with failure probability d\, e^{-\varepsilon^2 k / (2L)} and a random subspace embedding with constants 1 \mp \varepsilon and failure probability 2 d\, e^{-\varepsilon^2 k / (3L)} for 0 \le \varepsilon \le 1, d = \operatorname{rank}\mathbf{U}: the bounds of uniform sampling with replacement (NLAlib.hasSubspaceEmbedding_of_hasLaw_samplingSketch_const_inv_card), here from the matrix Chernoff inequalities without replacement (NLAlib.Probability.MatrixConcentration.ChernoffWithoutReplacement). With L the coherence of \mathbf{U} the domination always holds. The sample sizes are those of sampling with replacement: <!-- value samplingEmbeddingDim d L \varepsilon \delta --> \lvert k \rvert \ge 3 L \log(2d/\delta)/\varepsilon^2 for the embedding (NLAlib.samplingEmbeddingDim) and <!-- value samplingInjectionDim d L \varepsilon \delta --> \lvert k \rvert \ge 2 L \log(d/\delta)/\varepsilon^2 for the injection (NLAlib.samplingInjectionDim).

Degenerate cases. For \lvert n \rvert < \lvert k \rvert there is no injection and the law is the zero measure, so HasLaw forces \mu = 0 and every tail holds; no \lvert k \rvert \le \lvert n \rvert is assumed on the tails. For empty k the law is a Dirac mass at \mathbf{0}, the bound d \cdot e^0 is at least 1 when \mathbf{U} \ne \mathbf{0}, and the sketch is not isotropic, hence [Nonempty k] on isotropy. Rank zero: every failure event is empty. L \le 0 forces rank zero, so no 0 < L is assumed. For \varepsilon \ge 1 the injection is vacuous. The tails rest on Hoeffding's comparison of sampling without and with replacement (NLAlib.Probability.ConvexOrder).

Main definitions

* NLAlib.samplingSketchWithoutReplacement: the law of the sketch.

Main results

* NLAlib.samplingSketchWithoutReplacement_eq_sum_smul_dirac, NLAlib.samplingSketchWithoutReplacement_eq_map, NLAlib.hasLaw_samplingSketchMatrix_of_hasLaw_uniformOn_injective: the law as a mixture, as a pushforward, and the bridge from a user's own injection. * NLAlib.isIsotropicSketch_of_hasLaw_samplingSketchWithoutReplacement: isotropy. * NLAlib.hasSubspaceInjection_of_hasLaw_samplingSketchWithoutReplacement, NLAlib.hasSubspaceEmbedding_zero_of_hasLaw_samplingSketchWithoutReplacement: the two halves. * NLAlib.hasSubspaceEmbedding_of_hasLaw_samplingSketchWithoutReplacement: row sampling without replacement under leverage domination; NLAlib.hasSubspaceEmbedding_coherence_of_hasLaw_samplingSketchWithoutReplacement at the coherence. * hasSubspaceEmbedding_of_hasLaw_samplingSketchWithoutReplacement_of_samplingEmbeddingDim_le and its lower-half twin hasSubspaceInjection_of_hasLaw_samplingSketchWithoutReplacement_of_samplingInjectionDim_le: sample sizes. * NLAlib.exists_forall_hasSubspaceEmbedding_of_hasLaw_samplingSketchWithoutReplacement, NLAlib.exists_forall_hasSubspaceInjection_of_hasLaw_samplingSketchWithoutReplacement: the asymptotic forms.

Declarations