If the population sampled has a known variance, the z-test is the correct test to use. In general, a t-test is used to test the mean of a population when the population variance is unknown. Note that in special cases when the sample is extremely large, the z-test may be used in place of the t-test, but the t-test is considered to be the test of choice when the population variance is unknown. |