quantileSeq

quantileSeq(A, prob[, sorted])

quantileSeq(A, [prob1, prob2, ...][, sorted])

quantileSeq(A, N[, sorted])

Try it yourself:


quantileSeq(): Quantiles from Ordered Data

quantileSeq() computes quantiles from a data sequence, identifying values below which a chosen fraction of observations falls. Quartiles and percentiles are common examples.

Prepare data first

Quantiles depend on ordering and interpolation conventions. Sort data with sort() when needed, and document the selected probability and method. Use median() for the 50th-percentile concept and mean() for an average, which answers a different question.

Ensure the sequence is nonempty and that probabilities are within the accepted range. Extreme quantiles can be sensitive to small samples; inspect count with size() and outliers with min() or max().

Try Quantile Seq in Calcul.io

Start with one of the editable examples above, then replace its arguments with your own values. Keeping the function on a separate calculator line makes the input and result easy to compare. For a longer workflow, assign the result to a variable or reference that line in the next expression.

Check the shown signature before adding optional arguments, and use the related-function links to compare operations with similar purposes.

All functions