Table Of Contents

Hypothesis Testing (Chi-Squared Test) (G Dataflow)

Version:
Last Modified: December 18, 2017

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

connector_pane_image
datatype_icon

sample set

Randomly sampled data from the population.

datatype_icon

variance

Hypothesized variance of the population.

The null hypothesis is that the population variance is equal to variance.

Default: 1

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 population variance is equal to variance.

Name Value Description
variance(pop) != variance 0 The population variance is not equal to variance.
variance(pop) > variance 1 The population variance is greater than variance.
variance(pop) < variance -1 The population variance is less than variance.

Default: variance(pop) != variance

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 population variance. confidence interval indicates the uncertainty in the estimate of the true population variance.

datatype_icon

low

Lower limit of the estimate of the population variance.

datatype_icon

high

Upper limit of the estimate of the population variance.

datatype_icon

chi-squared test information

Sample statistics of the chi-squared test.

datatype_icon

sample variance

Variance of sample set.

datatype_icon

degree of freedom

Degree of freedom of the chi-squared distribution that the test statistic follows.

datatype_icon

sample chi-squared value

Sample test statistic used in the chi-squared test.

sample chi-squared value is equal to ( n 1 ) * sample variance variance .

datatype_icon

chi-squared critical value (lower)

Lower chi-squared value that corresponds to significance level and alternative hypothesis.

Algorithm for Calculating chi-squared critical value (lower)

Let Xn represent a chi-squared distributed variate with n degrees of freedom. chi-squared critical value (lower) satisfies the following equations based on the value of alternative hypothesis.

alternative hypothesis chi-squared critical value (lower)
variance(pop) != variance Prob{Xn < chi-squared critical value (lower)} = significance level / 2
variance(pop) > variance chi-squared critical value (lower) = NaN
variance(pop) < variance Prob{Xn < chi-squared critical value (lower)} = significance level
datatype_icon

chi-squared critical value (upper)

Upper chi-squared value that corresponds to significance level and alternative hypothesis.

Algorithm for Calculating chi-squared critical value (upper)

Let Xn represent a chi-squared distributed variate with n degrees of freedom. chi-squared critical value (upper) satisfies the following equations based on the value of alternative hypothesis.

alternative hypothesis chi-squared critical value (upper)
variance(pop) != variance Prob{Xn > chi-squared critical value (upper)} = significance level / 2
variance(pop) > variance Prob{Xn > chi-squared critical value (upper)} = significance level.
variance(pop) < variance chi-squared critical value (upper) = NaN
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: This product does not support FPGA devices

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


Recently Viewed Topics