Skip to content

z_test

One-sample z-test p-value (right-tail).

v = z_test(array, x, sigma)

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.

z_test([3 6 7 8 6 5 4 2 1 9], 4)