12.747 Lecture 5: Section 5:

Objective Mapping and Kriging

File last modified 27 September 2000


5.5 Cokriging with MATLAB

We have been very fortunate to obtain from Denis Marcotte (via e-mail) copies of the m-files published in Marcotte (1991). This section of the lecture notes covers material on how to use this program. Although not covered in lecture, this very powerful program will extremely useful to any of you that must make objective grids of their data during your careers.

The concept of cokriging is nothing more than a multivariate extension of the kriging technique we went over in class and is covered in lecture notes section 5.4. Instead of going through all of the machinations necessary for kriging one property at a time, we do all of the properties we wish to grid in one calculation. In addition, covariance information about the way properties related to each other is used to improve the grid estimation and reduce the error associated with the grid estimates.

5.5.1 Estimating the variogram

Along with the types of variograms estimated in lecture notes section 5.3, cross-variograms are also necessary. These are logical extensions of the variograms we have already dealt with. Remember the semivariance is provided by:

The cross-semivariance is given by:

where N refers to the number of data pairs that are separated by the same distance h, when j=k you have the definition of the semivariogram. One interesting thing about the cross-semivariance is that it can take on negative values. The semivariance must, by definition always be positive, the cross-semivariance can be negative because the value of one property may be increasing while the other in the pair is decreasing.

5.5.2 The coregionalized model

As we discussed earlier, a regionalized variable is a variable that is distributed in "space", where the meaning of space can be extended to include phenomena that are generally thought of as occurring in time. A regionalized phenomena can be represented by several inter-correlated variables, for example, lead-zinc deposits or nutrients in the ocean. Then there may be some advantage to study them simultaneously, this is an extension of the regionalized variable theory to mulitvariate space and is what amounts to a coregionalized model. We can see from Eqn 5.5.2 that the cross-variogram is symmetric in (j,k) and (h,-h), which is not always the case in the covariance matrix formed from the data.

5.5.3 Using cokri.m

In this section I will try to give you my best understanding of the program cokri.m. In this way I hope to make the simplest and most straightforward application of this program available to you while opening the possibility of future, more complicated uses, to you as well.

Sometimes the easiest way to understand a program is to understand, as best as possible, what the input and output variables are. In the case of cokri.m they are as follows:

Input:

Output:

A word of warning, for some reason, Marcotte has set up cokri.m to turn off case sensitivity. When the program is finished running variables Axb and axb are considered the same and making reference to a variable such as Axb will generate a "variable or function not found" error. Simply issue the command "casesen" and case sensitivity will be restored.


GoTo Next Lecture
GoTo Lecture TOC
GoTo 12.747 TOC


The text, graphics, and other materials contained in this homepage and attached documents are intended solely for scholarly use by the scientific and academic community. No reproduction, re-transmission or linking of this page to any other page without the author's expressed written permission is permitted.
© 1998, 2000 -- David M. Glover, WHOI --