Student[Statistics]
InterquartileRange
compute the interquartile range
Calling Sequence
Parameters
Description
Computation
Examples
References
Compatibility
InterquartileRange(A, numeric_option,output_option)
InterquartileRange(M, numeric_option,output_option)
InterquartileRange(X, numeric_option,output_option)
A
-
data sample
M
Matrix data sample
X
algebraic; random variable
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
The InterquartileRange function computes the interquartile range of the specified random variable or data sample.
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]).
If the option output is not included or is specified to be output=value, then the function will return the value of the interquartile range. If output=plot is specified, then the function will return a plot of the input data set and its interquartile range. If output=both is specified, then both the value and the plot of the interquartile range will be returned.
By default, all computations involving random variables are performed symbolically (see option numeric below).
The InterquartileRange function computes the interquartile range of the input data set by first computing the first and the third quartile of the data set according to the rule in Student[Statistics][Quartile], and then computing the difference between them as the final answer.
To always compute the interquartile range numerically, specify the numeric or numeric=true option.
with⁡StudentStatistics:
Compute the interquartile range of the exponential distribution with parameter 4. distribution with parameter 4.
InterquartileRange⁡ExponentialRandomVariable⁡4
8⁢ln⁡2+4⁢ln⁡34
Use the output=plot option.
InterquartileRange⁡ExponentialRandomVariable⁡4,output=plot
A≔−1,π,ln⁡32,51
A≔
InterquartileRange⁡A
51−π
Use numeric option.
InterquartileRange⁡A,numeric
47.8584073464102
Consider the following Matrix data sample.
M≔Matrix⁡3,16.0,π,4.0,17,18,196,sqrt⁡5,−3,2,88,−8,4,1,0
M≔
We compute the interquartile range of each of the columns.
InterquartileRange⁡M
Use the output=both option.
interquartilerange,graph≔InterquartileRange⁡M,output=both
interquartilerange,graph≔?,
interquartilerange
graph
Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.
The Student[Statistics][InterquartileRange] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
Statistics[InterquartileRange]
Student
Student[Statistics][Quartile]
Student[Statistics][RandomVariables]
Download Help Document