2.13.2.6 vartest1(Pro)
Contents
Brief Information
Chi-squared variance test
Additional Information
This feature is for OriginPro only.
Minimum Origin Version Required: 8.0 SR4
Command Line Usage
1. vartest1 irng:=Col(A);
2. vartest1 irng:=Col(A) var:=2.0 tail:=2;
3. vartest1 irng:=Col(A) var:=2.0 alpha:=0.05;
4. vartest1 irng:=Col(A) var:=2.0 prob:=p;
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
Variables
| Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
|---|---|---|---|---|
| Input | irng |
Input Range |
|
Specify the input data range |
| Test Variance | var |
Input double |
|
The hypothetical variance value |
| Tail | tail |
Input int |
|
Alternative hypothesis specified by the tail. (Suppose S is the test variance.) Option list
|
| Significance Level | alpha |
Input double |
|
Set the significance level of the test |
| Statistics | stat |
Output double |
|
Value of the F-test statistic |
| Degrees of Freedom | df |
Output double |
|
Degrees of freedom of the F-test |
| P-value | prob |
Output double |
|
Associated p-value of the test. If the p-value is less than the value of alpha, the null hypothesis should be rejected |
| Lower Confidence Limit | lcl |
Output double |
|
Lower confidence limit of sample variance |
| Upper Confidence Limit | ucl |
Output double |
|
Upper confidence limit of sample variance |
Description
This function performs a chi-squared variance test, to determine whether or not the sample from a normal distribution could have a given hypothetical variance value.
This function is script accessing only, and the test is the same as One Sample Test for Variance on the menu.
Examples
1. Import vartest1.dat on the \Sample\Statistics\ folder.
2. Use the default setting, type:
- vartest1 irng:=Col(A)
3. If you want to know if the variance of the data is equal to a specified value, e.g. 0.015, you can use the command:
vartest1 irng:=Col(A) var:=0.015
Algorithm
This function is used to perform one sample test for variance from LabTalk Script. Please refer to Algorithm of One-Sample Test for Variance for the detail algorithms.
References
Snedecor, George W. and Cochran, William G. (1989), Statistical Methods, Eighth Edition, Iowa State University Press.