Table Of Contents

Hypothesis Testing (T Test » Two Samples) (G Dataflow)

Last Modified: January 12, 2018

Tests hypotheses about the mean of two independent populations whose distributions are at least approximately normal but whose variances are unknown.

connector_pane_image
datatype_icon

equal variances?

A Boolean that indicates whether the variances of the two independent populations are equal.

True Assumes that the variances of the two independent populations are equal.
False Assumes that the variances of the two independent populations are not equal.

Default: False

datatype_icon

sample set x

Sampled data from population x.

datatype_icon

sample set y

Sampled data from population y.

datatype_icon

delta

Hypothetical difference between the means of sample set x and sample set y.

Default: 0

datatype_icon

significance level

Probability that this node incorrectly rejects a true null hypothesis.

Default: 0.05

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

alternative hypothesis

Hypothesis to accept if this node rejects the null hypothesis that the two populations have a common mean.

If the null hypothesis is true, the difference between the means of sample set x and sample set y is zero.

Name Value Description
mean(x) - mean(y) != delta 0 The difference between the means of population x and population y is not equal to delta.
mean(x) - mean(y) > delta 1 The difference between the means of population x and population y is greater than delta.
mean(x) - mean(y) < delta -1 The difference between the means of population x and population y is less than delta.

Default: mean(x) - mean(y) != delta

datatype_icon

null hypothesis rejected?

A Boolean that indicates whether this node rejects the null hypothesis.

True p value is less than or equal to significance level. This node rejects the null hypothesis and accepts the alternative hypothesis.
False p value is greater than significance level. This node accepts the null hypothesis and rejects the alternative hypothesis.
datatype_icon

p value

Smallest significance level that leads to rejection of the null hypothesis based on the sample sets.

datatype_icon

confidence interval

Lower and upper limits for the difference between the means of two populations. confidence interval indicates the uncertainty in the estimate of the true difference of means.

datatype_icon

low

Lower limit of the estimate of the difference between the means of two populations.

datatype_icon

high

Upper limit of the estimate of the difference between the means of two populations.

datatype_icon

t test information

Sample statistics of the Student's t test.

datatype_icon

sample x mean

Mean of sample set x.

datatype_icon

sample y mean

Mean of sample set y.

datatype_icon

sample mean difference

Difference between sample x mean and sample y mean.

datatype_icon

sample x standard deviation

Standard deviation of sample set x.

datatype_icon

sample y standard deviation

Standard deviation of sample set y.

datatype_icon

sample pooled standard deviation

Weighted average of standard deviation for the two sample sets.

When equal variances? is False, this output returns NaN.

datatype_icon

sample standard error difference

Standard error of the difference between sample x mean and sample y mean.

datatype_icon

degree of freedom

Degree of freedom of the Student's t distribution that the test statistic follows.

datatype_icon

sample t value

Sample test statistic used in the Student's t test.

sample t value is equal to sample mean difference delta sample standard error difference .

datatype_icon

t critical value

Student's t value that corresponds to significance level and alternative hypothesis.

Algorithm for Calculating t critical value

Let Tn represent a student's t distributed variate with n degrees of freedom. t critical value satisfies the following equations based on the value of alternative hypothesis.

alternative hypothesis t critical value
mean(x) - mean(y) != delta Prob{Tn > t critical value} = significance level / 2
mean(x) - mean(y) > delta Prob{Tn > t critical value} = significance level
mean(x) - mean(y) < delta Prob{Tn > t critical value} = significance level
datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics