A z-test compares a sample mean with a hypothesised value when the population standard deviation is known, using the standard normal distribution. z-tests are also used for proportions, where the normal approximation applies in large samples.
Formula
z = (x̄ − μ₀) / (σ / √n)