Re: Untitled

From Gray Frog, 5 Months ago, written in Plain Text, viewed 163 times. This paste is a reply to Untitled from Mature Parakeet - view diff
URL http://codebin.org/view/4f30c1fb Embed
Download Paste or View Raw
  1. sub_time = data_sub['duration'].sample(n = 100)
  2. no_sub_time = data_no_sub['duration'].sample(n = 100)
  3. display(sub_time.mean())
  4. display(no_sub_time.mean())
  5.  
  6. alpha = 0.05
  7.  
  8. results = st.ttest_ind(sub_time, no_sub_time)
  9.  
  10. print('p-значение:', results.pvalue)
  11.  
  12. if results.pvalue < alpha:
  13.     print('Отвергаем нулевую гипотезу')
  14. else:
  15.     print('Не получилось отвергнуть нулевую гипотезу')
  16.  
  17.  

Reply to "Re: Untitled"

Here you can reply to the paste above