Source: https://ssc.wisc.edu/~gwallace/PA_818/Resources/Type II Error and Power Calculations.pdf