import numpy as np ages=[3,3,6,7,7,10,10,10,11,13,30] lower_q=np.quantile(ages,0.25,interpolation='lower')#下四分位数 higher_q=np.quantile(ages,0.75,interpolation='higher')#上四分位数 int_r=higher_q-lower_q#四分位距
import numpy as np ages=[3,3,6,7,7,10,10,10,11,13,30] lower_q=np.quantile(ages,0.25,interpolation='lower')#下四分位数 higher_q=np.quantile(ages,0.75,interpolation='higher')#上四分位数 int_r=higher_q-lower_q#四分位距
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。