Statistics: Hypothesis Testing: Pair-Sample t-test on Rows.
Perform a pair-sample t-test on rows
Minimum Origin Version Required: Origin 2015 SR0
1. rowttestpair irng1:=(1,2,3) irng2:=(4,5,6);
2. rowttestpair irng1:=(1,2,3) irng2:=(4,5,6) prob:=1;
3. rowttestpair irng1:=(1,2,3) irng2:=(4,5,6) sig:=wcol(7);
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 |
---|---|---|---|---|
1st Data Range | irng1 |
Input Range |
|
Specify data range(multiple columns) of the first sample. Each row represents a data variable. |
2nd Data Range | irng2 |
Input Range |
|
Specify data range(multiple columns) of the second sample. Each row represents a data variable. |
Test Mean | mean |
Input double |
|
Hypothetical difference between the means of the two samples |
Alternate Hypothesis | tail |
Input int |
|
Specify the alternative hypothesis of the t-test. Option list:
|
T-statistic | statistic |
Output vector |
|
Select to output the t-statistic, and you can specify the column for the values. Each row represents the t-statistic of the data in the row. |
Degree of Freedom | df |
Output vector |
|
Select to output the degree of freedom, and you can specify the column for the values. Each row represents the degree of freedom of the data in the row. |
P-value | prob |
Output vector |
|
Select to output the p-value, and you can specify the column for the values. Each row represents the p-value of the data in the row. |
Significant | sign |
Output vector |
|
Select to output the flag of decision and specify the column for the values. the value equals to 1 indicates that the difference of the means is significant at the 0.05 level, 0 indicates that the means are not significant different at the 0.05 level |
The pair-sample t-test analysis tests whether or not the means of two paired (or related, matched) samples from a normal distribution are equal or whether they differ by a given value.
This function performs pair-sample t-test for the rows. The data of both samples is set in one row to perform the pair-sample t-test of this row.
More Information For more information, please refer to our User Guide.