compute the median
Median(A, numeric_options, output_option)
Median(M, numeric_options, output_option)
Median(X, numeric_options, output_option)
Matrix data sample
algebraic; random variable
(optional) equation of the form numeric=value where value is true or false
(optional) equation of the form output=x where x is value, plot, or both
The Median function computes the median of the specified random variable or data sample.
The first parameter can be a Vector, a list, a Matrix, a random variable, or an algebraic expression involving random variables (see Student[Statistics][RandomVariable]).
In the first calling sequence, if A has an even number of data points, then the median is the mean of the two middle data points.
In the second calling sequence, if X is a discrete random variable, then the median is defined as the first point t such that the CDF at t is greater than or equal to 12.
If the option output is not included or is specified to be output=value, then the function will return the value of the mean. If output=plot is specified, then the function will return a plot of the input data set and its mean. If output=both is specified, then both the value and the plot of the mean will be returned.
By default, all computations involving random variables are performed symbolically (see option numeric below).
If the median is determined by only one data point in the data set, then the median equals that data point.
If the median is determined by two data points in the data set, and at least one of them has floating point values or the option numeric is included , then the computation is done in floating point. Otherwise the computation is exact.
By default, the median is computed according to the rules mentioned above. To always compute the median numerically, specify the numeric or numeric = true option.
Compute the median of the Normal distribution with parameters p and q.
Use numeric parameters.
If the output=plot option is included, then a plot will be returned.
Compute the median of the given data. Since π and 4 are the numbers that are eventually used to compute the median, and they are both exact values (not using floating point values), the result is an exact expression.
Compute the median of the given data. Since 263 and 22.0 are the numbers that are eventually used to compute the median, and 22.0 is a floating point value, the result will be a floating point value.
If the output=both option is included, then both the value of the median and its plot will be returned.
Consider the following Matrix data sample.
Compute the median of each of the columns according to the computation rules.
Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.
The Student[Statistics][Median] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
Download Help Document
What kind of issue would you like to report? (Optional)