statsmodels.stats.power.TTestIndPower.power
TTestIndPower.power(effect_size, nobs1, alpha, ratio=1, df=None, alternative='two-sided') [source]
Calculate the power of a t-test for two independent sample Parameters:
effect_size : float standardized effect size, difference between the two means divided by the standard deviation. effect_size has to be positive. nobs1 : int or float number of observations of sample 1. The number of observations of sample two is ratio times the size of sample