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刪除。