Power for one sample proportionCan someone explain what the Power for One Sample Proportion calculator is doing? The help documentation not particularly helpful or I didn't drink enough coffee today.
Also can anyone explain why the power curve goes up and down with sample size as shown below:

Re: Power for one sample proportionKaren is my go-to resource for all things related to Calculators and documentation. @karencopeland do you know why the power curve has those oscillations?
Re: Power for one sample proportionWhat do you mean by "what is it doing"? Are you asking what problem is it addressing?
Here's a reference I found on the jaggedness. It's because the exact test is discrete, and it has to do with the way that the rejection region for the test statistic is calculated. http://www.nicksun.fun/statistics/2020/11/16/sawtooth-power-curves.html
Note that the jaggedness goes away when you use the normal approximation rather than the exact test.
Re: Power for one sample proportionCan someone explain what the Power for One Sample Proportion calculator is doing?
The first plot on the left shows the relationship between Power and Sample Size. As @Jordan_Hiller points out, due to the binomial distribution being discrete, the power of an exact test does not always increase with a small increase in sample size.
Two other inverted bell curves show how Power increases as the Assumed Proportion moves away from the Alternative Proportion (or the Alternative Proportion moves away from the Assumed Proportion). The larger the difference between the two proportions, the higher the power, aside from any jaggedness noted above, analogous to the 'Difference to Detect" in a One-Sample Mean Test.
Re: Power for one sample proportionDrink more coffee and you will oscillate with the plot. I am in the process of updating the SSE documentation as many of the explorers have been moved from JSL to C++ so you will see slight differences in 19. That said, I will try to add a note about the jagged graph, which as others have noted is due to this being an "exact" test calculation (mathematically). In reality (at least in my experience) sample size is not an exact science, the estimates are only as good as your guesses that you feed into the calculators. They are good for showing you how increasing (decreasing) your sample size might help (hurt) you in the long run.
Re: Power for one sample proportionThanks @Jordan_Hiller @jiancao @karencopeland very helpful!
Just want to make sure I am interpreting the calculator correctly, but still stuck on something.
The two independent sample proportions makes sense which is comparing if probabilities of two binomial distributions are statistically different, but for the one sample proportion, is the idea here we are testing if a given binomial distribution probability is statistically different from an assumed probability? Kind of like a mean test for a normal distribution?
Re: Power for one sample proportionYes, the Assumed Proportion is the null hypothesis probability value and Alternative Proportion is the probability that you test against.