You are viewing a single comment's thread. Return to all comments →
#python from statistics import median def interQuartile(values, freqs): res=sorted([values[i] for i in range(len(values)) for _ in range(freqs[i])]) Q1=median(res[:len(res)//2]) Q3=median(res[(len(res)//2)+1:]) print(round(float(Q3-Q1), 1))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Interquartile Range
You are viewing a single comment's thread. Return to all comments →