Computing power and sample sizes
You want to compare average funding per investment round for games companies versus advertising companies. You begin by computing the power of a two sample t-test.
Three things have been loaded for you:
ads_acquired_avg_funding- (pandas Series) The average funding of each acquired advertising companygames_acquired_avg_funding- (pandas Series) Same, but for game companiesads_games_cohensd- (Number) Cohen's d (standardized effect size) for advertising versus games company's
The function needed to compute power has been imported from statsmodels.stats.power.
Diese Übung ist Teil des Kurses
Foundations of Inference in Python
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Compute the ratio of games to advertising companies
games_ads_ratio = ____ / ____
# Compute the power of the test
____().____(effect_size=____, 
            nobs1=____,
            alpha=____,
            ratio=____)