Top Description Methods
org.apache.commons.math3.stat.regression

public Interface MultipleLinearRegression

Known Direct Implementers
org.apache.commons.math3.stat.regression.AbstractMultipleLinearRegression

The multiple linear regression can be represented in matrix-notation.
 y=X*b+u
where y is an n-vector regressand, X is a [n,k] matrix whose k columns are called regressors, b is k-vector of regression parameters and u is an n-vector of error terms or residuals. The notation is quite standard in literature, cf eg Davidson and MacKinnon, Econometrics Theory and Methods, 2004.
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

The double representing the variance of y
estimateRegressandVariance
()

Returns the variance of the regressand, ie Var(y).

public double[]

Returns:

The [k,1] array representing b
estimateRegressionParameters
()

Estimates the regression parameters b.

public double[]

Returns:

standard errors of estimated regression parameters
estimateRegressionParametersStandardErrors
()

Returns the standard errors of the regression parameters.

public double[][]

Returns:

The [k,k] array representing the variance of b
estimateRegressionParametersVariance
()

Estimates the variance of the regression parameters, ie Var(b).

public double[]

Returns:

The [n,1] array representing the residuals
estimateResiduals
()

Estimates the residuals, ie u = y - X*b.

Method Detail

estimateRegressandVarianceback to summary
public double estimateRegressandVariance()

Returns the variance of the regressand, ie Var(y).

Returns:double

The double representing the variance of y

estimateRegressionParametersback to summary
public double[] estimateRegressionParameters()

Estimates the regression parameters b.

Returns:double[]

The [k,1] array representing b

estimateRegressionParametersStandardErrorsback to summary
public double[] estimateRegressionParametersStandardErrors()

Returns the standard errors of the regression parameters.

Returns:double[]

standard errors of estimated regression parameters

estimateRegressionParametersVarianceback to summary
public double[][] estimateRegressionParametersVariance()

Estimates the variance of the regression parameters, ie Var(b).

Returns:double[][]

The [k,k] array representing the variance of b

estimateResidualsback to summary
public double[] estimateResiduals()

Estimates the residuals, ie u = y - X*b.

Returns:double[]

The [n,1] array representing the residuals