The z-statistic is a standardized test statistic used in hypothesis testing to determine the probability of observing a sample statistic given a hypothesized population parameter. It measures the number of standard deviations a sample statistic is from the hypothesized population mean, allowing for the assessment of statistical significance.