org.apache.commons.math.stat.regression
Class OLSMultipleLinearRegressionTest

java.lang.Object
  extended by org.apache.commons.math.stat.regression.MultipleLinearRegressionAbstractTest
      extended by org.apache.commons.math.stat.regression.OLSMultipleLinearRegressionTest

public class OLSMultipleLinearRegressionTest
extends MultipleLinearRegressionAbstractTest


Field Summary
 
Fields inherited from class org.apache.commons.math.stat.regression.MultipleLinearRegressionAbstractTest
regression
 
Constructor Summary
OLSMultipleLinearRegressionTest()
           
 
Method Summary
 void cannotAddNullYSampleData()
           
 void cannotAddSampleDataWithSizeMismatch()
           
 void cannotAddXSampleData()
           
protected  org.apache.commons.math.stat.regression.OLSMultipleLinearRegression createRegression()
           
protected  int getNumberOfRegressors()
           
protected  int getSampleSize()
           
 void setUp()
           
 void testHat()
          Test hat matrix computation
 void testLongly()
          Test Longley dataset against certified values provided by NIST.
 void testPerfectFit()
           
 void testSwissFertility()
          Test R Swiss fertility dataset against R.
 
Methods inherited from class org.apache.commons.math.stat.regression.MultipleLinearRegressionAbstractTest
canEstimateRegressandVariance, canEstimateRegressionParameters, canEstimateRegressionParametersVariance, canEstimateResiduals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OLSMultipleLinearRegressionTest

public OLSMultipleLinearRegressionTest()
Method Detail

setUp

public void setUp()
Overrides:
setUp in class MultipleLinearRegressionAbstractTest

createRegression

protected org.apache.commons.math.stat.regression.OLSMultipleLinearRegression createRegression()
Specified by:
createRegression in class MultipleLinearRegressionAbstractTest

getNumberOfRegressors

protected int getNumberOfRegressors()
Specified by:
getNumberOfRegressors in class MultipleLinearRegressionAbstractTest

getSampleSize

protected int getSampleSize()
Specified by:
getSampleSize in class MultipleLinearRegressionAbstractTest

cannotAddXSampleData

public void cannotAddXSampleData()

cannotAddNullYSampleData

public void cannotAddNullYSampleData()

cannotAddSampleDataWithSizeMismatch

public void cannotAddSampleDataWithSizeMismatch()

testPerfectFit

public void testPerfectFit()

testLongly

public void testLongly()
Test Longley dataset against certified values provided by NIST. Data Source: J. Longley (1967) "An Appraisal of Least Squares Programs for the Electronic Computer from the Point of View of the User" Journal of the American Statistical Association, vol. 62. September, pp. 819-841. Certified values (and data) are from NIST: http://www.itl.nist.gov/div898/strd/lls/data/LINKS/DATA/Longley.dat


testSwissFertility

public void testSwissFertility()
Test R Swiss fertility dataset against R. Data Source: R datasets package


testHat

public void testHat()
             throws Exception
Test hat matrix computation

Throws:
Exception


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.