playground
playground copied to clipboard
Wrong variables names
I suspect that variable zt
should be replaced with tt
in print:
zt = ztest(*raw_data, alternative='two-sided')
print('Z-test p (TWO TAILED) = %.3f' % zt[1])
tt = ttest_ind(*raw_data, alternative='two-sided')
print('t-test p (TWO TAILED) = %.3f' % zt[1])
zt = ztest(*raw_data, alternative='larger')
print('Z-test p (ONE TAILED) = %.3f' % zt[1])
tt = ttest_ind(*raw_data, alternative='larger')
print('t-test p (ONE TAILED) = %.3f' % zt[1])