Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alpha = 0.05
- results = st.ttest_ind(
- users_rides_income.loc[users_rides_income['subscription_fee'] > 0, 'income'],
- users_rides_income.loc[users_rides_income['subscription_fee'] == 0, 'income'],
- equal_var=True,
- alternative='greater')
- print(results.pvalue)
- if results.pvalue < alpha:
- print('Отвергаем нулевую гипотезу')
- else:
- print('Не получилось отвергнуть нулевую гипотезу')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement