You are viewing a single comment's thread. Return to all comments →
simple and sweet python solution
import statistics as st def interQuartile(values, freqs): s = [] for i in range(len(freqs)): for j in range(freqs[i]): s.append(values[i]) s.sort() m = int(len(s)/2) a = st.median(s[:m]) b = st.median(s[m+1:]) return print(float(b-a))
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 →
simple and sweet python solution