Newmod III

How Newmod III is checked

A fitting program is only useful if its answers can be trusted. Newmod III is tested in three ways: its calculations are checked against the original NEWMOD, its fits are checked against patterns whose true structure is known, and its results are compared with a published study. It also tells you when your own data cannot decide an answer.

1. The same calculation as NEWMOD

Newmod III contains two independent ways of calculating a pattern: the Reynolds engine (NEWMOD's own method, with Bethke and Reynolds' ordering equations) and a transfer-matrix engine (Kakinoki–Komura, as used by Drits and Tchoubar). They share no calculation code, so agreement between them is a real check.

2. Fits recover known answers

A pattern is calculated from a known structure, realistic counting noise is added, and the fit is started from wrong values. A trustworthy fit should return the true values within its own stated uncertainty (± one standard deviation). Some of the tests, which are run again whenever the program is changed:

TestParameterTrueFitted
Illite-smectite, R2-type ordering partly developedReichweite 2 strength0.600.592 ± 0.013
Illite-smectite with segregated layersReichweite A-B
PA
−0.55
0.700
−0.549 ± 0.002
0.699 ± 0.001
Glycolated I/S, non-standard glycol spacing2GLY spacing16.75 Å16.751 ± 0.001 Å
Glycolated I/S, reduced glycol contentInterlayer amount0.800.802 ± 0.004
Heated I/S, collapsed spacingHeated spacing9.55 Å9.552 ± 0.004 Å
Two-phase clay, air-dried and glycolated fitted together, the same amounts in bothI/S share of the clay69.0%69.0 ± 0.1%

In every test the fitted value lies within about two of its stated standard deviations of the truth, which is what correct uncertainties should give. The uncertainties in the Fit Report can be taken at face value when the model fits the data.

3. A published study reproduced

Lanson, Sakharov, Claret and Drits (2009, American Journal of Science 309) modelled air-dried and glycolated patterns of Gulf Coast shales with the multispecimen method, using their own program. Working from the patterns and phase compositions published in the paper:

These comparisons used patterns digitized from the paper's figures, so the fits are less precise than they would be with the original measured counts.

4. It tells you when the data cannot decide

A fit can look good and still be unsafe: a size or shape parameter can run to the end of its range to absorb a misfit, or two answers can trade against each other so that the data never really fix either. Newmod III looks for this after every fit.

  • Fit health: every Fit Report gives a verdict — Good, Caution or Unreliable — with the reason for each warning.
  • Correlations: the Fit Report lists which parameters trade off against each other, and how strongly.
  • Check Sensitivity: before fitting, shows which parameters your pattern can determine and which it cannot.
  • Profile Parameter: holds one parameter at a series of values and refits everything else each time. A sharp valley means the data decide it; a flat floor means they do not, and the honest answer is a range.
Profile Parameter result: the rise in fit error as the illite proportion PA is held at values either side of the best fit, with the 68% and 95% ranges marked
Profile Parameter for PA after a fit: the 68% and 95% ranges are where the error rise crosses the dashed lines.