- UID
- 268815
- 在线时间
- 小时
- 注册时间
- 2007-8-24
- 最后登录
- 1970-1-1
- 主题
- 帖子
- 性别
- 保密
|
LZ搞懂定义就明确了,OG12对中位数如下定义。
The median is another type of center for a list of numbers. To calculate the median of n numbers, first order the numbers from least to greatest; if n is odd, the median is defined as the middle number, whereas if n is even, the median is defined as the average of the two middle numbers. In the example above, the numbers, in order, are 4, 4, 6, 7, 10, and the median is 6, the middle number.For the numbers 4, 6, 6, 8, 9, 12, the median is (6 + 8)/2=7.
n个数按从小到大排列,n是奇数时,排第(n+1)/2位的数就是中位数。如果转换成比例,也就是有(n+1)/2 - 1个数大于它,即中位数是quantile 50%的数。n为偶数情形类似。
对电视机这种只知道数据比例分布的题,同样先从小到大排序,比如其中一个变体,中位数是2. 3 40% 2 20% <- 排第50%位的数位于此区间 1 30% 0 10% |
|