A median of a real random variable is a number with at least half the probability at or below it and at least half at or above it:Equivalently, its cumulative distribution function satisfies . The non-strict inequalities matter for atoms: if almost surely, zero is its median despite having no probability strictly below or strictly above it.
A median need not be unique. If zero and one each have probability , every point in is a median. The generalized inverse selects the lower median. For a continuous strictly increasing cumulative distribution function, the unique median solves .
For a finite data set, the sample median measures the middle rather than the arithmetic average. The sample has median three and mean 22; changing 100 to a still larger value leaves its median unchanged. With finite first absolute moment, medians are exactly the minimizers of expected absolute loss, giving a decision-theoretic reason for their usefulness.
The median is a measure of central tendency that represents the middle value of a dataset when the values are arranged in ascending or descending order. To find the median: 1. **Organize the Data**: Arrange the numbers in the dataset from smallest to largest (or largest to smallest). 2. **Count the Observations**: - If there is an **odd number** of observations, the median is the middle number.
New to topics? Read the docs here!