Leverage scores and coherence
Library · Source module
Leverage scores and coherence
The leverage score of row i of a matrix A : Matrix m n 𝕜, \mathbf{A} \in \Bbbk^{m \times n}, is the i-th diagonal entry of the orthogonal projector \mathbf{P}_{\mathbf{A}} onto its column space, NLAlib.leverageScore A i = re (rangeProjector A i i). It is defined for every shape and rank, depends only on the column space of \mathbf{A}, lies in [0, 1], and the scores sum to \operatorname{rank} \mathbf{A}; for \mathbf{A} with orthonormal columns it is the squared norm of row i. The coherence is \lvert m \rvert times the largest score, and the leverage-score distribution is the score vector divided by the rank (junk value 0 when \mathbf{A} = \mathbf{0}).
These are the quantities of the domination hypothesis ∀ i, leverageScore U i ≤ L * p i of the row-sampling theorems (NLAlib.Sketching.Sampling.RowSampling): exact leverage sampling has L = \operatorname{rank} \mathbf{U}, uniform sampling has L equal to the coherence of \mathbf{U}.
Main definitions
* NLAlib.leverageScore, NLAlib.coherence, NLAlib.leverageScoreDistribution.
Main results
* NLAlib.leverageScore_nonneg, NLAlib.leverageScore_le_one, NLAlib.sum_leverageScore. * NLAlib.leverageScore_eq_norm_sq, NLAlib.HasOrthonormalCols.leverageScore_eq: norm forms. * NLAlib.leverageScore_eq_of_range_eq, NLAlib.leverageScore_le_of_range_le: the scores depend only on the column space, monotonically. * NLAlib.leverageScore_eq_zero_iff: a score vanishes exactly on a zero row. * NLAlib.leverageScore_le_coherence_mul_inv, NLAlib.rank_le_coherence, NLAlib.coherence_le_card. * NLAlib.sum_leverageScoreDistribution, NLAlib.leverageScore_le_rank_mul_leverageScoreDistribution. * NLAlib.exists_hasOrthonormalCols_of_leverageScore_le, NLAlib.rank_le_of_leverageScore_le: the reduction to orthonormal columns and the bound on the rank under a domination \ell_i(\mathbf{U}) \le L p_i; NLAlib.leverageScore_le_mul_const_inv_card, NLAlib.pos_of_leverageScore_le_mul_inv_card: domination by uniform weights.
Declarations
- NLAlib.HasOrthonormalCols.leverageScore_eq
- NLAlib.coe_leverageScoreDistribution
- NLAlib.coherence
- NLAlib.coherence_le_card
- NLAlib.exists_hasOrthonormalCols_of_leverageScore_le
- NLAlib.leverageScore
- NLAlib.leverageScoreDistribution
- NLAlib.leverageScore_eq_norm_sq
- NLAlib.leverageScore_eq_of_range_eq
- NLAlib.leverageScore_eq_zero_iff
- NLAlib.leverageScore_le_coherence_mul_inv
- NLAlib.leverageScore_le_mul_const_inv_card
- NLAlib.leverageScore_le_of_range_le
- NLAlib.leverageScore_le_one
- NLAlib.leverageScore_le_rank_mul_leverageScoreDistribution
- NLAlib.leverageScore_nonneg
- NLAlib.pos_of_leverageScore_le_mul_inv_card
- NLAlib.rank_le_coherence
- NLAlib.rank_le_of_leverageScore_le
- NLAlib.sum_leverageScore
- NLAlib.sum_leverageScoreDistribution