Untitled

From Mature Parakeet, 5 Months ago, written in Plain Text, viewed 96 times.
URL http://codebin.org/view/139a04f7 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/2)
  11.  
  12. if results.pvalue < alpha:
  13.     print('Отвергаем нулевую гипотезу')
  14. else:
  15.     print('Не получилось отвергнуть нулевую гипотезу')
  16.  
  17.  

Replies to Untitled rss

Title Name Language When
Re: Untitled Gray Frog text 5 Months ago.

Reply to "Untitled"

Here you can reply to the paste above