]>
Suppose again that we have a basic random experiment, and that is a real-valued random variable for the experiment with distribution function and probability density function .
We perform independent replications of the basic experiment to generate a random sample of size from the distribution of . Recall that this is a sequence of independent random variables, each with the distribution of .
Let denote the smallest of element of the sample . This statistics is called the order statistic of order . Often the first step in a statistical study is to order the data; thus order statistics occur naturally. Our goal in this section is to study the distribution of the order statistics in terms of the sampling distribution. Note in particular that the extreme order statistics are the minimum and maximum values:
In the order statistic experiment, use the default settings and run the experiment a few times. Note the following:
Let denote the distribution function of . Define
Show that has the binomial distribution with parameters and for each .
Show that if and only if for and .
Use the results of Exercises 2 and 3 to show that
In particular, show that .
In particular, show that .
Suppose now that has a continuous distribution. Show that has a continuous distribution with probability density function
Hint: Differentiate the expression in Exercise 4 with respect to .
In the order statistic experiment, select the uniform distribution on and . Vary from 1 to 5 and note the shape of the density function of . For each value of , run the simulation 1000 times with and update frequency of 10. Note the apparent convergence of the empirical density function to the true density function.
There is a simple heuristic argument for the result in Exercise 7. First, is the probability that is in an infinitesimal interval of size about . On the other hand, this event means that one of sample variables is in the infinitesimal interval, sample variables are less than , and sample variables are greater than . The number of ways of choosing these variables is the multinomial coefficient
By independence, the probability that the chosen variables are in the specified intervals is
Consider a random sample of size from the exponential distribution with rate parameter . Compute the probability density function of the order statistic . In particular, note that the minimum of the variables has the exponential distribution with rate parameter .
In the order statistic experiment, select the exponential (1) distribution and . Vary from 1 to 5 and note the shape of the probability density function of . For each value of , run the simulation 1000 times with and update frequency of 10. Note the apparent convergence of the empirical density function to the true density function.
Consider a random sample of size from the uniform distribution on the interval .
In the order statistic experiment, select the uniform distribution on and . Vary from 1 to 6 and note the size and location of the mean/standard deviation bar. For each value of , run the simulation 1000 times with and update frequency of 10. Note the apparent convergence of the empirical moments to the distribution moments.
In the dice experiment, select the following order statistic and die distribution. Increase the number of dice from 1 to 20, noting the shape of the probability density function at each stage. Now with , run the simulation 1000 times, updating every 10 runs. Note the apparent convergence of the relative frequency function to the density function.
Suppose again that has a continuous distribution.
Suppose that . Use an heuristic argument to show that the joint density of is
Similar arguments can be used to obtain the joint probability density function of any number of the order statistics. Of course, we are particularly interested in the joint probability density function of all of the order statistics; the following exercise gives this joint probability density function, which has a remarkably simple form.
Show that has joint probability density function given by
Again, there is a simple heuristic argument for the formula in Exercise 16. For each with , there are permutations of the coordinates of . The probability density of at each of the this points is . Hence the probability density of at is times this product.
Consider a random sample of size from the exponential distribution with rate parameter . Compute the joint probability density function of the order statistics .
Suppose that is a random sample of size from the uniform distribution on the interval , where . Show that
We will study several important statistics that are based on order statistics.
The sample range is the random variable
This statistic gives a simple measure of the dispersion of the sample. Note the distribution of the sample range can be obtained from the joint distribution of given earlier.
Consider a random sample of size from the exponential distribution with rate parameter . Show that the sample range has the same distribution as the maximum of a random sample of size from this exponential distribution.
Consider a random sample of size from the uniform distribution on .
If is odd, the sample median is the middle of the ordered observations, namely
If is even, there is not a single middle observation, but rather two middle observations. Thus, the median interval is
In this case, the sample median is defined to be the midpoint of the median interval
In a sense, this definition is a bit arbitrary because there is no compelling reason to prefer one point in the median interval over another. For more on this issue, see the discussion of error functions in the section on Variance. In any event, sample median is a natural statistic that is analogous to the median of the distribution. Moreover, the distribution of the sample median can be obtained from our results on order statistics.
We can generalize the sample median discussed above to other sample quantiles. Suppose that . Let , the integer part of , and let , the fractional part of . Using linear interpolation, we define the sample quantile of order to be
Once again, the sample quantile of order is a natural statistic that is analogous to the distribution quantile of order . Moreover, the distribution of a sample quantile can be obtained from our results on order statistics.
The sample quantile of order is known as the first sample quartile and is frequently denoted . The the sample quantile of order is known as the third sample quartile and is frequently denoted . Note that the sample median is the quartile of order and is sometimes denoted . The interquartile range is defined to be
The IQR is a statistic that measures the spread of the distribution about the median, but of course this number gives less information than the interval .
The five statistics are often referred to as the five-number summary. Together, these statistics give a great deal of information about the distribution in terms of the center, spread, and skewness. Graphically, the five numbers are often displayed as a boxplot, which consists of a line extending from the minimum to the maximum , with a rectangular box from the first quartile to the third quartile and tick marks at the minimum, the median , and the maximum.
In the interactive histogram, select boxplot. Construct a frequency distribution with at least 6 classes and at least 10 values. Compute the statistics in the five-number summary by hand and verify that you get the same results as the applet.
In the interactive histogram, select boxplot. Set the class width to 0.1 and construct a distribution with at least 30 values of each of the types indicated below. Then increase the class width to each of the other four values. As you perform these operations, note the shape of the boxplot and the relative positions of the statistics in the five-number summary:
In the interactive histogram, select boxplot. Start with a distribution and add additional points as follows. Note the effect on the boxplot:
In the last problem, you may have noticed that when you add an additional point to the distribution, one or more of the five statistics does not change. In general, quantiles can be relatively insensitive to changes in the data.
Compute the five number summary and sketch the boxplot for the velocity of light variable in Michelson's data. Compare the median with the true value
of the velocity of light.
Compute the five number summary and sketch the boxplot for the density of the earth variable in Cavendish's data. Compare the median with the true value
of the density of the earth.
Compute the five number summary and sketch the boxplot for the net weight variable in the M&M data.
Compute the five number summary for the sepal length variable in Fisher's iris data, using the cases indicated below. Plot the boxplots on parallel axes, so you can compare.