One-Sample t-test
1. ttest1 irng:=Col(A);
2. ttest1 irng:=Col(A) mean:=10 tail:=1;
3. ttest1 irng:=Col(A) alpha:=0.05;
3. ttest1 irng:=Col(A) prob:=myprob;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input | irng |
Input Range |
|
This variable specifies the input data range. |
Hypothetical mean | mean |
Input double |
|
This variable specifies a value for the null hypothesis mean |
Tail | tail |
Input int |
|
Alternative hypothesis specified by the tail. (Suppose m is the sample mean and m0 is the hypothetical mean.) Option list
|
Significance level | alpha |
Input double |
|
Set the significance level of the test |
Statistic | stat |
Output double |
|
This variable specifies the output for the t-test statistic |
Degrees of freedom | df |
Output double |
|
This variable specifies the output for the degrees of freedom for the sample data |
P-value | prob |
Output double |
|
This variable specifies the output for the associated p-value of the test. |
Lower confidence limit | lcl |
Output double |
|
This variable specifies the output for the lower confidence limit for the hypothetical mean of the sample data. |
Upper confidence limit | ucl |
Output double |
|
This variable specifies the output for the upper confidence limit for the hypothetical mean of the sample data. |
This function is LabTalk accessing only and performs one-sample t-test for a given dataset.
The one-sample Student's t-Test determines whether or not the mean of a sample taken from a normally distributed population is consistent with the hypothetical value for a given confidence level. By choosing a one- or two-tailed t-test, you can test how likely it is that the sample mean is greater than, less than, or equal to the true population mean. Note that the one-sample t-test is appropriate when the standard deviation of the entire population is unknown.
The t statistic value and p-value will be calculated to decide whether or not to reject the null hypothesis. The p-value is the probability that null hypothesis is true, and a small p-value suggests that you should reject it.
The confidence interval provides lower and upper limits for the possible value of the population mean. For a given significance level, ., this interval indicates we have 100
(1-
) % confidence to say the true population mean falls within the interval.
Detail algorithms please read the help of OneSampletTest
Snedecor, George W. and Cochran, William G. (1989), Statistical Methods, Eighth Edition, Iowa State University Press.