Chat with our AI personalities
It depends on the population.Use t-test for a small population, N < 30; otherwiase, apply z-test or when N>=30.
t test, because the z test requires knowing the population standard deviation and that's rare. The t test embodies an estimate of the standard deviation.
The term Z-test is often used to refer specifically to the one-sample location test comparing the mean of a set of measurements to a given constant.
so
You use a z test when you are testing a hypothesis that is using proportions You use a t test when you are testing a hypothesis that is using means