z_test
One-sample z-test p-value (right-tail).
Syntax
Section titled “Syntax”v = z_test(array, x, sigma)Description
Section titled “Description”Returns 1 - norm_s_dist((mean(array) - x) / (sigma / sqrt(n))) — the right-tailed p-value for testing whether the mean of array is greater than x. sigma defaults to the sample standard deviation.
Example
Section titled “Example”z_test([3 6 7 8 6 5 4 2 1 9], 4)See also
Section titled “See also”t_test— Student’s t-test p-value.norm_s_dist— Standard-normal PDF or CDF.