A z-test is a method of hypothesis testing in which the test statistic is compared with the standard normal distribution. For a mean, the statistic is , where is the sample mean, the value stated in the null hypothesis, the standard deviation and the sample size. The test is appropriate when the population standard deviation is known or the sample is large enough for the central limit theorem to apply. For small samples with an estimated standard deviation, a test based on Student's t-distribution is used instead.
Suppose 400 daily returns of a strategy have a mean of 0.08 percent and a standard deviation of 1.2 percent. The standard error is , so . This is below the two-sided 5 percent critical value of 1.96, so a true mean of zero cannot be ruled out.