eqdisco.ols.ols_err#

eqdisco.ols.ols_err(Phi, y, order=None, intercept=True, tol=1e-10)[source]#

ERR of every regressor, orthogonalized in a given order (modified Gram–Schmidt).

Parameters:
Phiarray_like of shape (N, m)

Regressor matrix.

yarray_like of shape (N,)
ordersequence of int, optional

Order of orthogonalization (default: column order). The ERR of a term depends on the order: it measures what the term adds to the terms before it.

interceptbool

Center y and the regressors (the ERR values then sum to \(R^2\)).

tolfloat

Columns whose orthogonal part has relative energy below tol are treated as linearly dependent (ERR and weight 0).

Examples using eqdisco.ols.ols_err#

Orthogonal least squares and the error reduction ratio

Orthogonal least squares and the error reduction ratio