类 OLSMultipleLinearRegressionTest

java.lang.Object
org.hipparchus.stat.regression.MultipleLinearRegressionAbstractTest
org.hipparchus.stat.regression.OLSMultipleLinearRegressionTest

public class OLSMultipleLinearRegressionTest extends MultipleLinearRegressionAbstractTest
  • 构造器详细资料

    • OLSMultipleLinearRegressionTest

      public OLSMultipleLinearRegressionTest()
  • 方法详细资料

    • setUp

      public void setUp()
      覆盖:
      setUp 在类中 MultipleLinearRegressionAbstractTest
    • createRegression

      protected OLSMultipleLinearRegression createRegression()
      指定者:
      createRegression 在类中 MultipleLinearRegressionAbstractTest
    • getNumberOfRegressors

      protected int getNumberOfRegressors()
      指定者:
      getNumberOfRegressors 在类中 MultipleLinearRegressionAbstractTest
    • getSampleSize

      protected int getSampleSize()
      指定者:
      getSampleSize 在类中 MultipleLinearRegressionAbstractTest
    • 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

      protected void checkVarianceConsistency(OLSMultipleLinearRegression model)
      验证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