org.apache.commons.math3.stat.correlation
Class SpearmansRankCorrelationTest

java.lang.Object
  extended by org.apache.commons.math3.stat.correlation.PearsonsCorrelationTest
      extended by org.apache.commons.math3.stat.correlation.SpearmansRankCorrelationTest

public class SpearmansRankCorrelationTest
extends PearsonsCorrelationTest

Test cases for Spearman's rank correlation

Since:
2.0
Version:
$Id: SpearmansRankCorrelationTest.java 1461822 2013-03-27 19:44:22Z tn $

Field Summary
 
Fields inherited from class org.apache.commons.math3.stat.correlation.PearsonsCorrelationTest
longleyData, swissData
 
Constructor Summary
SpearmansRankCorrelationTest()
           
 
Method Summary
 void testConsistency()
           
 void testConstant()
          Constant column
 void testCovarianceConsistency()
          Verify that creating correlation from covariance gives same results as direct computation from the original matrix
 void testInsufficientData()
          Insufficient data
 void testLongly()
          Test Longley dataset against R.
 void testMath891Array()
           
 void testMath891Matrix()
           
 void testStdErrorConsistency()
          Verify that direct t-tests using standard error estimates are consistent with reported p-values
 void testSwiss()
          Test R swiss fertility dataset.
 
Methods inherited from class org.apache.commons.math3.stat.correlation.PearsonsCorrelationTest
createLowerTriangularRealMatrix, createRealMatrix, fillUpper, testPValueNearZero, testSwissFertility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpearmansRankCorrelationTest

public SpearmansRankCorrelationTest()
Method Detail

testLongly

public void testLongly()
Test Longley dataset against R.

Overrides:
testLongly in class PearsonsCorrelationTest

testSwiss

public void testSwiss()
Test R swiss fertility dataset.


testConstant

public void testConstant()
Constant column

Overrides:
testConstant in class PearsonsCorrelationTest

testInsufficientData

public void testInsufficientData()
Insufficient data

Overrides:
testInsufficientData in class PearsonsCorrelationTest

testConsistency

public void testConsistency()
Overrides:
testConsistency in class PearsonsCorrelationTest

testMath891Array

public void testMath891Array()

testMath891Matrix

public void testMath891Matrix()

testStdErrorConsistency

public void testStdErrorConsistency()
Description copied from class: PearsonsCorrelationTest
Verify that direct t-tests using standard error estimates are consistent with reported p-values

Overrides:
testStdErrorConsistency in class PearsonsCorrelationTest

testCovarianceConsistency

public void testCovarianceConsistency()
Description copied from class: PearsonsCorrelationTest
Verify that creating correlation from covariance gives same results as direct computation from the original matrix

Overrides:
testCovarianceConsistency in class PearsonsCorrelationTest


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.