NLA-lib Explorer

Regression with a CountSketch

Library · Source module

Regression with a CountSketch

A CountSketch gives relative squared Frobenius residual error with failure probability \delta at O(((r+1)^2+(r+1)/\varepsilon)/\delta) rows, where r=\operatorname{rank}\mathbf{A}. The statement works over any RCLike field and for a matrix right-hand side. It combines a constant subspace injection with CountSketch's own approximate-multiplication tail through NLAlib.Regression.Oblivious, preserving complex support. The sketch is unscaled, with one random sign in each column.

Sketch-and-precondition with a CountSketch reaches relative squared residual 1 + \tau from the sketch-and-solve start with O((\lvert n\rvert + 1)^2/\delta) rows and O(\log(1/\tau)) iterations.

Main results

* NLAlib.measureReal_frobNorm_sub_mul_sketchAndSolve_sq_gt_le_of_hasLaw_countSketch: explicit sufficient sizes for relative residual error. * NLAlib.exists_forall_measureReal_frobNorm_sub_mul_sketchAndSolve_sq_gt_le_of_hasLaw_countSketch: the asymptotic form, including rank zero. * NLAlib.measureReal_norm_sub_mulVec_sketchAndPrecondition_sq_gt_le_of_hasLaw_countSketch: CountSketch 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 CountSketch sketch-and-precondition.

Declarations