middle quantile of a data set or probability distribution From Wikipedia, the free encyclopedia
In probability theory and statistics, the median of a data set , sometimes written as ,[1] is a number describing the data set. This number has the property that it divides a set of observed values in two equal halves, so that half of the values are below it and half are above.
If there are a finite number of elements, the median is easy to find. The values need to be arranged in a list, from the lowest to highest. If there is an odd number of values, the median is the one at position . For example, if there are 13 values, they can be arranged into two groups of 6, with the median in between, at position 7. With an even number of values, as there is no single number which divides all of the numbers to two halves, the median is defined as the mean of the two central elements.[2] With 14 observations, this would be the mean of the elements at positions 7 and 8, which is their sum divided by 2.
Alternatively, the median of an even-sized list is sometimes defined as either of the two middle elements; the choice being either (a) always the smallest one, (b) always the largest one, or (c) randomly choose between the two. This alternative definition has two important advantages: it guarantees that the median is always a list element (for example. a list of integers will never have a fractional median), and it guarantees that the median exists for any ordinal-valued data. On the other hand, when one of the choices (a) or (b) is taken, the median of a sample will be biased, which is an unwanted property of a statistical estimator. Definition (c) does not have that disadvantage, but it is more difficult to do. It also has the disadvantage that the same list of values does not have a well-defined, deterministic median.
Median and mean are different in several ways. Mean is a better measure in many cases, because many of the statistical tests can use mean and standard deviation of two observations to compare them, while the same comparison cannot be performed using the medians.
Median is more useful when the variance of the values is not important, and we only need a central measure of the values. If the maximum value of a set of numbers changes while the other numbers of this set are kept the same, the mean of this set of numbers changes, but the median does not.
Another advantage of median is that it can be calculated sooner when we are studying survival data. For example, a researcher can calculate the median survival of patients with a kidney transplant, when half the patients participated in his study die. Calculating the mean survival requires continuing the study, and following all the patients until their death.[3]
Suppose one wants to know how many jelly beans most people in the room have, and that there are five people in the room:
The results change a lot for numbers with larger ranges. Suppose that one has the following group of five people:
In this second case, the mean gives a poor understanding of how many jelly beans most people have (10 or less), while the median gives a better idea of the number of jelly beans most people have. To divide up the number of jelly beans equally, however, one would use the mean. The median is basically the middle number.
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.