Matlab & Python functions to calculate power for a correlation analysis The calculation are based on parametric statistics to compute power given an expected correlation and a criterion for significance.
See example notebook Python/plot_pearson_analytical_power.ipynb
Requires: numpy, scipy, matplotlib
To plot curves of power vs. sample size given an expected correlation rho, use
power = plot_pearson_analytical_power(rho);
Enjoy!
