SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.regression.linear
Class Residuals

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.regression.linear.Residuals
Direct Known Subclasses:
Residuals, Residuals, Residuals

public abstract class Residuals
extends java.lang.Object

The residual of a sample is the difference between the sample and the estimated function (fitted) value.

See Also:
Wikipedia: Errors and residuals in statistics

Field Summary
 ImmutableVector fitted
          the fitted values, y^
 LmProblem problem
          the linear regression problem to be solved
 ImmutableVector residuals
          the residuals, ε
 
Constructor Summary
Residuals(LmProblem problem, Vector fitted)
          Create an instance of Residuals for a linear regression problem.
 
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 linear regression problem to be solved


fitted

public final ImmutableVector fitted
the fitted values, y^


residuals

public final ImmutableVector residuals
the residuals, ε

Constructor Detail

Residuals

public Residuals(LmProblem problem,
                 Vector fitted)
Create an instance of Residuals for a linear regression problem.

Parameters:
problem - the linear regression problem to be solved
fitted - the fitted values, y^

SuanShu, a Java numerical and statistical library

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