Geostatistics Lessons
Categorical Simulation
Cite

Cite this lesson

Citation format

Pereira, F., & Deutsch, C. V. (2020). Permanence of Ratios. In J. L. Deutsch (Ed.), Geostatistics Lessons. Retrieved from https://geostatisticslessons.com/lessons/permanenceofratios

Pereira, Fábio, and Clayton V. Deutsch. “Permanence of Ratios.” Geostatistics Lessons, edited by J. L. Deutsch, 2020, https://geostatisticslessons.com/lessons/permanenceofratios.

Pereira, Fábio, and Clayton V. Deutsch. 2020. “Permanence of Ratios.” In Geostatistics Lessons, edited by J. L. Deutsch. https://geostatisticslessons.com/lessons/permanenceofratios.

@incollection{permanenceofratios,
  author = {Pereira, Fábio and Deutsch, Clayton V.},
  editor = {Deutsch, J. L.},
  title = {Permanence of {Ratios}},
  booktitle = {Geostatistics Lessons},
  year = {2020},
  url = {https://geostatisticslessons.com/lessons/permanenceofratios}
}

Download PDF(79KB) (opens in a new tab)

Permanence of Ratios

  • Fábio Pereira, University of Alberta
  • Clayton V. Deutsch, University of Alberta

Learning Objectives

  • Understand the Permanence of Ratios method to integrate multiple data.
  • Derive Permanence of Ratios equations starting with Bayes’ law.
  • Build intuition on Permanence of Ratios through example.

Introduction

Numerical subsurface models estimate resources and quantify uncertainty. Direct sampling is usually sparse and geological variability occurs in several scales. Predicting spatial uncertainty is straightforward when a probability model of the unsampled locations can be inferred. For univariate cases the procedures to estimate and quantify uncertainty are well established in the literature. However, it is common to have several secondary variables sampled in the domain. These secondary variables may provide information about the resource being modeled.

The context of this Lesson is prediction of a binary categorical variable, such as the presence of a rock type or facies, with multiple secondary data sources. The secondary variables could be spatially distributed data of the same variable, geophysical remote sensing or other geological data. The variable being predicted will be denoted AA. Consider two secondary data sources denoted BB and CC. The prior information about AA in the stationary domain is calculated as P(A)P(A). The information content of BB and CC about AA are calculated as conditional probabilities P(A∣B)P(A|B) and P(A∣C)P(A|C). A detailed explanation and examples of how to calculate these quantities can be found in (Deutsch & Deutsch, 2018). Therefore, to predict the binary categorical variable utilizing all information sources, it is necessary to infer P(A∣B,C)P(A|B,C).

The probabilistic relation between AA, BB and CC simultaneously is not well understood due to incomplete sampling and redundant information. The likelihood of the secondary variables given the primary may be infeasible to calculate. Therefore, a full probabilistic model of the joint, marginal and conditional probabilities is unknown from the data. This lesson explores the Permanence of Ratios model, a methodology to combine the information provided by each variable into a single probability value.

Background

Using Bayes’ theorem, the combined conditional probability can be written as:

P(A∣B,C)=P(A,B,C)P(B,C)=P(A)P(B∣A)P(C∣A,B)P(B,C)P(A|B,C) = \frac{P(A,B,C)}{P(B,C)} = \frac{P(A)P(B|A)P(C|A,B)}{P(B,C)}

BB and CC can be switched in the decomposition. Being able to calculate the conditional probability at each location allows simulation to proceed and the joint spatial uncertainty to be characterized. Even though Bayes’ theorem provides an analytical solution to the problem, estimating the quantities P(C∣A,B)P(C|A,B) and P(B,C)P(B,C) from the data is difficult (Journel, 2002). Some form of Co-kriging could be used, however, besides being computationally intensive, the approach relies on a generalized linear regression model, which may be inadequate when combining categorical and secondary continuous variables (Hong & Deutsch, 2009). Probability combination schemes may be used to estimate the desired conditional probability. These methods, developed independently in several different research areas, combine the primary prior probability with conditional probabilities calculated from secondary variables into a single conditional probability.

Two simple methods to calculate the combined conditional probabilities are to assume full independence or conditional independence. These two assumptions can be written as:

Full Independence, assuming both P(B,C)=P(B)P(C)P(B,C) = P(B)P(C) and P(B,C∣A)=P(B∣A)P(C∣A)P(B,C|A) = P(B|A)P(C|A) and using Bayes’ Inversion:

P(A∣B,C)=P(A∣B)P(A∣C)P(A)P(A|B,C) = \frac{P(A|B)P(A|C)}{P(A)}

However, this hypothesis is not robust and may be inconsistent (Journel, 2002). For example, if P(A)=0.3P(A) = 0.3, P(A∣B)=0.8P(A|B) = 0.8 and P(A∣C)=0.6P(A|C) = 0.6 would entail a combined probability P(A∣B,C)=1.6P(A|B,C) = 1.6 (Journel, 2002). Since a probability cannot exceed the value of one, this result shows that these input probabilities are incompatible with the assumed independence relations.

Conditional Independence, assuming P(B∣A,C)=P(B∣A)P(B|A,C) = P(B|A) and P(C∣A,B)=P(C∣A)P(C|A,B) = P(C|A):

P(A∣B,C)=P(A)P(B∣A)P(C∣A)P(B,C)P(A|B,C) = \frac{P(A)P(B|A)P(C|A)}{P(B,C)}

Using Bayes’ inversion:

P(B∣A)=P(B)P(A∣B)P(A)P(B|A) = \frac{P(B)P(A|B)}{P(A)} P(C∣A)=P(C)P(A∣C)P(A)P(C|A) = \frac{P(C)P(A|C)}{P(A)}

P(A∣B,C)=P(B)P(A∣B)P(C)P(A∣C)P(A)P(B,C)P(A|B,C) = \frac{P(B)P(A|B)P(C)P(A|C)}{P(A)P(B,C)}

This hypothesis, even though less restrictive and more robust than full independence (Ortiz, 2003), does not eliminate the joint and marginal probabilities of BB and CC. In earth sciences, these quantities may be hard to get from data. Often each variable is sampled at different locations, directly or indirectly, and the dependency between BB and CC can be complex. This non-trivial relationship may lead to numerical instability and inconsistency when using a naive independence assumption (Journel, 2002; Krishnan, 2008).

The Permanence of Ratios formalism attempts to build a more robust scheme to integrate information from multiple sources.

Theory of Permanence of Ratios

First, using Journel’s (2002) notation and probabilities strictly between zero and one, the ratios are defined as:

a=1−P(A)P(A),b=1−P(A∣B)P(A∣B),c=1−P(A∣C)P(A∣C)a = \frac{1-P(A)}{P(A)}, b = \frac{1-P(A|B)}{P(A|B)}, c = \frac{1-P(A|C)}{P(A|C)} x=1−P(A∣B,C)P(A∣B,C)x = \frac{1-P(A|B,C)}{P(A|B,C)}

Permanence of Ratios assumes that the marginal gain in information of integrating data event CC to the knowledge of AA is the same before or after knowing BB (Journel, 2002). Therefore, Permanence of Ratios model can be stated as:

xb=caorxc=ba\frac{x}{b} = \frac{c}{a} \quad or \quad \frac{x}{c} = \frac{b}{a} x=bcax = \frac{bc}{a}

Using the above assumption, it is possible to solve for the desired probability as:

P(A∣B,C)=11+x=aa+bc=1−P(A)P(A)1−P(A)P(A)+1−P(A∣B)P(A∣B)1−P(A∣C)P(A∣C)P(A|B,C) = \frac{1}{1+x} = \frac{a}{a+bc} = \frac{\frac{1-P(A)}{P(A)}}{\frac{1-P(A)}{P(A)} + \frac{1-P(A|B)}{P(A|B)}\frac{1-P(A|C)}{P(A|C)}}

The above equation eliminates the terms P(B,C)P(B,C), P(B)P(B) and P(C)P(C) and gives values of P(A∣B,C)P(A|B,C) that are inside the interval [0,1][0,1] (Journel, 2002). The model also provides a clear and simple equation to calculate the combined conditional probability.

Interpretation

The ratios are the inverse of the odds of an event. They can be interpreted as probability distance (Caers, Avseth, & Mukerji, 2001; Journel, 2002). For example, as P(A)P(A) gets closer to one, aa converges to zero: the probability distance shrinks to zero as AA is sure to happen.

Also, it can be shown that dividing two ratios of probability is the same as updating the odds of an event by the knowledge brought by a secondary variable. For example, take ca\frac{c}{a}:

ca=1−P(A∣C)P(A∣C)P(A)1−P(A)=O(A)1−P(A∣C)P(A∣C)\frac{c}{a} = \frac{1-P(A|C)}{P(A|C)}\frac{P(A)}{1-P(A)} = O(A) \frac{1-P(A|C)}{P(A|C)}

Where O(A)O(A) is the odds of the event AA. Therefore, the ratio is the incremental gain of information after updating the prior distance by the knowledge of the event CC. This update can increase or decrease the probability of AA happening. As P(A)P(A) approaches zero, the distance goes to infinity.

The model can be extended to any number of secondary variables; the derivation can be found in (Journel, 2002).

Derivation from Bayes’ Theorem

Hong & Deutsch (2007) showed that the conditional probability estimated using conditional independence and Permanence of Ratios model is the same. Connecting the theory proposed by Journel (2002) to a classic result in probability may improve understanding the assumptions and drawbacks of Permanence of Ratios.

Definitions

In order to make the derivation less cumbersome, the complement of an event will be written as:

1−P(A)=P(Ac)1-P(A) = P(A^c) 1−P(A∣.)=P(Ac∣.)1-P(A|.) = P(A^c|.)

Following Journel’s paper, the ratios can be written in the following form:

ca=P(C∣Ac)P(C∣A)andba=P(B∣Ac)P(B∣A)\frac{c}{a} = \frac{P(C|A^c)}{P(C|A)} \quad and \quad \frac{b}{a} = \frac{P(B|A^c)}{P(B|A)}

Derivation

Starting with Bayes Law:

P(A∣B,C)=P(A)P(B∣A)P(C∣A,B)P(B,C)P(A|B,C) = \frac{P(A)P(B|A)P(C|A,B)}{P(B,C)}

Assuming conditional independence of BB and CC given AA amounts to:

P(A∣B,C)=P(A)P(B∣A)P(C∣A)P(B,C)P(A|B,C) = \frac{P(A)P(B|A)P(C|A)}{P(B,C)}

To get to the same result as the Permanence of Ratios hypothesis, also assume conditional independence of BB and CC given AcA^c. Then apply the law of total probability:

P(B,C)=∑A∗=A,AcP(A∗)P(B∣A∗)P(C∣B,A∗)P(B,C) = \sum_{A^* = A,A^c} P(A^*)P(B|A^*)P(C|B,A^*) P(B,C)=∑A∗=A,AcP(A∗)P(B∣A∗)P(C∣A∗)P(B,C) = \sum_{A^* = A,A^c} P(A^*)P(B|A^*)P(C|A^*) P(B,C)=P(Ac)P(B∣Ac)P(C∣Ac)+P(A)P(B∣A)P(C∣A)P(B,C) = P(A^c)P(B|A^c)P(C|A^c) + P(A)P(B|A)P(C|A)

Therefore:

P(A∣B,C)=P(A)P(B∣A)P(C∣A)∑A∗=A,AcP(A∗)P(B∣A∗)P(C∣A∗)P(A|B,C) = \frac{P(A)P(B|A)P(C|A)}{\sum_{A^* = A,A^c}P(A^*)P(B|A^*)P(C|A^*)}

Manipulating the above equation:

P(C∣A)=P(A∣B,C)P(A)P(B∣A)P(C∣A)P(A)P(B∣A)+P(A∣B,C)P(Ac)P(B∣Ac)P(C∣Ac)P(A)P(B∣A)P(C|A) = \frac{P(A|B,C)P(A)P(B|A)P(C|A)}{P(A)P(B|A)}+\frac{P(A|B,C)P(A^c)P(B|A^c)P(C|A^c)}{P(A)P(B|A)}

P(C∣A)−P(A∣B,C)P(C∣A)=P(A∣B,C)P(Ac)P(A)P(B∣Ac)P(B∣A)P(C∣Ac)P(C|A) - P(A|B,C)P(C|A) = P(A|B,C)\frac{P(A^c)}{P(A)}\frac{P(B|A^c)}{P(B|A)}P(C|A^c)

1−P(A∣B,C)P(A∣B,C)=P(Ac)P(A)P(B∣Ac)P(B∣A)P(C∣Ac)P(C∣A)\frac{1 - P(A|B,C)}{P(A|B,C)} = \frac{P(A^c)}{P(A)}\frac{P(B|A^c)}{P(B|A)}\frac{P(C|A^c)}{P(C|A)}

From the definitions, this is equal to:

x=bcax = \frac{bc}{a}

Therefore, the Permanence of Ratios result follows from Bayes’ theorem with conditional independence of BB and CC given each of AA and AcA^c, using the law of total probability.

Practical aspects of Permanence of Ratios

Even though the theory provides a clear and simple equation to combine conditional probability, it is worth noting a somewhat non-intuitive result. The combined probability may not be inside the range of the components.

Consider the case of P(A)=0.5P(A) = 0.5. Given conditional probabilities P(A∣B)=0.5P(A|B)=0.5 and P(A∣C)=0.5P(A|C)=0.5, all data provides the same information and the combined probability is also 0.50.5. However, if P(A)=0.7P(A)=0.7; P(A∣B,C)P(A|B,C) is 0.30.3 given P(A∣B)=0.5P(A|B)=0.5, P(A∣C)=0.5P(A|C)=0.5. This result may seem counter-intuitive since the prior probability of AA is greater than the non-informative scenario of 0.50.5. As mentioned, the ‘ratio of a ratio’ can be interpreted as an update of the odds of the event AA. So, in this case, the information provided by the events BB and CC agree that the probability of AA occurring is less than the prior suggests. Therefore the updated probability is less than expected.

In a similar way, setting P(A)=0.3P(A) = 0.3; P(A∣B,C)P(A|B,C) would be 0.70.7 when P(A∣B)=P(A∣C)=0.5P(A|B)=P(A|C)=0.5. Similar considerations apply in this case. Starting with this prior and updating it with agreeing probabilities provides a combined probability that is greater than the marginal ones. This property is called non-convexity, i.e., the updated probability P(A∣B,C)P(A|B,C) doesn’t necessarily lie between the priors P(A)P(A), P(A∣B)P(A|B) and P(A∣C)P(A|C).

However, if the prior probability of event AA is non-informative, and the additional piece of information provided by BB and CC disagree, e.g., P(A∣B)=0.8P(A|B) = 0.8 and P(A∣C)=0.2P(A|C) = 0.2, the updated conditional probability of AA would still be 0.50.5 as expected.

Real world application

Caers et al. (2001) used Permanence of Ratios to integrate data and create a fine-scale reservoir model for turbidite system constrained by prestacked seismic and well-log data. The model was used to integrate the different sources of information and use the calculated conditional probability in a multi point statistic simulation of shale and sand facies.

Deutsch & Deutsch (2018) discuss Bayes’ theorem for geostatistical mapping. The text provides an example of a map generated by the Permanence of Ratios model. A more detailed description of a geostatistical work-flow that incorporates secondary data can also be found.

Drawbacks of the Permanence of Ratios model

Permanence of Ratios provides a clear and simple analytical solution to the problem of integrating information from different sources. However, some care must be taken when utilizing it. First, applying this binary model separately to more than two categories can produce probabilities that do not sum to one, although each probability remains between zero and one. Hong (2010) provides a simple and straightforward numerical example of this feature.

A key step in the derivation above is the binary marginalization of the joint probability P(B,C)P(B,C) using the events AA and AcA^c. The law of total probability requires events that provide a proper partition of the sample space, i.e., they are disjoint and their union forms the sample space. The events AA and AcA^c always form such a partition. For a variable with more than two categories, however, applying the binary model to each category versus its complement separately does not guarantee that the resulting category probabilities sum to one.

The model does not account, at least directly, for any known information on the relationship of BB and CC, e.g., P(B∣C)P(B|C). To address the bias that conditional independence may generate, a weighted combination scheme might be used. This approach allows for dependency between secondary variables by using weighted combinations of the elementary probabilities (Hong & Deutsch, 2007; Journel, 2002; Krishnan, 2008).

Summary

Permanence of Ratios provides a clear analytical solution for the data integration problem. If the primary variable is binary, Permanence of Ratios gives the same result as conditional independence of the secondary data given each binary outcome. The simultaneous use of categorical and continuous secondary variables at the same time makes the model useful in classification problems. Permanence of ratios could be extended to any number of secondary variables.

References

Caers, J., Avseth, P., & Mukerji, T. (2001). Geostatistical integration of rock physics, seismic amplitudes, and geologic models in north sea turbidite systems. The Leading Edge, 20(3), 308–312.
Deutsch, C. V., & Deutsch, J. (2018). An application of bayes theorem to geostatistical mapping. In J. L. Deutsch (Ed.), Geostatistics lessons. Retrieved from https://geostatisticslessons.com/lessons/bayesmapping
Hong, S. (2010). Multivariate analysis of diverse data for improved geostatistical reservoir modeling (PhD thesis). University of Alberta.
Hong, S., & Deutsch, C. V. (2007). Methods for integrating conditional probabilities for geostatistical modeling (Annual Report No. 9, Paper 105). Centre for Computational Geostatistics, University of Alberta.
Hong, S., & Deutsch, C. V. (2009). On secondary data integration (Annual Report No. 11, Paper 101). Centre for Computational Geostatistics, University of Alberta.
Journel, A. (2002). Combining knowledge from diverse sources: An alternative to traditional data independence hypotheses. Mathematical Geology, 34(5), 573–596.
Krishnan, S. (2008). The tau model for data redundancy and information combination in earth sciences: Theory and application. Mathematical Geosciences, 40(6), 705–727. http://doi.org/10.1007/s11004-008-9165-5
Ortiz, J. M. (2003). Short note: Naive bayes classifiers and permanence of ratios (Annual Report No. 5, Paper 130). Centre for Computational Geostatistics, University of Alberta. Retrieved from https://www.ccgalberta.com/resources/reports/

Cite this lesson as:

Pereira, F., & Deutsch, C. V. (2020). Permanence of Ratios. In J. L. Deutsch (Ed.), Geostatistics Lessons. Retrieved from https://geostatisticslessons.com/lessons/permanenceofratios

Search lesson titles and content.