NLA-lib Explorer

Regression with a Gaussian sketch

Library · Source module

Regression with a Gaussian sketch

A standard Gaussian sketch gives relative squared Frobenius residual error with failure probability \delta at O((r+1)/(\varepsilon\delta)) rows through the second JL moment, and at O((r+1)\log(1/\delta)/\varepsilon) rows through the JL moment at p = \log(1/\delta), where r=\operatorname{rank}\mathbf{A}. The sketch is unnormalized: scaling cancels in NLAlib.sketchAndSolve. The proof combines a constant subspace injection with the Gaussian's second JL moment through NLAlib.Regression.Oblivious; it makes no optimal logarithmic-in-failure claim. Expected-error bounds are in NLAlib.Regression.SketchAndSolve.

Sketch-and-precondition with the normalised Gaussian sketch \lvert p\rvert^{-1/2}\mathbf{G} reaches relative squared residual 1 + \tau with O(\lvert n\rvert + 1 + \log(1/\delta)) rows and O(\log(1/\tau)) iterations, from the sketch-and-solve start.

Main results

* NLAlib.measureReal_frobNorm_sub_mul_sketchAndSolve_sq_gt_le_of_hasLaw_gaussianMatrix: explicit sufficient sizes for relative residual error, and its \log(1/\delta) twin …_of_jlMomentDim_le. * Asymptotic form: the asymptotic form, including rank zero. * NLAlib.measureReal_norm_sub_mulVec_sketchAndPrecondition_sq_gt_le_of_hasLaw_gaussianMatrix: Gaussian sketch-and-precondition, explicit sizes. * The sketch-and-solve start: the same from (\mathbf{S}\mathbf{A})^{+}\mathbf{S}\mathbf{y}. * Asymptotic form: the asymptotic form of Gaussian sketch-and-precondition.

Declarations