You are viewing a single comment's thread. Return to all comments →
import numpy as np from scipy.stats import mode n = int(input()) numbers = list(map(int, input().split())) m = np.mean(numbers) s = round(np.std(numbers),1) z = 1.96 std_error = (s/(np.sqrt(len(numbers)))) lower = round(m - (z*std_error), 1) upper = round(m + (z*std_error), 1) print(m) print(np.median(numbers)) print(mode(numbers)[0]) print(s) print(f'{lower} {upper}')
Seems like cookies are disabled on this browser, please enable them to open this website
Basic Statistics Warmup
You are viewing a single comment's thread. Return to all comments →