分位数的理解
分位数的理解
分位数常见的有百分位数和四分位数,分位数可以以概率的方式将一批数据进行分割。具体可参考以下链接:
- https://www.zhihu.com/question/67763556
- https://blog.csdn.net/zhouqj1913/article/details/88676264
- https://blog.csdn.net/LAW_harder/article/details/78885729
- https://www.cnblogs.com/zhaohuanhuan/p/9055944.html
- https://mp.weixin.qq.com/s?__biz=MzU5MDQ3NTQxMw==&mid=2247484094&idx=1&sn=85618b06d7f94b2481cfd5b4fada076f&chksm=fe3cfb44c94b7252d62d865f0f974b6b7774119e1dc2fb1d9dc2ad8bc44302172b2332371438#rd
python中pandas库对分数数的计算:https://www.cnblogs.com/zhaohuanhuan/p/9055944.html
data = pd.read_table('/Users/bai sheng/Desktop/222', usecols=[0,1,2])
data.describe([.1, .2])
output:
a b c
count 2.000000 2.000000 2.000000
mean 2.500000 2.500000 2.500000
std 0.707107 0.707107 0.707107
min 2.000000 2.000000 2.000000
10% 2.100000 2.100000 2.100000
20% 2.200000 2.200000 2.200000
50% 2.500000 2.500000 2.500000
max 3.000000 3.000000 3.000000
百分位数的计算方法