SciPy - Statistical Tests
Consider the following code using SciPy to test if two samples have different means:
What is the printed p-value rounded to 3 decimals?
import numpy as np from scipy.stats import ttest_ind sample1 = np.array([5, 7, 8, 6, 9]) sample2 = np.array([10, 12, 11, 13, 14]) stat, p = ttest_ind(sample1, sample2) print(round(p, 3))
What is the printed p-value rounded to 3 decimals?
