四分位数、np.percentile( )函数

 

np.percentile( )函数

quantile( )函数

 

 四分位数

注意:这里计算位置时,都是n+1,(n表示n个数)

下四分位数的位置Q1=(n+1)*0.25

中位数的位置Q2=(n+1)*0.5

上四分位数的位置Q3=(n+1)*0.75 

 

 

np.percentile函数

 

posted @ 2019-07-20 12:45  limalove  阅读(7432)  评论(0编辑  收藏  举报