For a 1-sided test, if the result of the comparison is FALSE, we can only state that we “fail to reject the null hypothesis”, which essentially means that there is insufficient evidence of a difference. Similarly, if \(P(Z_{0})<\alpha\), then we “reject the null hypothesis with (1- \(\alpha\) )*100 percent confidence in \(H_{1}\)”. So, if \(\alpha\) is 0.05, we would have 95% confidence in \(H_{1}\), which is the minimum confidence the result would provide
For a 2-sided test, the statements are the same, just note the differences in the test statistic and the comparison value.
In R, it’s possible to determine the cumulative probability for the standard normal distribution at \(Z_{0}\) using the base R pnorm function and perform the comparison, for example if \(Z_{0}\) is 2.5 and \(\alpha\) = 0.05 (1-sided test):
alpha <- 0.05
zee0 <- 2.5
pnorm(zee0) > (1-alpha)
## [1] TRUE
Since the result of the comparison is TRUE, we would reject the null hypothesis with 95% confidence!