public static TestResult SignTest( this IReadOnlyCollection<double> sample, double referenceMedian )
<ExtensionAttribute> Public Shared Function SignTest ( sample As IReadOnlyCollection(Of Double), referenceMedian As Double ) As TestResult
public: [ExtensionAttribute] static TestResult^ SignTest( IReadOnlyCollection<double>^ sample, double referenceMedian )
[<ExtensionAttribute>] static member SignTest : sample : IReadOnlyCollection<float> * referenceMedian : float -> TestResult
The sign test is a non-parametric alternative to the Student t-test (StudentTTest(IReadOnlyCollectionDouble, Double)). It tests whether the sample is consistent with the given reference median.
The null hypothesis for the test is that the median of the underlying population from which the sample is drawn is the reference median. The test statistic is simply number of sample values that lie above the median. Since each sample value is equally likely to be below or above the population median, each draw is an independent Bernoulli trial, and the total number of values above the population median is distributed according to a binomial distribution (BinomialDistribution).