T Test VI

Owning Palette: Hypothesis Testing VIs

Requires: Full Development System

Tests hypotheses about the mean of a population whose distribution is at least approximately normal but whose variance is unknown.

As in all hypothesis tests, the hypotheses are statements about the population, not about the sample set.

 Add to the block diagram  Find on the palette
sample set specifies the randomly sampled data from the population of interest.
mean specifies the hypothesized mean value of the population. The null hypothesis is that the population mean is equal to mean.

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

–1mean(pop) < mean—The population mean is less than mean.
0mean(pop) != mean—The population mean is not equal to mean.
1mean(pop) > mean—The population mean is greater than mean.
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.
confidence interval returns a lower and upper limit for the population mean, indicating the uncertainty in the estimate of the true population mean.
low returns the lower limit of the estimate of the population mean.
high returns the upper limit of the estimate of the population mean.
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.
t test info returns the sample statistics used in the computation of the T test.
sample mean returns the sample mean of the sample set.
sample std returns the sample standard deviation of the sample set.
sample se mean returns the standard error mean of the sample set.
t value returns the T value that corresponds to the significance level and the alternative hypothesis.
sample t value returns the sample test statistic used in the T test and is equal to (sample meanmean)/(sample se mean).