Rademacher sketches
Library · Source module
Rademacher sketches
The sign sketch is \mathbf{S} = \lvert k \rvert^{-1/2} \, \mathbf{X} for a random X : Matrix k n ℝ with independent random signs, HasLaw X (rademacherMatrix k n) μ, where rademacherMatrix k n (in NLAlib.RandomMatrix.Rademacher.Basic) is the law of independent rows, each a rademacherVector n. It is written out in each statement, fun ω => (√(Fintype.card k : ℝ))⁻¹ • X ω, as for the Gaussian sketch.
It is an isotropic sketch, has the distributional Johnson–Lindenstrauss property with the Gaussian sketch's exponent \varepsilon^2/4 - \varepsilon^3/6 (Dasgupta and Gupta's; Achlioptas's argument, through NLAlib.hasJLProperty_of_isSubgaussianVector_of_integral_pow_four_le, since \mathbb{E} \langle \boldsymbol{\xi}, \mathbf{x} \rangle^4 = 3 \|\mathbf{x}\|^4 - 2 \sum_j \mathbf{x}_j^4 \le 3 \|\mathbf{x}\|^4 for a vector \boldsymbol{\xi} of random signs), the exact JL second moment 2 (\|\mathbf{x}\|^4 - \sum_j \mathbf{x}_j^4)/\lvert k \rvert, at most the Gaussian's 2 \|\mathbf{x}\|^4/\lvert k \rvert, and is an oblivious subspace embedding and injection through JL plus a net of radius 1/10 at 4\varepsilon/5. The sample sizes are the Gaussian sketch's NLAlib.jlDim: <!-- value jlDim \varepsilon \delta --> \log(2/\delta)/(\varepsilon^2/4 - \varepsilon^3/6) rows (jlDim ε δ) for JL, and <!-- value jlDim (4\varepsilon/5) (\delta/21^d) --> \log(2/(\delta/21^d))/((4\varepsilon/5)^2/4 - (4\varepsilon/5)^3/6) rows (jlDim (4ε/5) (δ/21^d)) for the OSE and OSI. For \varepsilon \gtrsim 1.43 the sub-Gaussian rows theorem at c = 1 (NLAlib.hasJLProperty_of_isSubgaussianVector with NLAlib.isSubgaussianVector_of_hasLaw_rademacherVector) is better; it is not restated here.
JL moments beyond p = 2. The sub-Gaussian family's JL moment at p = \max(2, \log(1/\delta)) applies at pro\mathbf{x}y 1, with no separate statement: for hX : HasLaw X (rademacherMatrix k n) μ,
hasJLMoment_of_isSubgaussianVector_of_subgaussianJLMomentDim_le hX.iIndepFun_eval (fun i => isSubgaussianVector_of_hasLaw_rademacherVector (hX.eval i)) (fun i => isIsotropic_of_hasLaw_rademacherVector (hX.eval i)) hε hε1 hδ hk
at least <!-- value subgaussianJLMomentDim {\cdot 1} \varepsilon \delta --> 16\cdot 1^2\max(2, \log(1/\delta))/(C\varepsilon^2) rows, with <!-- value subgaussianJLConstant -->C = 1/36, for 0 < \varepsilon \le 1; approximate matrix multiplication with failure probability \delta follows by NLAlib.HasJLMoment.measureReal_frobNorm_conjTranspose_mul_sub_ge_le.
Degenerate cases: for empty k, \mathbf{S} = \mathbf{0}, which is not isotropic, hence [Nonempty k] on isotropy, the OSI and the moments; the JL bound is 2 for \lvert k \rvert = 0 and at least 2 for \varepsilon \ge 3/2. For \varepsilon = 1 the lower JL event \{\mathbf{S}\mathbf{x} = \mathbf{0}\} has positive probability (2^{-\lvert k \rvert} at \mathbf{x} = (\mathbf{e}_1 + \mathbf{e}_2)/\sqrt{2}), and the proof covers it.
Main results
* NLAlib.isIsotropicSketch_of_hasLaw_rademacherMatrix. * NLAlib.hasJLProperty_of_hasLaw_rademacherMatrix: distributional JL. * NLAlib.integral_norm_mulVec_sq_sub_norm_sq_sq_of_hasLaw_rademacherMatrix: the exact second moment of the distortion. * NLAlib.hasJLMoment_of_hasLaw_rademacherMatrix: the JL moment property at p = 2. * NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_rademacherMatrix, NLAlib.isObliviousSubspaceInjection_of_hasLaw_rademacherMatrix. * NLAlib.exists_forall_hasJLProperty_of_hasLaw_rademacherMatrix, NLAlib.exists_forall_isObliviousSubspaceEmbedding_of_hasLaw_rademacherMatrix: the asymptotic forms of the sample sizes.
Declarations
- NLAlib.exists_forall_hasJLProperty_of_hasLaw_rademacherMatrix
- NLAlib.exists_forall_isObliviousSubspaceEmbedding_of_hasLaw_rademacherMatrix
- NLAlib.hasJLMoment_of_hasLaw_rademacherMatrix
- NLAlib.hasJLProperty_of_hasLaw_rademacherMatrix
- NLAlib.hasJLProperty_of_hasLaw_rademacherMatrix_of_jlDim_le
- NLAlib.integrable_norm_mulVec_sq_sub_norm_sq_sq_of_hasLaw_rademacherMatrix
- NLAlib.integral_norm_mulVec_sq_sub_norm_sq_sq_of_hasLaw_rademacherMatrix
- NLAlib.isIsotropicSketch_of_hasLaw_rademacherMatrix
- NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_rademacherMatrix
- NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_rademacherMatrix_of_jlDim_le
- NLAlib.isObliviousSubspaceInjection_of_hasLaw_rademacherMatrix
- NLAlib.isObliviousSubspaceInjection_of_hasLaw_rademacherMatrix_of_jlDim_le