Excel QUARTILE函数计算逻辑
来源:互联网 发布:json文件注释报错 编辑:程序博客网 时间:2024/06/06 09:23
从微软网站上找到的关于 Excel 上 QUARTILE() 函数的计算逻辑,与分位值的常规计算方式略有差异,因此记录下来,供需要时参考:
The following is the algorithm used to calculate QUARTILE():
1) Find the kth smallest member in the array of values, where: k=(quart/4)*(n-1))+1
If k is not an integer, truncate it but store the fractional portion (f) for use in step 3. And where:
- quart = value between 0 and 4 depending on which quartile you want to find
- n = number of values in the array
2) Find the smallest data point in the array of values that is greater than the kth smallest – the (k+1)th smallest member.
3) Interpolate between the kth smallest and the (k+1)th smallest values:
Output = a[k]+(f*(a[k+1]-a[k])) a[k] = the kth smallest a[k+1] = the k+1th smallest
Example
To find the third quartile in the array of values 0,2,3,5,6,8,9, follow these steps:
1) Find k and f:
k=TRUNC((3/4*(7-1))+1)=5 f=(3/4*(7-1))-TRUNC(3/4*(7-1))=.5
2) The fifth (kth) smallest value is 6, and the (5+1)th smallest value is 8.
3) Interpolate:
6+(.5*(8-6))=7
- Excel QUARTILE函数计算逻辑
- 如何在excel中计算percentile和quartile
- Excel排名函数PERCENTRANK计算逻辑
- Excel逻辑函数-IF
- Excel的逻辑函数例子
- Excel逻辑函数的使用
- Excel函数应用之逻辑函数
- 复变函数的逻辑计算
- Excel添加SHA256计算函数
- Excel函数应用之逻辑函数:countif和sumif函数
- 利用Excel函数多角度计算个人所得税
- Excel函数公式计算阶梯式电价
- (转载问问)一道EXCEL逻辑判断函数的实例
- Percentile和Quartile
- 统计学中的quartile
- Excel表格变红逻辑
- 分子计算:逻辑层
- 计算逻辑地址
- JDK、JRE和JVM的关系
- 单例模式的七种写法
- ORACLE常用函数学习记录
- Intellij Idea 工具在java文件中怎么避免 import .*包,以及import包顺序的问题
- 优雅地关闭Socket;检测非正常断开的TCP连接
- Excel QUARTILE函数计算逻辑
- CentOS7「tuned」
- 可以通过手势放大缩小图片的TouchImageView
- 深入理解ASP.NET的内部运行机制
- 九章算法笔记10.3 part2
- C# 空合并操作符 ??
- 正则表达式的符号和常用表达式
- java移位运算符:<<(左移)、>>(带符号右移)和>>>(无符号右移)。
- HTML5获取地理位置