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

Online Help

All Products    Maple    MapleSim


Student[Statistics]

  

InterquartileRange

  

compute the interquartile range

 

Calling Sequence

Parameters

Description

Computation

Examples

References

Compatibility

Calling Sequence

InterquartileRange(A, numeric_option,output_option)

InterquartileRange(M, numeric_option,output_option)

InterquartileRange(X, numeric_option,output_option)

Parameters

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

Description

• 

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.

Computation

• 

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.

Examples

withStudentStatistics:

Compute the interquartile range of the exponential distribution with parameter 4. distribution with parameter 4.

InterquartileRangeExponentialRandomVariable4

8ln2+4ln34

(1)

Use the output=plot option.

InterquartileRangeExponentialRandomVariable4,output=plot

A1,π,ln32,51

A

(2)

InterquartileRangeA

51π

(3)

Use numeric option.

InterquartileRangeA,numeric

47.8584073464102

(4)

Consider the following Matrix data sample.

MMatrix3,16.0,π,4.0,17,18,196,sqrt5,3,2,88,8,4,1,0

M

(5)

We compute the interquartile range of each of the columns.

InterquartileRangeM

(6)

Use the output=both option.

interquartilerange,graphInterquartileRangeM,output=both

interquartilerange,graph?,

(7)

interquartilerange

(8)

graph

References

  

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

Compatibility

• 

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]

Student[Statistics][Quartile]

Student[Statistics][RandomVariables]