The data were collected in a random way, each observation must be independent of the others, and the sampling distribution must be normal or approximately normal
z-test conditions
The data were collected in a random way, each observation must be independent of the others, the sampling distribution must be normal or approximately normal, and the population standard deviation must be known