Z-test is a statistical test or a type of hypothesis test that uses a random variable having a z distribution to test hypotheses. The z-test as statistical calculations can be used to compare population means and sample means while ascertaining if the two-population means are unique when the variances are known in large sample size.