Advertisement
AlexErin1308

12.04.2024_1

Apr 12th, 2024
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | Source Code | 0 0
  1. alpha = 0.05
  2.  
  3. results = st.ttest_ind(
  4.     users_rides_income.loc[users_rides_income['subscription_fee'] > 0, 'income'],
  5.     users_rides_income.loc[users_rides_income['subscription_fee'] == 0, 'income'],
  6.     equal_var=True,
  7.     alternative='greater')
  8. print(results.pvalue)
  9.  
  10. if results.pvalue < alpha:
  11.     print('Отвергаем нулевую гипотезу')
  12. else:
  13.     print('Не получилось отвергнуть нулевую гипотезу')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement