SciPy - Statistical Tests
What is the output of this code snippet?
from scipy.stats import ttest_rel
before = [20, 22, 19, 24, 25]
after = [21, 23, 20, 22, 26]
result = ttest_rel(before, after)
print(round(result.pvalue, 3))What is the output of this code snippet?
from scipy.stats import ttest_rel
before = [20, 22, 19, 24, 25]
after = [21, 23, 20, 22, 26]
result = ttest_rel(before, after)
print(round(result.pvalue, 3))ttest_rel compares paired samples 'before' and 'after'. The differences are small.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions