Sign Test VI

Owning Palette: Hypothesis Testing VIs

Requires: Full Development System

Tests hypotheses about the median of continuous distributions. You must manually select the polymorphic instance to use.

As in all hypothesis tests, the hypotheses are statements about the population, not about the sample set. The sign test is a nonparametric test that makes no assumption about the distribution of the underlying population.

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Sign Test (median)

sample set specifies the randomly sampled data from the population of interest.
median specifies the hypothesized median value of the population. The null hypothesis is that the population median is equal to median.

The median of a distribution is a value of a random variable such that the probability that an observed value of the variable is less than or equal to the median and the probability that the observed value is greater than or equal to the median are both 50%.
significance level specifies the probability that the hypothesis test conclusion is wrong based on the sample set and the hypothesized median.
alternative hypothesis specifies the hypothesis to accept if LabVIEW rejects the null hypothesis that the population median is equal to median.

–1median(pop) < median—The population median is less than median.
0median(pop) != median—The population median is not equal to median.
1median(pop) > median—The population median is greater than median.
reject null hypothesis indicates whether to reject the null hypothesis, with significance level being the probability of reaching the wrong conclusion.

If p value is less than or equal to significance level, reject null hypothesis returns TRUE. Reject the null hypothesis and accept the alternative hypothesis. If p value is greater than significance level, reject null hypothesis returns FALSE. Accept the null hypothesis and reject the alternative hypothesis.
p value returns the probability that you incorrectly rejected the null hypothesis.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Sign Test (paired samples)

sample set x contains the sampled data from the first variable x.
sample set y contains the sampled data from the second variable y.
significance level specifies the probability that the hypothesis test conclusion is wrong based on the paired samples sets.
alternative hypothesis specifies the hypothesis to accept if LabVIEW rejects the null hypothesis that the two variable populations have a common median. If the null hypothesis is true, the median of the differences between sample set x and sample set y is zero.

–1median(x) < median(y)–The median of the first population is less than the median of the second population.
0median(x) != median(y)–The median of the first population is not equal to the median of the second population.
1median(x) > median(y)–The median of the first population is greater than the median of the second population.
reject null hypothesis indicates whether to reject the null hypothesis, with significance level being the probability of reaching the wrong conclusion.

If p value is less than or equal to significance level, reject null hypothesis returns TRUE. Reject the null hypothesis and accept the alternative hypothesis. If p value is greater than significance level, reject null hypothesis returns FALSE. Accept the null hypothesis and reject the alternative hypothesis.
p value returns the probability that you incorrectly rejected the null hypothesis.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.