The Z-test is a statistical test used in inference.
The test requires the following to be known:
The formula is as follows: