Difference between revisions of "Percentile Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
(command syntax: changed [ ] into ( ))
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
+
<noinclude>{{Manual Page|version=5.0}}</noinclude> {{command|statistics}}
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
;Percentile( &lt;List of Numbers>, <Percent> )
{{command|statistics}}
+
: Let ''P'' equal the given ''Percent''.  
;Percentile[<List of Numbers>, <Percent>]
+
:Returns the value that cuts off the first ''P'' percent of the ''list of numbers'', when the list is sorted in ascending order.  ''Percent'' must be a number in the interval ''0 < P ≤ 1''.
: Let P equal the given ''Percent''.  
+
:{{example|1=<code><nowiki>Percentile({1, 2, 3, 4}, 0.25)</nowiki></code> yields ''1.25''.}}
:Returns the value that cuts off the first P percent of the number list when the list is sorted in ascending order.  ''Percent'' must be a number in the interval 0 < P ≤ 1.
 
:{{example|1=<div><code><nowiki>Percentile[{1, 2, 3, 4}, 0.25]</nowiki></code> yields ''1.25''.</div>}}
 
  
{{Note | 1= The commands Quartile and Percentile use different rules and do not always return matching results.
+
{{Note | 1= The commands [[Q1_Command|Quartile]] and Percentile use different rules and do not always return matching results.
::{{example|1=<div><code><nowiki>Q1[{1, 2, 3, 4}]</nowiki></code> yields ''1.5''.</div> <code><nowiki>Percentile[{1, 2, 3, 4}, 0.25]</nowiki></code> yields ''1.25''.}} }}
+
::{{example|1=<code><nowiki>Q1({1, 2, 3, 4})</nowiki></code> yields ''1.5'' whereas <code><nowiki>Percentile({1, 2, 3, 4}, 0.25)</nowiki></code> yields ''1.25''.}} }}

Latest revision as of 09:56, 12 October 2017


Percentile( <List of Numbers>, <Percent> )
Let P equal the given Percent.
Returns the value that cuts off the first P percent of the list of numbers, when the list is sorted in ascending order. Percent must be a number in the interval 0 < P ≤ 1.
Example: Percentile({1, 2, 3, 4}, 0.25) yields 1.25.


Note: The commands Quartile and Percentile use different rules and do not always return matching results.
Example: Q1({1, 2, 3, 4}) yields 1.5 whereas Percentile({1, 2, 3, 4}, 0.25) yields 1.25.
© 2024 International GeoGebra Institute