Difference between revisions of "Percentile Command"
From GeoGebra Manual
Line 6: | Line 6: | ||
: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. | :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. | ||
− | {{Note | 1= The commands Quartile and Percentile use different rules and do not always return matching results. | + | {{Note | 1= The commands Quartile and Percentile use different rules and do not always return matching results. |
− | :: Q1[{1,2,3,4}] | + | ::{{example|1=<div><code><nowiki>Q1[{1,2,3,4}]</nowiki></code> yields ''2''.</div> <code><nowiki>Percentile[{1,2,3,4}, 0.25]</nowiki></code> yields ''1''.}} }} |
− | |||
− | }} |
Revision as of 12:19, 14 December 2012
- Percentile[<List of Numbers>, <Percent>]
- Let P equal the given Percent.
- 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.
Note: The commands Quartile and Percentile use different rules and do not always return matching results.
- Example:
Q1[{1,2,3,4}]
yields 2.Percentile[{1,2,3,4}, 0.25]
yields 1.