Package InversionTest :: Module MonteCarloSampler :: Class MCWilcoxonRankTest
[hide private]
[frames] | no frames]

Class MCWilcoxonRankTest

         object --+        
                  |        
MonteCarloEstimator --+    
                      |    
       MCHypothesisTest --+
                          |
                         MCWilcoxonRankTest

Hypothesis test for the difference between means Terminates after a fixed number of samples

Instance Methods [hide private]
 
__init__(self, sample1, sample2, alternative='two.sided', maxSamples=10000)
Initialize the estimator Before initializing, convert data points to their ranks

Inherited from MCHypothesisTest: getSampleFunction, getStatisticFunction

Inherited from MonteCarloEstimator: addSamples, getEstimate, getNumSamples, updateEstimate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from MCHypothesisTest: VERBOSE

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sample1, sample2, alternative='two.sided', maxSamples=10000)
(Constructor)

 

Initialize the estimator Before initializing, convert data points to their ranks

Parameters:
  • sample1 (list of object) - First sample of data points
  • sample2 (list of object) - Second sample of data points
  • alternative (str) - Alternate hypothesis, from the set GREATER_THAN_HYPOTHESIS, LESS_THAN_HYPOTHESIS, TWO_SIDED_HYPOTHESIS
  • maxSamples (int) - Maximum number of samples to run for an estimate
Overrides: object.__init__