welchTTest
Applies Welch's t-test to samples from two populations.
Syntax
Values of both samples are in the sample_data column. If sample_index equals to 0 then the value in that row belongs to the sample from the first population. Otherwise it belongs to the sample from the second population.
The null hypothesis is that means of populations are equal. Normal distribution is assumed. Populations may have unequal variance.
Arguments
Parameters
confidence_level— Confidence level in order to calculate confidence intervals. Float.
Returned values
Tuple with two or four elements (if the optional confidence_level is specified)
- calculated t-statistic. Float64.
- calculated p-value. Float64.
- calculated confidence-interval-low. Float64.
- calculated confidence-interval-high. Float64.
Example
Input table:
Query:
Result:
See Also
welchTTest
Introduced in: v21.1
Applies Welch's t-test to samples from two populations.
Values of both samples are in the sample_data column.
If sample_index equals to 0 then the value in that row belongs to the sample from the first population.
Otherwise it belongs to the sample from the second population.
The null hypothesis is that means of populations are equal.
Normal distribution is assumed.
Populations may have unequal variance.
Syntax
Parameters
confidence_level— Optional. Confidence level in order to calculate confidence intervals.Float
Arguments
sample_data— Sample data.Int*orUInt*orFloat*orDecimal*sample_index— Sample index.Int*orUInt*
Returned value
Returns a Tuple with two or four elements (if the optional confidence_level is specified): calculated t-statistic, calculated p-value, and optionally calculated confidence-interval-low and confidence-interval-high. Tuple(Float64, Float64) or Tuple(Float64, Float64, Float64, Float64)
Examples
Basic Welch's t-test
With confidence level