Skip to main content

models.ExpectileRegression

Linear expectile regression (asymmetric least squares, Newey and

Usage

Source

models.ExpectileRegression()

Powell 1987), as expectreg’s least asymmetrically weighted squares, with sandwich standard errors and an optional quadratic penalty lam * beta' P beta (a P-spline basis’s difference penalty, zeros on unpenalised columns). At tau = 0.5 it is least squares.

Parameters

tau: float

The expectile, in (0, 1).

lam: float

The penalty’s multiplier, with penalty.

penalty: list of list of float
P, p rows of p.

Examples

>>> from prospicio.models import Design, ExpectileRegression
>>> d = Design([[1.0] * 4], ["(Intercept)"])
>>> round(ExpectileRegression(0.5).fit(d, [1.0, 2.0, 4.0, 9.0]).coefficients[0], 12)

4.0

Methods

Name Description
fit() Fits on design.

fit()

Fits on design.

Usage

Source

fit(design, y)
Returns
ExpectileFit