Choosing the right test: finance
In the realm of finance, investment strategists are continually evaluating different approaches to maximize returns. Consider a scenario where a financial firm wishes to assess the effectiveness of two investment strategies: "Quantitative Analysis" and "Fundamental Analysis". The firm has applied each strategy to a separate set of investment portfolios for a year and now asks you to compare the annual returns to determine if there is any difference in strategy returns by comparing the mean returns of the two groups.
The data is available in the investment_returns
DataFrame. pandas as pd
, numpy as np
, and the following functions have been loaded as well:
from scipy.stats import ttest_ind
from scipy.stats import f_oneway
from scipy.stats import chi2_contingency
This exercise is part of the course
Experimental Design in Python
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
