Trends and Stationarity
Learning objectives
- State what stationarity assumes and why a variogram needs it
- Explain why a trend makes the raw variogram climb without a sill, and what a least-squares fit removes
- Fit a trend, take the variogram of the residual, and say what is added back afterwards
- Name three ways a fitted trend misleads: it finds a trend in data that have none, it cannot tell a trend from correlation as long as the field, and a nearly saturated fit leaves nothing to model
The Stationarity Assumption
A variogram describes how two values differ as the distance between them grows. It can do so as a single function of the distance only if the property behaves the same way everywhere: the same mean, and the same spread of differences at the same separation. That is stationarity (in its working form, second-order stationarity: a constant mean, and a covariance that depends on the separation alone; the Geostatistics book sets it out in Section 0.2, Stationarity, ergodicity, and the practical compromise). Porosity often breaks it. Porosity usually falls as rock is buried deeper, and Athy (1930) set out the relation between burial depth and porosity for different sediment types and expressed it by exponential equations. A bed that dips 15° toward 120° lies deeper to the east-southeast, and its porosity may drift with it. That systematic drift in the mean is a trend.
The Ogbon Field Has No Trend, So the Figure Adds One
The book's lateral model of the Ogbon field is stationary by construction. Each bed is a Gaussian field with the mean and spread of Ogbon-1's log, correlated over 2000 ft along the dip and 1000 ft across it, and the main sand's porosity at Ogbon-1 is 26.0 %. Nothing in it drifts, so the figure adds a trend of its own choosing: a straight fall of porosity down the dip, zero at Ogbon-1 so that the well still reads its log. Its size is yours to set, in porosity units (pu, one pu a percentage point of porosity) lost per 1000 ft; at 0.5 pu per 1000 ft the porosity falls by 2.6 pu across the field's 5280 ft. Whether a real field's trend is straight, or this large, is a question for its data. Sections 5.1 and 5.2 introduce the variogram and its range, sill and nugget.
How a Trend Spoils the Variogram
The experimental variogram is half the mean squared difference of the pairs at each separation. A trend enters every pair. For a plane of gradient , two points separated by differ by , so the trend adds half its square to that pair:
This grows as the square of the lag along the gradient and vanishes across it, so the raw variogram does not settle at a sill. In the figure, with 0.5 pu lost per 1000 ft, the raw variogram of the main sand's 625 columns reaches 0.85 pu² at 2875 ft against 0.45 pu² for the residual, and at 1.0 pu per 1000 ft it reaches 2.27 pu². A range and a sill read off such a curve describe the drift, not the rock.
Fit, Subtract, Model the Residual
The remedy is to fit the trend, subtract it, and take the variogram of what is left. The figure fits a plane, or a quadratic surface, to the values by least squares. Manchuk and Deutsch (2012) put the rule in one line: "In all cases, the correct variogram to use is the variogram of the residuals." The simulation then puts the trend back: Pyrcz (2024) lists the step as "add the trend back in to the stochastic residual realizations". A least-squares plane removes any plane that was added, exactly, so the residual and its variogram do not change as you drag the trend: 0.45 pu² at 2875 ft at 0.5 pu per 1000 ft and at 1.0. The plane finds −2.4 pu of the −2.6 pu added at the default, and −5.0 of −5.3 at the steepest trend. The Geostatistics book's Section 5.3, Universal kriging and kriging with external drift, carries the trend into the kriging itself.
What a Fitted Trend Cannot Tell You
A fit always finds something. With no trend added, the plane takes 2 % of the main sand's variance and changes by 0.3 pu across the field, which is the model's own variation.
A fit cannot tell a trend from correlation as long as the field. The shaly oil sand has no trend, yet the plane takes 24 % of its variance and its raw variogram climbs to 0.48 pu² at 2875 ft, above the bed's own variance of 0.36 pu². The porosity is correlated over 2000 ft in a field 5280 ft across, so this one realisation varies on the scale of the field, and the plane catches some of it. Whether to call that a trend is the modeler's decision; Pyrcz (2024) notes that "trend modeling includes a high degree of expert judgement combined with the integration of various information sources", and Manchuk and Deutsch (2012) that "we design trends to remove only part of the spatial dependence of the response variable".
And a fit needs data to spare. The nine wells of the appraisal, Ogbon-1 and eight hypothetical wells clustered up the dip of Ogbon-1, make 35 pairs within 3000 ft, 5 of them in the longest lag. With no trend added a plane through them still takes 74 % of the variance, because three coefficients are fitted to nine values and Ogbon-8, 1808 ft down the dip, pulls the plane toward itself. A quadratic surface has six coefficients: the residual variance falls from 0.11 pu² to 0.01 pu², the residual variogram lies near zero at every lag, and in the shaly oil sand the same fit changes by −7.5 pu against the −2.6 pu added. Nothing is left to model.
The trend of a real field comes from more than the porosity itself: the depositional model, the depth, a seismic attribute. The straight line here is the simplest case. Section 5.7 takes the residual's experimental variogram and fits a model to it.
References
- Athy, L. F. (1930). Density, porosity, and compaction of sedimentary rocks. AAPG Bulletin, 14(1), 1-24.
- Manchuk, J. G. and Deutsch, C. V. (2012). Note on working with trends in geostatistics. CCG Annual Report 14, Paper 128. ccgalberta.com/ccgresources/report14/2012-128_working_with_trends.pdf.
- Pyrcz, M. J. (2024). Trend modeling. In Applied Geostatistics in Python: a Hands-on Guide with GeostatsPy. geostatsguy.github.io/GeostatsPyDemos_Book/GeostatsPy_trends.html.