SciPy - Curve Fitting and Regression
What is the output of the following code?
import numpy as np from scipy.stats import t data = np.array([5, 7, 8, 6, 9]) mean = np.mean(data) se = np.std(data, ddof=1) / np.sqrt(len(data)) interval = t.interval(0.95, len(data)-1, loc=mean, scale=se) print(tuple(round(x, 2) for x in interval))
