- sub_time = data_sub['duration'].sample(n = 100)
- no_sub_time = data_no_sub['duration'].sample(n = 100)
- display(sub_time.mean())
- display(no_sub_time.mean())
- alpha = 0.05
- results = st.ttest_ind(sub_time, no_sub_time)
- print('p-значение:', results.pvalue)
- if results.pvalue < alpha:
- print('Отвергаем нулевую гипотезу')
- else:
- print('Не получилось отвергнуть нулевую гипотезу')
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
— Expand Paste to full width of browser