median of a distribution
Given a probability distribution (density) function on over a random variable , with the associated probability measure
, a median of is a real number such that
- 1.
- 2.
The median is also known as the -percentile or the second quartile.
Examples:
- •
An example from a discrete distribution. Let . Suppose the random variable has the following distribution
: and . Then we can easily see the median is 0.
- •
Another example from a discrete distribution. Again, let . Suppose the random variable has distribution and . Then we see that the median is not unique. In fact, all real values in the interval are medians.
- •
In practice, however, the median may be calculated as follows: if there are numeric data points, then by ordering the data values (either non-decreasingly or non-increasingly),
- (a)
the -th data point is the median if is odd, and
- (b)
the midpoint of the th and the th data points is the median if is even.
- (a)
- •
The median of a normal distribution
(with mean and variance
) is . In fact, for a normal distribution, mean = median = mode.
- •
The median of a uniform distribution
in the interval is .
- •
The median of a Cauchy distribution
with location parameter t and scale parameter s is the location parameter.
- •
The median of an exponential distribution
with location parameter and scale parameter is the scale parameter times the natural log of 2, .
- •
The median of a Weibull distribution
with shape parameter , location parameter , and scale parameter is .