Abstract
Multiple-quantile plots provide a powerful graphical method for comparing the distributions of two or more populations. This article develops a method of visualizing triple-quantile plots and their associated confidence tubes, thus extending the notion of a quantile–quantile (QQ) plot to three dimensions. More specifically, we consider three independent one-dimensional random samples with corresponding quantile functions Q1, Q2, and Q3. The triple-quantile (QQQ) plot is then defined as the three-dimensional curve Q(p) = (Q1(p), Q2(p), Q3(p)), where 0 < p < 1. The empirical likelihood method is used to derive simultaneous distribution-free confidence tubes for Q. We apply our method to an economic case study of strike durations and to an epidemiological study involving the comparison of cholesterol levels among three populations. These data as well as the Mathematica code for computation of the tubes are available in the online supplementary materials.
Keywords: Confidence region, Empirical likelihood, Three-sample comparison
1. INTRODUCTION
The quantile–quantile (QQ) plot is a well-known and attractive graphical method for comparing two distributions, especially when confidence bands are included. Frequently in applications, however, there is a need to simultaneously compare more than two distributions, and it would be useful to have a readily available graphical method to do this. In the present article, we develop a way of visualizing triple-quantile plots and their associated confidence tubes, thus extending the notion of a QQ plot to three dimensions.
Our approach is based on the nonparametric empirical likelihood method. There exists a large literature on empirical likelihood indicating that it is widely viewed as a desirable and natural approach to statistical inference in a variety of settings. Moreover, there is considerable evidence that procedures based on the method outperform competing procedures in terms of accuracy; see the monograph of Owen (2001) for numerous examples. Empirical likelihood-based confidence bands for individual quantile functions have been derived in Li et al. (1996). Confidence tubes for multiple-quantile plots under random censoring have been studied in Einmahl and McKeague (1999). In the present article, we employ a direct approach (that is only feasible in the noncensored situation), and we focus on the problem of how to provide a three-dimensional visualization of the empirical QQQ plots and the corresponding confidence tubes. The confidence tubes are presented in Section 2; they are valid under minimal conditions. The procedure is applied to data on strike durations and cholesterol levels in Sections 3 and 4, respectively.
QQ plots have been studied in detail using classical methods in Doksum (1974, 1977), Switzer (1976), and Doksum and Sievers (1976). The k-sample problem is studied in Nair (1978, 1982), but there, essentially only pairwise comparisons are made. A review of graphical methods in nonparametric statistics with extensive coverage of QQ plots can be found in Fisher (1983). Some refined approximation results for normalized QQ plots with statistical applications have been established in Beirlant and Deheuvels (1990). More recently, QQ plots for univariate and multivariate data have been studied in Marden (2004), and refined QQ plots in the generalized linear model have been considered in García Ben and Yohai (2004).
2. THE CONFIDENCE TUBES
It is convenient first to set the notation in the one-sample case. For the corresponding notation in the three-sample case, add a further subscript j to refer to the jth sample. The distribution function of the Xi, i = 1, …, n, is denoted by F and the corresponding (right-continuous) quantile function is denoted by Q. We write
for the likelihood, where F̃ belongs to F, the space of all probability distribution functions on ℝ. The empirical likelihood ratio for F̃(t) = p (for a given p ∈ (0, 1)) is defined by
Note that the supremum in the denominator is attained by the empirical distribution function
hence, the value of this supremum is n−n. It easily follows by putting total probability mass p on the data less than or equal to t (for the numerator) that
| (2.1) |
Let Qn be the empirical quantile function.
Now, we turn to the three-sample setup. The three random samples are assumed to be independent, with sample sizes denoted by n1, n2, and n3; write m = n1 + n2 + n3. Set F = (F1, F2, F3) and define the QQQ plot to be
This plot can be estimated with
the empirical QQQ plot. Observe that these are extensions of the classical two-sample QQ plots. In the sequel, we consider the following more convenient version of the QQQ plot: the graph Q of the function
for t1 ∈ ℝ. Denote the joint likelihood by
and the empirical likelihood ratio at t = (t1, t2, t3) by
Write pj = Fjnj(tj), j = 1, 2, 3, and p = (n1p1 + n2p2 + n3p3)/m. It easily follows [cf. Equation (2.1)] that
| (2.2) |
The confidence tubes we will propose are of the form {t : R(t) > c}, for some c.
We assume that nj/m → πj > 0, as m → ∞, and that the Fj are continuous, for j = 1, 2, 3. Let τ1 be such that F1(τ1) > 0, and let τ2 ≥ τ1 be such that F1(τ2) < 1. Write Q[τ1, τ2] for the restriction of Q to t1 ∈ [τ1, τ2]. Let W1 and W2 be two independent standard Wiener processes. Define, for α ∈ (0, 1) and 0 < s1 < s2, Cα[s1, s2] by
Set , where
| (2.3) |
Define the confidence tube for Q[τ1, τ2] by
Note that the confidence tubes are essentially invariant under permutations of the order of the three samples involved. We also note an interval property for the confidence tube T that is useful for computing purposes: one-dimensional cross-sections parallel to a given axis are intervals.
Theorem 1
Let α ∈ (0, 1). Under the above assumptions,
To assess the accuracy of the proposed confidence tube (calibrated on the basis of the above limit theorem), we carry out a small simulation study. This accuracy does not depend on F1, F2, and F3 (distribution-freeness). Therefore, we can and will restrict ourselves to the case where all these three distribution functions are equal to the standard normal distribution function. We consider the case of a 95% confidence tube and choose τ1 and τ2 such that F1n1 (τ1) = 1 − F1n1 (τ2) = 0.05. First, we simulate 20,000 replicates of the Wiener processes W1 and W2 over a very fine grid (more than 108 equidistant points), which provides an accurate approximation to Ĉ0.05 = C0.05[1/19, 19]; see (2.3). We consider the cases n1 = n2 = n3 = 100 and n1 = n2 = n3 = 200, and for both cases, we compute 5 × 106 confidence tubes. This yields empirical confidence levels 94.4% and 95.1%, respectively. These results show that the confidence tubes are highly accurate for moderate sample sizes.
The proof of Theorem 1 can be obtained from the proofs in Einmahl and McKeague (1999). In that article, the observations are subject to random censoring, which makes the calculation of R(t) and hence the proofs much more difficult. Here, we provide a direct and easier proof, using the explicit expression for R(t) in (2.2).
Proof
Write . First, we show that
| (2.4) |
with W1 and W2 as above.
From (2.2), we obtain, with the notation there,
Denote the three empirical processes with
It is well known that the αjnj converge in distribution on D[a, b] (for any a < b) to Bj ∘ Fj, respectively, where B1, B2, and B3 are independent, standard Brownian bridges. Hence, we obtain, using a Taylor approximation of log(1 + x), that,
uniformly on [τ1, τ2], and this expression converges in distribution on D[τ1, τ2] to
| (2.5) |
Noting that a standard Brownian bridge B(x) divided by 1 − x is, as a process, equal in distribution toW(x/(1 − x)) (with W as standard Wiener process), it follows, as in Einmahl and McKeague (1999, p. 1361), that on [τ1, τ2], the process in (2.5) is equal in distribution to
Hence, we have (2.4).
This yields, as m → ∞,
3. APPLICATION TO STRIKE DURATION DATA
In this section, we apply our procedure to contract strike duration data for U.S. manufacturing industries for the period 1968–1976; see Kennan (1985). The strike durations are measured in days. In this period, there were 566 strikes involving at least 1000 workers and lasting at least 1 day; the durations range from 1 day to 235 days. To investigate the influence of industrial production on strike duration, we split the strikes into three groups according to the level of a monthly industrial production index (a residual value from a regression that removes seasonal and trend components), with each strike assigned the index of the month in which the strike began. The three groups are specified by the index being “close to zero” (i.e., between −c and c, with c = 0.022), below −c, or above c, meaning average, low, or high production level, respectively. This leads to three samples with sizes 216, 156, and 194, respectively.
The 95% confidence tube for the QQQ plot is displayed in Figure 1, where we have chosen τ1 and τ2 so that F1n1 (τ1) and 1 − F1n1 (τ2) are approximately 0.05. Note that the diagonal line t1 ↦ (t1, t1) stays everywhere inside the tube, so there is no evidence that length of strike depends on production level. The tube thus gives a formal, global testing procedure to distinguish between the effects of different production levels, but it also allows simultaneous comparison of strike duration quantiles over the three production levels. Note that the tube is narrow for short strikes and much wider for long strikes, since there are many short strikes but relatively fewer long strikes.
Figure 1.

95% confidence tube for the QQQ plot of the strike durations in average-, low-, and high-productivity periods. The empirical QQQ plot and the diagonal are also depicted. The online version of this figure is in color.
4. APPLICATION TO CHOLESTEROL DATA
In this section, we analyze some data collected as part of the Diverse Populations Collaboration, a study of the relationships between risk factors for various chronic diseases across several countries and cultures; see McGee and the Diverse Populations Group (2005) for detailed background. Specifically, we consider total serum cholesterol level (in mg/dl) at baseline in men aged 45–65 years who were living in Massachusetts, Honolulu, or Puerto Rico at the time of their entry into the study; the sizes of the samples available from the three populations are 675, 4602, and 4887, respectively.
We are interested in comparing the distributions of cholesterol levels in the three populations using our confidence tubes. Again, we have computed a 95% confidence tube for the QQQ plot (see Figure 2), where we have chosen τ1 and τ2 such that F1n1 (τ1) and 1 − F1n1 (τ2) are approximately 0.05. (For these plots, we used data on all the subjects from Massachusetts, but only 1000 of the subjects from Honolulu or Puerto Rico.) Note that now the diagonal is entirely outside the tube. That is, across all cholesterol levels, we see differences between the three populations. More specifically, the cholesterol level quantiles for Puerto Rico are throughout significantly smaller than those for the other two cities, and Honolulu has smaller quantiles than Massachusetts.
Figure 2.

95% confidence tube for the QQQ plot of the cholesterol levels for men aged 45–65 in Massachusetts, Honolulu, and Puerto Rico. The empirical QQQ plot and the diagonal are also depicted. The online version of this figure is in color.
It is also of interest to examine whether the patterns noted above continue to hold when we stratify over three levels of body mass index (BMI) (in units of kg/m2): normal (18.5–25), overweight (25–30), and obese (> 30). We have computed the 95% confidence tubes for the QQQ plots of the three populations (using all the data in this case), for the normal, overweight, and obese men separately. It turns out that the tubes for the normal and overweight men look very similar to the tube in Figure 2 for the unstratified situation. The tube for the obese men (based on sample sizes 87, 160, and 628, respectively, for Massachusetts, Honolulu, and Puerto Rico), however, looks quite different; see Figure 3. It is interesting to note that in this case, the diagonal is partly inside and partly outside the tube. The fact that the diagonal is not entirely inside the tube means that, although there is again a significant difference between the distributions of cholesterol levels in the three populations, the differences now only occur at lower cholesterol levels. The lowest cholesterol level quantiles are again found for Puerto Rico.
Figure 3.

95% confidence tube for the QQQ plot of the cholesterol levels for obese (BMI > 30) men aged 45–65 in Massachusetts, Honolulu, and Puerto Rico. The empirical QQQ plot and the diagonal are also depicted. The online version of this figure is in color.
In Figures 2 and 3, we see that the tubes are narrower in the middle and wider at the ends. This is because there are more data in the center of the distribution than in the tails. The tube in Figure 3 is wider than that in Figure 2 since the sample sizes for the obese group are much smaller.
Supplementary Material
Cholesterol data: Cholesterol levels for men aged 45–65 at three locations (Section 4). (dat file)
Mathematica code: Computer code used for the computation of the confidence tubes. The code can be viewed with the Mathematica viewer at www.wolfram.com. (three nb files)
Strike data: Strike durations for U.S. manufacturing industries 1968–1976 (Section 3). (txt file)
Acknowledgments
The authors are grateful to Jaap Abbring for pointing out the strike data and to Daniel McGee for providing the cholesterol dataset. Ian McKeague’s research was partially supported by the National Institutes of Health (NIH) grant R01GM095722-01.
Contributor Information
Marko A. A. Boon, Email: marko@win.tue.nl, Department of Mathematics and Computer Science, Eindhoven University of Technology, PO Box 513, 5600 MB Eindhoven, The Netherlands.
John H. J. Einmahl, Email: j.h.j.einmahl@uvt.nl, Department of Econometrics & OR and CentER, Tilburg University, PO Box 90153, 5000 LE Tilburg, The Netherlands.
Ian W. McKeague, Email: im2131@columbia.edu, Department of Biostatistics, Columbia University, 722 West 168th Street, New York, NY 10032.
References
- Beirlant J, Deheuvels P. On the Approximation of P-P and Q-Q Plot Processes by Brownian Bridges. Statistics and Probability Letters. 1990;9:241–251. [Google Scholar]
- Doksum KA. Empirical Probability Plots and Statistical Inference for Nonlinear Models in the Two-Sample Case. The Annals of Statistics. 1974;2:267–277. [Google Scholar]
- Doksum KA. Some Graphical Methods in Statistics: A Review and Some Extensions. Statistica Neerlandica. 1977;31:53–68. [Google Scholar]
- Doksum KA, Sievers GL. Plotting With Confidence: Graphical Comparisons of Two Populations. Biometrika. 1976;63:421–434. [Google Scholar]
- Einmahl JHJ, McKeague IW. Confidence Tubes for Multiple Quantile Plots Via Empirical Likelihood. The Annals of Statistics. 1999;27:1348–1367. [Google Scholar]
- Fisher NI. Graphical Methods in Nonparametric Statistics: A Review and Annotated Bibliography. International Statistical Review. 1983;51:25–58. [Google Scholar]
- García Ben M, Yohai VJ. Quantile-Quantile Plot for Deviance Residuals in the Generalized Linear Model. Journal of Computational and Graphical Statistics. 2004;13:36–47. [Google Scholar]
- Kennan J. The Duration of Contract Strikes in U.S. Manufacturing. Journal of Econometrics. 1985;28:5–28. [Google Scholar]
- Li G, Hollander M, McKeague IW, Yang J. Nonparametric Likelihood Ratio Confidence Bands for Quantile Functions From Incomplete Survival Data. The Annals of Statistics. 1996;24:628–640. [Google Scholar]
- Marden JI. Positions and QQ Plots. Statistical Science. 2004;19:606–614. [Google Scholar]
- McGee DL Diverse Populations Collaboration. Body Mass Index and Mortality: A Meta-Analysis Based on Person-Level Data From Twenty-Six Observational Studies. Annals of Epidemiology. 2005;15:87–97. doi: 10.1016/j.annepidem.2004.05.012. [DOI] [PubMed] [Google Scholar]
- Nair VN. Ph D dissertation. University of California at Berkeley; 1978. Graphical Comparisons of Populations in Some Non-Linear Models. [Google Scholar]
- Nair VN. Q-Q Plots With Confidence Bands for Comparing Several Populations. Scandinavian Journal of Statistics. 1982;9:193–200. [Google Scholar]
- Owen A. Empirical Likelihood. Boca Raton, FL: Chapman & Hall/CRC; 2001. [Google Scholar]
- Switzer P. Confidence Procedures for Two-Sample Problems. Biometrika. 1976;63:13–25. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Cholesterol data: Cholesterol levels for men aged 45–65 at three locations (Section 4). (dat file)
Mathematica code: Computer code used for the computation of the confidence tubes. The code can be viewed with the Mathematica viewer at www.wolfram.com. (three nb files)
Strike data: Strike durations for U.S. manufacturing industries 1968–1976 (Section 3). (txt file)
