The formula to calculate the Z-score in a One Sample Z-Test is:
\(Z = \frac{X̄ - μ}{σ / \sqrt{n}}\)
Where:
Example 1:
Calculation:
\(Z = \frac{50 - 45}{10 / \sqrt{30}} = \frac{5}{10 / 5.477} = \frac{5}{1.826} \approx 2.74\)
Example 2:
Calculation:
\(Z = \frac{100 - 95}{15 / \sqrt{50}} = \frac{5}{15 / 7.071} = \frac{5}{2.121} \approx 2.36\)