power against every true mean, holding alpha at 0.0500, n at 25, and the test one-sided
A test at alpha 0.0500 with n = 25 rejects the null once the sample mean passes 104.9346. If the truth really is 105.0, this test catches it with probability 0.5087 and misses it with probability 0.4913. Move any control and watch which error rate pays for the change.
Setup: a z test of H0 mu = 100 against Ha mu > 100, with the population standard deviation known to be 15. Sigma is held fixed here so the three factors you can move are visible one at a time; shrinking sigma is the fourth thing that raises power.
Type I error, Type II error, and power visualizer · free from StatsLearn