StatisticalPlots`
StatisticalPlots`

QuantilePlot

As of Version 8.0, QuantilePlot is part of the built-in Wolfram Language kernel.

QuantilePlot[data1,data2]

creates a quantilequantile plot from the realvalued vectors data1 and data2.

Details and Options

  • To use QuantilePlot, you first need to load the Statistical Plots Package using Needs["StatisticalPlots`"].
  • QuantilePlot plots empirical quantiles of the two vectors against each other.
  • QuantilePlot sorts the shorter dataset, and then determines interpolated quantiles at the equivalent position in the longer list of data.
  • For datasets of equal length, QuantilePlot yields the equivalent of plotting the sorted lists against each other.
  • QuantilePlot has the same options as Graphics, with the following additions and changes:
  • AxesTruewhether to draw axes
    PlotMarkersAutomaticmarkers for points
    ReferenceLineStyle Automaticstyle for the reference line
  • Valid settings for the option ReferenceLineStyle are None, Automatic, or a style or a list of styles.
  • The reference line has a slope of unity. If the points on the plot fall mostly on or near the reference line, the distributions are roughly the same.

Examples

open allclose all

Basic Examples  (1)

QuantilePlot of two datasets:

Options  (1)

ReferenceLineStyle  (1)

QuantilePlot with a dashed reference line:

Applications  (1)

Compare samples from different distributions:

Wolfram Research (2007), QuantilePlot, Wolfram Language function, https://reference.wolfram.com/language/StatisticalPlots/ref/QuantilePlot.html.

Text

Wolfram Research (2007), QuantilePlot, Wolfram Language function, https://reference.wolfram.com/language/StatisticalPlots/ref/QuantilePlot.html.

CMS

Wolfram Language. 2007. "QuantilePlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/StatisticalPlots/ref/QuantilePlot.html.

APA

Wolfram Language. (2007). QuantilePlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/StatisticalPlots/ref/QuantilePlot.html

BibTeX

@misc{reference.wolfram_2023_quantileplot, author="Wolfram Research", title="{QuantilePlot}", year="2007", howpublished="\url{https://reference.wolfram.com/language/StatisticalPlots/ref/QuantilePlot.html}", note=[Accessed: 29-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_quantileplot, organization={Wolfram Research}, title={QuantilePlot}, year={2007}, url={https://reference.wolfram.com/language/StatisticalPlots/ref/QuantilePlot.html}, note=[Accessed: 29-March-2024 ]}