Monte-Carlo simulation of the power curve of the Student t-test

For a brief description of the Student t-test and its power curve, please refer to this page.

The plot of the power curve

This is the plot of the power vs. normalized $\delta$.

The discrete data points come from a simulation.

The continuous curve is the theoretical curve based on the non-central Student t-distribution.

R code