Planning Test Size
We would like to minimize Type 2 Error to hold to our Hypothesis. We thus would like to know how many samples we should take to get below a certain threshold.
One-Sided Tests
Thus by applying the inverse we get:
Two-Sided Test
Here we have to solve for numerically. For example by plotting and reading the value.