Histograms, CDFs, and quantile-quantile plots

Part 1, Univariate statistics for geo-data

Learning objectives

  • Read a histogram, a cumulative distribution and a quantile-quantile plot as one distribution shown three ways
  • Read a quantile off a cumulative distribution, by a stated rule, and say what P10, P50 and P90 mean
  • Use a Q-Q plot against the Ogbon field's truth to see at every quantile how far a sample's distribution is from the field's
  • Tell a biased sample, whose Q-Q plot leaves the line of equality, from a fair one, whose quantiles stay close to it

One Distribution, Three Pictures

A histogram, a cumulative distribution and a quantile-quantile plot show one distribution three ways, and the Q-Q plot against a reference shows at every quantile, not only at the mean, where two distributions differ. Against the Ogbon field's truth, the development campaign's median net pay is 374 ft against the field's 160 ft, and 17 of the 20 quantiles of its Q-Q plot lie above the line of equality: a sample drilled on the pay is biased across its whole distribution.

Quantiles Against The TruthInteractive figure, enable JavaScript to interact.

The Field and Its Samples

The truth is the Ogbon field's lateral model, synthetic and the book's own, known at every one of its 490 columns down the dip of the sealing fault. Three samples read it at their columns: the nine wells, the development campaign's 48 wells drilled with a chance rising with the pay, and the regular set of 62 columns placed by position alone (Section 0.5). A real study has only its sample; this book can hold each one against the answer.

The Cumulative Distribution and Its Quantiles

The cumulative distribution of nn values is the share of them at or below each value, F^(z)=1n#{zi≀z}\hat F(z) = \frac{1}{n}\#\{z_i \le z\}: a staircase that climbs by 1/n1/n at each value and needs no choice of bins. Its inverse is the quantile: the value with a share pp at or below it, written P10, P50 or P90 for pp of 10, 50 or 90 %. The book keeps that convention throughout, so its P10 is the low case. Petroleum reserves reporting, and the Reservoir and Petrophysics books with it, names a volume instead by its chance of being exceeded, so that there the P90 is the low case: the reserves P90 is this book's P10, and the reserves P10 this book's P90. Between the steps a rule is needed, and the book states one: with the values sorted, the ii-th of nn stands at pi=(iβˆ’1/2)/np_i = (i - 1/2)/n and the quantile is read linearly between two of them,

q(p)=z(i)+pβˆ’pipi+1βˆ’pi (z(i+1)βˆ’z(i)),q(p) = z_{(i)} + \frac{p - p_i}{p_{i+1} - p_i}\,\bigl(z_{(i+1)} - z_{(i)}\bigr),

held at the smallest and largest values beyond the ends. Every quantile in this book follows this rule, and so does the normal score of Section 1.2.

The field's P10 of net pay is 0 ft, because 29.4 % of its columns lie below the oil-water contact and hold no pay at all; its P50 is 160 ft. The campaign's P10 is 125 ft and its P50 374 ft. The histogram shows the same, its bars piled against the thickest pay, but how high a bar stands depends on the width chosen for it; the cumulative distribution does not. Pyrcz (2024) notes the same: the cumulative distribution makes no assumption of bins.

The Q-Q Plot

A Q-Q plot draws a sample's quantiles against a reference's at the same probabilities, here 20 of them from 2.5 to 97.5 %. Two distributions that are the same lie on the line of equality; a sample whose points lie above it is shifted toward high values at those probabilities. For the campaign's net pay 17 points lie above the line and 3 on it, at the top, where both reach the field's thickest pay. The largest gap is +294 ft, at 32.5 %, just above the field's columns with no pay: the low end of the field is the part a sample drilled on the pay barely sees. The nine wells read a median of 360 ft, as biased as the campaign.

The regular set reads a median of 146 ft against the field's 160 ft, and its largest gap is βˆ’32 ft: its quantiles stay close to the line, missing by sampling noise, as a sample placed without looking at the values does. The campaign's porosity of the main sand has a median of 26.22 p.u. against the field's 26.00 p.u. (a p.u. is a percentage point of porosity), and its largest gap is +0.25 p.u. against a spread of 0.65 p.u. over the field: the wells were placed on the pay, not on the porosity, and the two distributions are nearly the same. The NIST/SEMATECH e-Handbook defines the plot as the quantiles of one data set against those of the other, close to the reference line when both come from one distribution and showing shifts in location and scale and changes in symmetry; Pyrcz (2024) adds that distributions alike in part and apart in part show it plainly.

What Comes Next

Section 1.2 maps a distribution onto the standard normal by its quantiles, the normal-score transform, and finds what net pay's many equal values do to it.

References

  • NIST/SEMATECH. Quantile-quantile plot. e-Handbook of Statistical Methods, Section 1.3.3.24. itl.nist.gov/div898/handbook/eda/section3/eda33o.htm.
  • Pyrcz, M. J. (2024). Applied Geostatistics in Python: a Hands-on Guide with GeostatsPy [e-book]. Zenodo. doi:10.5281/zenodo.15169133. Chapters: Univariate Distributions; QQ-Plots.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.