类 OLSMultipleLinearRegressionTest
java.lang.Object
org.hipparchus.stat.regression.MultipleLinearRegressionAbstractTest
org.hipparchus.stat.regression.OLSMultipleLinearRegressionTest
-
字段概要
从类继承的字段 org.hipparchus.stat.regression.MultipleLinearRegressionAbstractTest
regression
-
构造器概要
-
方法概要
修饰符和类型方法说明void
protected void
验证calculateYVariance和calculateResidualVariance返回的值与直接从Y、残差计算的方差值一致。protected OLSMultipleLinearRegression
protected int
protected int
void
setUp()
void
testHat()
测试帽子矩阵计算void
测试Longley数据集与NIST提供的认证值的一致性。void
验证分别设置X和Y与newSample(X,Y)具有相同效果。void
来自http://stackoverflow.com/questions/37320008/ols-multiple-linear-regression-with-commons-mathvoid
void
void
void
void
void
void
void
任何需要beta计算的内容都应该宣传SME。void
测试R瑞士生育数据集与R的一致性。void
void
void
void
void
测试calculateYVariance从类继承的方法 org.hipparchus.stat.regression.MultipleLinearRegressionAbstractTest
canEstimateRegressandVariance, canEstimateRegressionParameters, canEstimateRegressionParametersVariance, canEstimateResiduals, testNewSample, testNewSampleInsufficientData, testNewSampleInvalidData, testNewSampleNullData, testXSampleDataNull, testYSampleDataNull
-
构造器详细资料
-
OLSMultipleLinearRegressionTest
public OLSMultipleLinearRegressionTest()
-
-
方法详细资料
-
setUp
public void setUp() -
createRegression
-
getNumberOfRegressors
protected int getNumberOfRegressors() -
getSampleSize
protected int getSampleSize() -
cannotAddSampleDataWithSizeMismatch
public void cannotAddSampleDataWithSizeMismatch() -
testPerfectFit
public void testPerfectFit() -
testLongly
public void testLongly()测试Longley数据集与NIST提供的认证值的一致性。数据来源: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. 认证值(和数据)来自NIST:http://www.itl.nist.gov/div898/strd/lls/data/LINKS/DATA/Longley.dat -
testSwissFertility
public void testSwissFertility()测试R瑞士生育数据集与R的一致性。数据来源:R数据集包 -
testHat
public void testHat()测试帽子矩阵计算 -
testYVariance
public void testYVariance()测试calculateYVariance -
checkVarianceConsistency
验证calculateYVariance和calculateResidualVariance返回的值与直接从Y、残差计算的方差值一致。 -
testNewSample2
public void testNewSample2()验证分别设置X和Y与newSample(X,Y)具有相同效果。 -
testNewSampleDataYNull
public void testNewSampleDataYNull() -
testNewSampleDataXNull
public void testNewSampleDataXNull() -
testWampler1
public void testWampler1() -
testWampler2
public void testWampler2() -
testWampler3
public void testWampler3() -
testWampler4
public void testWampler4() -
testSingularCalculateBeta
public void testSingularCalculateBeta()任何需要beta计算的内容都应该宣传SME。 -
testNoSSTOCalculateRsquare
public void testNoSSTOCalculateRsquare() -
testNoDataNPECalculateBeta
public void testNoDataNPECalculateBeta() -
testNoDataNPECalculateHat
public void testNoDataNPECalculateHat() -
testNoDataNPESSTO
public void testNoDataNPESSTO() -
testNewSampleDataNoIntercept
public void testNewSampleDataNoIntercept()来自http://stackoverflow.com/questions/37320008/ols-multiple-linear-regression-with-commons-math
-