Percentile Command

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.

Percentile({1, 2, 3, 4}, 0.25) yields 1.25.

Percentile( <List of Numbers>, <List of Frequencies>, <Percent> )

Same as above, but each number in the list of numbers is counted as many times as given by the corresponding element of the list of frequencies.

Percentile({1, 2, 3}, {1, 2, 3}, 0.5) yields 2.5, the same as Percentile({1, 2, 2, 3, 3, 3}, 0.5).

The commands Quartile and Percentile use different rules and do not always return matching results.

Q1({1, 2, 3, 4}) yields 1.5 whereas Percentile({1, 2, 3, 4}, 0.25) yields 1.25.