|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.test.rank.wilcoxon.WilcoxonSignedRankDistribution
public class WilcoxonSignedRankDistribution
Compute exactly the distribution of the Wilcoxon signed rank test statistic.
Let x be a sample of size N from a continuous distribution symmetric about the origin. The Wilcoxon signed rank statistic is the sum of the ranks of the absolute values x[i] for which x[i] is positive. This statistic takes values between 0 and N(N+1)/2.
The R equivalent functions are dsignrank, pdsignrank, qdsignrank, rdsignrank.
| Field Summary | |
|---|---|
int |
N
number of observations in group 2 |
| Constructor Summary | |
|---|---|
WilcoxonSignedRankDistribution(int N)
Construct a Wilcoxon Signed Rank distribution for a sample size N. |
|
| Method Summary | |
|---|---|
double |
cdf(double x)
The cumulative distribution function. |
double |
density(double x)
The density function, which, if exists, is the derivative of F. |
double |
entropy()
Deprecated. Not supported yet. |
double |
kurtosis()
Deprecated. Not supported yet. |
double |
mean()
Get the mean of this distribution. |
double |
median()
Deprecated. Not supported yet. |
double |
moment(double x)
Deprecated. Not supported yet. |
double |
pValue(double x)
Compute the two-sided p-value for a critical value. |
double |
pValue1SidedGreater(double x)
Compute the one-sided p-value for the statistics greater than a critical value. |
double |
quantile(double u)
The inverse of the cumulative distribution function. |
double |
skew()
Deprecated. Not supported yet. |
double |
variance()
Get the variance of this distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int N
| Constructor Detail |
|---|
public WilcoxonSignedRankDistribution(int N)
N.
N - number of observations| Method Detail |
|---|
public double mean()
UnivariateDistribution
mean in interface UnivariateDistribution@Deprecated public double median()
UnivariateDistribution
median in interface UnivariateDistributionpublic double variance()
UnivariateDistribution
variance in interface UnivariateDistribution@Deprecated public double skew()
UnivariateDistribution
skew in interface UnivariateDistribution@Deprecated public double kurtosis()
UnivariateDistribution
kurtosis in interface UnivariateDistribution@Deprecated public double entropy()
UnivariateDistribution
entropy in interface UnivariateDistributionpublic double cdf(double x)
UnivariateDistribution
F(x) = Pr(X <= x)
cdf in interface UnivariateDistributionx - x
F(x) = Pr(X <= x)public double quantile(double u)
UnivariateDistribution
F-1(u) = x, such that
Pr(X <= x) = u
This may not always exist.
quantile in interface UnivariateDistributionu - u
F-1(u)public double density(double x)
UnivariateDistributionF.
It describes the density of probability at each point in the sample space.
f(x) = dF(X) / dx
This may not always exist. For the discrete cases, this is the probability mass function. It gives the probability that a discrete random variable is exactly equal to some value.
density in interface UnivariateDistributionx - x
F(x) = Pr(X <= x)@Deprecated public double moment(double x)
UnivariateDistribution
etX
This may not always exist.
moment in interface UnivariateDistributionx - x
E(exp(tX))public double pValue1SidedGreater(double x)
x - a critical value
public double pValue(double x)
x - a critical value
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||