How to calculate the z test distribution for hypothesis testingĀ