SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.regression.linear.ols
Class OlsRegression

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.regression.linear.ols.OlsRegression

public class OlsRegression
extends java.lang.Object

(Weighted) Ordinary Least Squares (OLS) is a method for fitting a linear regression model. This method minimizes the (weighted) sum of squared distances between the observed responses in the dataset, and the responses predicted by the linear approximation.

The OLS estimator is consistent when the regressors are exogenous and there is no multicollinearity, and optimal in the class of linear unbiased estimators when the errors are homoscedastic and serially uncorrelated. OLS can be derived as a maximum likelihood estimator under the assumption that the errors are normally distributed, however the method has good statistical properties for a much broader class of distributions (except for efficiency).

See Also:

Field Summary
 Beta beta
          the β^ statistics
 Diagnostics diagnostics
          the diagnostic measures of this linear regression
 InformationCriteria informationCriteria
          the model selection criteria
 LmProblem problem
          the ordinary linear regression problem to be solved
 Residuals residuals
          the residual analysis of this OLS regression
 
Constructor Summary
OlsRegression(LmProblem problem)
          Construct an OlsRegression instance.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

problem

public final LmProblem problem
the ordinary linear regression problem to be solved


beta

public final Beta beta
the β^ statistics


residuals

public final Residuals residuals
the residual analysis of this OLS regression


diagnostics

public final Diagnostics diagnostics
the diagnostic measures of this linear regression


informationCriteria

public final InformationCriteria informationCriteria
the model selection criteria

Constructor Detail

OlsRegression

public OlsRegression(LmProblem problem)
Construct an OlsRegression instance.

Parameters:
problem - the linear regression problem to be solved

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.