Quantile - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Student[Statistics]

  

Quantile

  

compute quantiles

  

Quartile

  

compute quartiles

  

Percentile

  

compute percentiles

  

Decile

  

compute deciles

 

Calling Sequence

Parameters

Description

Computation

Examples

References

Compatibility

Calling Sequence

Quantile(A, qn, numeric_option, output_option)

Quantile(M, qn, numeric_option, output_option)

Quantile(X, qn, numeric_option, output_option)

Quartile(A, qr, numeric_option, output_option)

Quartile(M, qr, numeric_option, output_option)

Quartile(X, qr, numeric_option, output_option)

Decile(A, d, numeric_option, output_option)

Decile(M, d, numeric_option, output_option)

Decile(X, d, numeric_option, output_option)

Percentile(A, p, numeric_option, output_option)

Percentile(M, p, numeric_option, output_option)

Percentile(X, p, numeric_option, output_option)

Parameters

A

-

data sample

M

-

Matrix data sample

X

-

algebraic; random variable

qn

-

algebraic; probability expressed as a number between 0 and 1 (inclusive)

qr

-

algebraic; probability expressed as a number between 0 and 4 (inclusive)

d

-

algebraic; probability expressed as a number between 0 and 10 (inclusive)

p

-

algebraic; probability expressed as a percentage

numeric_option

-

(optional) equation of the form numeric=value where value is true or false

output_option

-

(optional) equation of the form output=x where x is value, plot, or both

Description

• 

The Quantile function computes the quantile corresponding to the given probability p for the specified random variable or data sample.

• 

The th quantile of a data sample or random variable is the same as the th quartile, the th decile, and the th percentile.

• 

For a real valued random variable X with distribution function , and any  between 0 and 1, the th quantile of  is defined as . For continuous random variables this is equivalent to the inverse distribution function.

• 

The first parameter can be a data sample (e.g., a Vector), a Matrix data sample, a random variable, or an algebraic expression involving random variables (see Student[Statistics][RandomVariable]).

• 

The second parameter p is the probability, which has to be between 0 and 1 (inclusive) for Quantile, between 0 and 4 (inclusive) for Quartile, between 0 and 10 (inclusive) for Decile, and between 0 and 100 (inclusive) for Percentile.

• 

The number we are looking for is the th item in the sorted data sample, where . This is the same as using method=1 in Statistics[ Quantile].

Computation

• 

By default, all computations involving random variables are performed symbolically (see option numeric below).

• 

If the selected quantile, quartile, decile, or percentile is a floating point value, then the floating point value is returned. Otherwise, the value is returned as is.

• 

By default, the quantile, quartile, decile, percentile are computed according to the rules mentioned above. To always compute the quantile numerically, specify the numeric or numeric = true option.

Examples

Compute a quantile of the normal distribution.

(1)

Use numeric parameters.

(2)

(3)

Use the output=plot option.

Create two normal random variables and compute the quantiles of their sum.

(4)

(5)

Compute the quantile of a data sample.

(6)

Consider the following Matrix data sample.

(7)

We compute the  quantile of each of the columns.

(8)

The th quantile of a data sample or random variable is the same as the th quartile, the th decile, and the th percentile.

(9)

(10)

(11)

Use the output=both option.

(12)

(13)

References

  

Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.

  

Hyndman, R.J., and Fan, Y. "Sample Quantiles in Statistical Packages." American Statistician, Vol. 50. (1996): 361-365.

Compatibility

• 

The Student[Statistics][Quantile] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

Statistics[Percentile]

Statistics[Quantile]

Statistics[Quartile]

Student

Student[Statistics]

Student[Statistics][RandomVariable]

 


Download Help Document