z test
Does a mean differ from a target when the true spread is known? The z test divides the deviation by the known standard error σ / √n and compares it with the standard normal distribution. It also serves as an approximation with very large samples.
Example: Target 500 ml, known spread of the filling machine σ = 2 ml, 25 bottles with mean 500.9: z = 0.9 / 0.4 = 2.25, p = 0.024.
Caution: The spread is rarely truly known. If it is estimated from the data, the t test is the right one.