Difference between revisions of "Documentation/How Tos/Calc: PERCENTILE function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
m |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE:PERCENTILE function}} |
+ | {{Documentation/CalcFunc StatisticalTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_MINA_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_PERCENTRANK_function | ||
+ | }}__NOTOC__ | ||
== PERCENTILE == | == PERCENTILE == | ||
Line 9: | Line 14: | ||
: <tt>'''PERCENTILE'''</tt> returns the value below which <tt>'''fraction'''</tt> of the numbers in <tt>'''numberlist'''</tt> lie. <tt>'''fraction'''</tt> must be between 0 and 1 inclusive; <tt>'''numberlist'''</tt> is a range or array of numbers, not necessarily in order. | : <tt>'''PERCENTILE'''</tt> returns the value below which <tt>'''fraction'''</tt> of the numbers in <tt>'''numberlist'''</tt> lie. <tt>'''fraction'''</tt> must be between 0 and 1 inclusive; <tt>'''numberlist'''</tt> is a range or array of numbers, not necessarily in order. | ||
− | : <tt>'''PERCENTILE'''</tt> internally assigns a rank to each number in <tt>'''numberlist'''</tt>, where 0 is the rank of the lowest number, 1 of the next lowest and so on. The rank ''r'' of the value to be found is <tt>'''fraction'''</tt> * (''N''-1), where ''N'' is the count of numbers in <tt>'''numberlist'''</tt>. If ''r'' is integer the corresponding value from <tt>'''numberlist'''</tt> is returned; otherwise the value is calculated proportionately between the values with rank |''r''| and |''r''|+1 (see the examples). | + | : <tt>'''PERCENTILE'''</tt> internally assigns a rank to each number in <tt>'''numberlist'''</tt>, where 0 is the rank of the lowest number, 1 of the next lowest and so on. The rank ''r'' of the value to be found is <tt>'''fraction'''</tt> * (''N''-1), where ''N'' is the count of numbers in <tt>'''numberlist'''</tt>. If ''r'' is an integer, the corresponding value from <tt>'''numberlist'''</tt> is returned; otherwise the value is calculated proportionately between the values with rank |''r''| and |''r''|+1 (see the examples). |
: This function may be useful for example when determining a score below which lies a certain percentage of all scores for a test. It is of limited use with a small list of numbers. | : This function may be useful for example when determining a score below which lies a certain percentage of all scores for a test. It is of limited use with a small list of numbers. | ||
Line 28: | Line 33: | ||
: returns <tt>'''6'''</tt>. There are 4 numbers in the list. The rank of the value to be found is 0.25 * (4-1) = 0.75. The lowest number <tt>'''3'''</tt> is assigned rank 0; the next highest number <tt>'''7'''</tt> is assigned rank 1. The value with rank 0.75 lies proportionately between 3 and 7, and is calculated as 3 + (7-3)*0.75 = 6. | : returns <tt>'''6'''</tt>. There are 4 numbers in the list. The rank of the value to be found is 0.25 * (4-1) = 0.75. The lowest number <tt>'''3'''</tt> is assigned rank 0; the next highest number <tt>'''7'''</tt> is assigned rank 1. The value with rank 0.75 lies proportionately between 3 and 7, and is calculated as 3 + (7-3)*0.75 = 6. | ||
− | === | + | ===Issues: === |
− | + | * Despite its name, <tt>'''PERCENTILE'''</tt> requires a fraction, not a percentage. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | [[Documentation/How_Tos/Calc: | + | {{SeeAlso|EN| |
+ | * [[Documentation/How_Tos/Calc: QUARTILE function|QUARTILE]] | ||
+ | * [[Documentation/How_Tos/Calc: PERCENTRANK function|PERCENTRANK]] | ||
+ | * [[Documentation/How_Tos/Calc: RANK function|RANK]] | ||
+ | * [[Documentation/How_Tos/Calc: MEDIAN function|MEDIAN]] | ||
+ | * [[Documentation/How_Tos/Calc: MAX function|MAX]] | ||
+ | * [[Documentation/How_Tos/Calc: MIN function|MIN]] | ||
− | [[Documentation/How_Tos/Calc: | + | * [[Documentation/How_Tos/Calc: Statistical functions|Statistical functions]] |
− | + | ||
− | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | |
− | * | + | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} |
+ | [[Category: Documentation/Reference/Calc/Statistical functions]] |