meanZTest
meanZTest
Introduced in: v22.2
Applies mean z-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.
A normal distribution is assumed.
Populations may have unequal variance and the variances are known.
Syntax
Parameters
population_variance_x— Variance for population x.Float*population_variance_y— Variance for population y.Float*confidence_level— Confidence level in order to calculate confidence intervals.Float*
Arguments
Returned value
Returns a tuple with four elements: calculated z-statistic, calculated p-value, calculated confidence-interval-low, calculated confidence-interval-high. Tuple(Float64, Float64, Float64, Float64)
Examples
Mean Z-test example