Skip to content

Probability plot

Build a probability plot from ranked observations, distinguish quantile, P–P and probability-paper axes, and interpret a fixed latency benchmark without mistaking five points for proof.

A probability plot compares ordered observations with a reference probability distribution to reveal where the model and the data disagree. It is a visual check of goodness of fit: a trading team might use it to inspect whether an assumed latency distribution describes both ordinary executions and unusually slow ones.
The name does not identify a unique set of axes. Here, probability plot means a theoretical-quantile plot: reference quantiles on the horizontal axis, sorted observations on the vertical axis. This is the one-sample theoretical form of a Q–Q plot. Other sources and software distinguish these names more narrowly, so the axis definitions matter more than the title.

Start with ranks, then choose coordinates

Sort the sample into order statistics, x(1)≤⋯≤x(n)x_{(1)}\le\cdots\le x_{(n)}. Assign rank ii the midpoint plotting position

pi=i−0.5n,i=1,…,n.p_i=\frac{i-0.5}{n},\qquad i=1,\ldots,n.

These are conventional probability levels attached to ranks, not measured probabilities of the individual observations. In particular, with distinct data the empirical CDF at x(i)x_{(i)} is i/ni/n, not pip_i. Midpoints keep every level strictly between zero and one, avoiding infinite endpoint quantiles for many unbounded distributions. They are not the only valid choice: i/(n+1)i/(n+1) and order-statistic-median approximations are also used. With a small sample, the choice can visibly move the tail points.

For a continuous reference CDF F0F_0 and its quantile function Q0=F0−1Q_0=F_0^{-1}, three displays must be distinguished:
DisplayHorizontal coordinateVertical coordinateModel agreement
Theoretical-quantile form used hereQ0(pi)Q_0(p_i)x(i)x_{(i)}Approximately y=xy=x for a fully specified reference in the same units
P–P form used belowpip_iF0(x(i))F_0(x_{(i)})Approximately y=xy=x; both axes are dimensionless probabilities
Probability-paper formProbability labels positioned on a distribution-specific quantile scaleObservationsA straight line under the appropriate model family
Probability-paper axes are nonlinear in probability. On normal probability paper, for example, a tick labelled pp is positioned according to Φ−1(p)\Phi^{-1}(p), where Φ\Phi is the standard normal CDF. Equal changes in the printed probabilities need not occupy equal distances. This is different from a P–P plot with ordinary, evenly spaced probability axes. Axis orientation can also be reversed; always read the labels.

Five executions against a fixed latency model

Suppose five toy execution latencies, in milliseconds, are
1,2,3,4,8.1,\quad 2,\quad 3,\quad 4,\quad 8.
Before looking at them, a desk has specified an exponential distribution with location zero and scale 22 ms, equivalently rate 0.50.5 per millisecond. This is a hypothetical benchmark, not a claim about exchange data. For nonnegative xx measured in milliseconds,
F0(x)=1−e−x/2,Q0(p)=−2ln⁡(1−p) ms.F_0(x)=1-e^{-x/2},\qquad Q_0(p)=-2\ln(1-p)\ \text{ms}.
The scale is prespecified, not fitted from these five observations. The two coordinate systems give:
RankLatency x(i)x_{(i)} (ms)pip_iReference quantile Q0(pi)Q_0(p_i) (ms)F0(x(i))F_0(x_{(i)})
110.10.2110.393
220.30.7130.632
330.51.3860.777
440.72.4080.865
580.94.6050.982
Five toy latencies of 1, 2, 3, 4 and 8 ms compared with a fixed exponential scale of 2 ms. All points lie above identity in both panels. The largest observation is paired with reference quantile 4.605 ms at plotting position 0.9; its model CDF is 0.982.
Five toy latencies of 1, 2, 3, 4 and 8 ms compared with a fixed exponential scale of 2 ms. All points lie above identity in both panels. The largest observation is paired with reference quantile 4.605 ms at plotting position 0.9; its model CDF is 0.982.
The same ranked observations in quantile and P–P coordinates. Filled points represent the five observed ranks; dashed identity lines show exact model agreement, not confidence bands. Values are rounded for display.

In the quantile panel, every observed latency exceeds its corresponding benchmark quantile. The largest is 88 ms against 4.6054.605 ms. In the P–P panel, that same observation becomes (0.9,0.982)(0.9,0.982): the model places roughly 98.2% of its mass at or below 88 ms, while this rank has the chosen 90% plotting position. The probability transformation compresses large values towards one; the quantile panel retains the size of the latency discrepancy in milliseconds.

This sample suggests latencies larger than this particular benchmark. It does not establish a heavy-tailed law, reject the exponential family, or estimate a reliable extreme percentile from five points.

A straight line answers only the question you set

A fully specified reference gives a fixed identity benchmark. If location and scale are instead unknown, a location-scale family can yield an approximately straight quantile plot with a different intercept and slope. Straightness then concerns the family’s shape; agreement with y=xy=x concerns the particular parameters and units used.

For example, fitting a zero-location exponential by maximum likelihood to these data would give scale xˉ=3.6\bar x=3.6 ms. That changes the reference quantiles. A line fitted to the plotted points is another estimation procedure and need not give that same estimate. Report which parameters were fixed, which were estimated, and how the reference line was obtained.

A visually straight arrangement is not a p-value. Any formal envelope or test must account for sample size and for parameters fitted from the tested observations. Sorting also removes chronology: a plot cannot reveal whether slow executions arrive in clusters. Check timestamps, operating conditions, rounding and censoring before treating the sample as independent observations from one stable distribution.

For the mathematical construction behind these plots, The Empirical CDF, Glivenko–Cantelli, and QQ-Plots develops the empirical distribution and a theoretical Q–Q comparison. Its full lesson requires membership; a public preview is available. That lesson uses i/(n+1)i/(n+1), whereas the worked example here consistently uses (i−0.5)/n(i-0.5)/n.

Sources

Last updated
  • distribution diagnostics
  • probability plots
  • quantiles
  • model checking
  • latency
← Back to the glossaryBack to top ↑