Jump to content

Interquartile range: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Line 9: Line 9:
The [[median]] is the corresponding measure of [[central tendency]].IQR = Q<sub>3</sub> - Q<sub>1</sub>
The [[median]] is the corresponding measure of [[central tendency]].IQR = Q<sub>3</sub> - Q<sub>1</sub>


<math>d<nowiki>Insert non-formatted text here</nowiki></math>==Examples==
==Examples==
[[Image:Boxplot vs PDF.png|250px|thumb|[[Boxplot]] (with an interquartile range) and a [[probability density function]] (pdf) of a Normal N(0,1σ<sup>2</sup>) Population]]
[[Image:Boxplot vs PDF.png|250px|thumb|[[Boxplot]] (with an interquartile range) and a [[probability density<sup> function]] (pdf) of a Normal N(0,1σ<sup>2</sup>) Population]]


===[[Data set]] in a table===
===[[Data set]] in a table===</sup>{| class="wikitable"

{| class="wikitable"
|-
|-
! i
! i

Revision as of 18:16, 2 December 2009

In descriptive statistics, the interquartile range (IQR), also called the midspread or middle fifty, is a measure of statistical dispersion, being equal to the difference between the third and first quartiles.

Unlike the (total) range, the interquartile range is a robust statistic, having a breakdown point of 25%, and is thus often preferred to the total range.

The IQR is used to build box plots, simple graphical representations of a probability distribution.

or a symmetric distribution (so the median equals the midhinge, the average of the first and third quartiles), half the IQR equals the median absolute deviation (MAD).

The median is the corresponding measure of central tendency.IQR = Q3 - Q1

==Examples==

Boxplot (with an interquartile range) and a [[probability density function]] (pdf) of a Normal N(0,1σ2) Population

===Data set in a table==={| class="wikitable" |- ! i ! x[i] ! Quartile |- | 1 | 102 |- | 2 | 104 |- | 3 | 105 | Q1 |- | 4 | 107 |- | 5 | 108 |- | 6 | 109 | Q2 (median) |- | 7 | 110 |- | 8 | 112 |- | 9 | 115 | Q3 |- | 10 | 116 |- | 11 | 118 |}

From this table, the width of the hi interquartie range is 115 − 105 = 10.

Data set in a plain-text box plot

                    |                   |
                    |       +-----+-+   | 
  o           *     |-------|     | |---|
                    |       +-----+-+   |
                    |                   | 
+---+---+---+---+---+---+---+---+---+---+---+---+   number line
0   1   2   3   4   5   6   7   8   9   10  11  12

For this data set:

  • lower (first) quartile (, ) = 7
  • median (second quartile) (, ) = 8.5
  • upper (third) quartile (, ) = 9
  • interquartile range,

Interquartile range of distributions

The interquartile range of a continuous distribution can be calculated by integrating the probability density function (which yields the cumulative distribution function—any other means of calculating the CDF will also work). The lower quartile, Q1, is a number such that integral of the PDF from -∞ to Q1 equals 0.25, while the upper quartile, Q3, is such a number that the integral from -∞ to Q3 equals 0.75; in terms of the CDF, the quartiles can be defined as follows:

The interquartile range and median of some common distributions are shown below

Distribution Median IQR
Normal μ 2 Φ−1(0.75) ≈ 1.349
Laplace μ 2b ln(2)
Cauchy μ

See also