<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Usage of Robust Regression for Approximation of Thermodynamic Data⋆</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Chemistry, Lomonosov Moscow State University</institution>
          ,
          <addr-line>Moscow, Russia, 119991</addr-line>
        </aff>
      </contrib-group>
      <fpage>278</fpage>
      <lpage>284</lpage>
      <abstract>
        <p>M-estimators based on Huber and Andrews sine loss functions were successfully used for approximation of heat capacities and heat contents of K-substituted natrolite and petalite by means of the weighted sum of Einstein functions. It automatically excluded outliers for petalite and narrow peak of lambda-transition for K-natrolite. k=1 k=1 where n is the number of points, rk are residuals, ycalc and yexp are calculated k k and experimental values respectively, β is the model parameters column vector, ρ(t) is the loss function, σ is the scaling factor, ωk are statistical weights. However, minimization of eq. 1 requires special algorithms and much more computational power than the least squares method. The aim of this work is to demonstrate the applicability of M-estimators for approximation of heat capacities and heat contents of individual substances. Experimental data for petalite LiAlSi4O10 and K-substituted natrolite (K-natrolite) ⋆ Supported by the Russian Foundation for Basic Research for providing financial support (Grant No. 20-03-00575) and by the “Chemical Thermodynamics and Theoretical Materials Science” program (No. 121031300039-1).</p>
      </abstract>
      <kwd-group>
        <kwd>heat capacity</kwd>
        <kwd>heat content</kwd>
        <kwd>K-natrolite petalite</kwd>
        <kwd>robust regression</kwd>
        <kwd>thermodynamic models</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Evaluation of parameters of thermodynamic models from experimental data is
a very common problem of nonlinear optimization. It is usually based on the
weighted non-linear least squares method. Selection of the statistical weights is
a complex problem due to diferent accuracy of experimental data and possible
presence of systematic errors and outliers. Diferent schemes of their automatic
selection were suggested [
        <xref ref-type="bibr" rid="ref8 ref9">8,9</xref>
        ], but all of them are based on the least squares
method that is not robust to outliers. However, outliers may be excluded by the
robust regression, i.e. by replacement of the sum of squares by other objective
functions, e.g. by so called M-estimators:
      </p>
      <p>F (β ) =
n
X ρ</p>
      <p>ycalc(β ) − yexp
ωk k k
Na0.01K1.85Mg0.01Ca0.04Al1.96Si3.04O10 · 2.72H2O were be used as examples.
(1)</p>
    </sec>
    <sec id="sec-2">
      <title>Used Algorithm</title>
      <p>
        In this work the the iterative reweighted least squares (IRLS) algorithm
combined with Levenberg-Marquardt type regularization technique was used for
finding eq. 1 minimum. IRLS for robust regression was suggested by Mudrov, Kushko
et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. This quasi-Newton method is based on the numerical solution of the
system of equations that express necessary condition for eq. 1 minimum:
∂F
∂β i
      </p>
      <p>n
= X ψ
k=1
rkωk
σ</p>
      <p>
        ωk ∂rk = 0; ψ (t) ≡ ρ(˙t) ≡
· σ ∂β i
∂ρ(t)
∂t
IRLS uses two simplifications to get rid of the second derivatives. The first one
is linearisation of the deviations rk near the initial approximation β ◦ :
rk(β ) = rk(β ◦ ) +
m
X ∂rk (β j − β j◦ ) ⇒ r = r◦ + J p; p = β − β ◦
j=1 ∂β j
where J is Jacobian (n × m matrix), m is the number of parameters, r is the
residuals column vector, The second step is exclusion of the ρ(¨t) function by
introduction of so called weight function w(t) = ψ (t)/t [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. If we assume that
w(t) ≈ w(t0) then ρ (¨t) ≈ w(t0) and eq. 2 simplifies to:
n
X w
k=1
ωkrk◦
σ
· ωk2Jkirk◦ +
m n
X pj X w
j=1
k=1
ωkrk◦
σ
· ωk2JkiJkj = 0
It gives the next matrix formula for the iteration (step) p and the covariance
matrix C for the model parameters:
β − β ◦ = p = − (J W J )−1
      </p>
      <p>J ⊤W r◦ ; C =
(r◦ )⊤W r◦
n − m
(J W J )−1
where W is the n × n diagnonal matrix with the Wkk = ωk2 · w(ωkrk/σ ) elements.</p>
      <p>
        The IRLS algorithm was embedded into the CpFit program [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] designed for
approximation of heat capacities and heat contents of substances. It was used
as the replacement of the least squares method and included the next steps:
1. Find the initial approximation by the least squares method.
2. Estimate the scaling factor in eq. 1 using the robust estimation of standard
error based on median [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]:
      </p>
      <p>
        σ = Φ −1 (0.75) · median |r| = 1.483 · median |r|
where Φ −1 (x) is the inverse cumulative distribution function for standard
normal distribution.
3. Run the IRLS iterations combined with Levenberg-Marquardt type
regularization technique using the given data and the loss function ρ(t).
(2)
(3)
(4)
(5)
(6)
The ρ(t) = 0 .5t2 (i.e. the least squares method), Huber and Andrews sine loss
function were used in this work, their ρ(t), ψ (t) and w(t) are given in Table 1
and at Figure 1. The tuning constants a for 95% asymptotic eficiency in the
case of normal distribution of errors were taken from Holland and Welsch [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>Andrews sine and Huber functions are piecewise. They turn into AT 2 at
smaller t and to constant and linear functions respectively at larger t. This
reduces values of their weight functions w(t) at larger t and influence of outliers.
For Andrews sine function w(t) reaches 0 for finite values of t. It causes exclusion
of potential outliers from the optimization. In the case of Huber function w(t)
is always positive.</p>
      <p>
        Huber function is convex and Andrews sine function is not (see Figure 1).
The latter one belongs to redescending M-estimators that have non-convex ρ(t),
ψ (t) with local extrema and limt→∞ ψ (t) = 0. They allow to totally exclude
outliers from the optimization but may lead to non-convex objective function
(see eq. 1) even in the case of linear regression. This increases the possibility of
reaching local minimum instead of global and requires more careful selection of
the initial approximation [
        <xref ref-type="bibr" rid="ref1 ref5">1,5</xref>
        ].
      </p>
    </sec>
    <sec id="sec-3">
      <title>Experimental Data</title>
      <p>
        Experimental data for K-substituted natrolite and petalite heat capacity and
heat content were considered in this work. They are summarized in Table 2.
These data were already approximated earlier by Voskov et al. [
        <xref ref-type="bibr" rid="ref10 ref11">10,11</xref>
        ] using the
least squares method and the weighted sum of Einstein functions:
Cp(T ) =
m
X α iCE
i=1
Z T
      </p>
      <p>0
HT −</p>
      <p>H0 =</p>
      <p>Cp(T ) dT =
θ i
T
;</p>
      <p>CE(x)</p>
      <p>R
m
X α iHE
i=1
θ i
T
=
;</p>
      <p>3x2ex
(ex − 1)2</p>
      <p>HE(x)</p>
      <p>RT
=</p>
      <p>
        3x
ex − 1
(7)
(8)
where m is the number of terms, R is the universal gas constant, CE(x) is Einstein
function, α i and θ i are model parameters that are found by the minimization of
eq. 1. They may be considered as a crude approximation of phonon spectrum
but due to anharmonism and possible Schottky anomalies they are closer to
adhoc parameters. However the approximation based on the least squares method
required manual exclusion of low-temperature outliers for petalite [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] (at T =
4.57 and 5.27 K) and of heat capacity anomaly for K-natrolite [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] (at T =
210 − 300 K with a narrow peak at 250.32 K). The experimental data were
approximated by eq. 7 without manual exclusion of the outliers and Cp anomaly
using the ωk,C = 1/Cpe,xkp and ωk,H = 1/∆H kexp statistical weights, i.e. relative
deviations.
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>Results and their Discussion</title>
      <p>The results of approximation for both substances are shown at Figure 2. Higher
uncertainties at T &lt; 25 K are due to less accurate experimental data, see Table 2.
The corresponding α i and θ i values are given in Tables 3 and 4. Extra digits
are left intentionally: parameters confidence intervals because parameters are
correlated to each other, i.e. C from eq. 5 is not diagonal. This is typical for
linear and nonlinear regression. Number of terms for petalite is not equivalent
for diferent models because attempts to increase number of terms up to 5 in all
models caused ill conditioned optimization problems.</p>
      <p>80
60
40
20
0
-20
0</p>
      <p>
        The least squares method is sensitive to the Cp anomaly and outliers: the
obtained models are not accurate and undergo oscillations. M-estimators based
on Huber and Andrews sine function are much less sensitive to them. Standard
“baseline” (i.e. not taking into account Cp anomalies) entropies S2◦,B98L.15 were
calculated for all models, see Table 5. For K-natrolite uncertainties are 1.1%, 0.5%
and 0.3% for quadratic, Huber and Andrews loss functions; the reference value
S2◦,B98L.15 = 437.7 J · (mol · K)−1 was taken from [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. For petalite the uncertainties
are 2.2%, 0.2% and &lt; 0.1%; the reference value S2◦,B98L.15 = 232.7 J · (mol · K)−1
was taken from [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Andrews sine loss function leads to more accurate values
of entropies, but during the optimization it sometimes manual tuning of initial
approximation for petalite. Further research is required for automatic selection
of initial approximation in the stepwise regression.
      </p>
      <p>Although parameters confidence intervals were controlled to avoid overfitting,
k-fold cross-validation with k = 5 was made for all models. The results are
present in Table 5, all standard errors were estimated by means of eq. 6. s
were calculated for parameters from Tables 3 and 4 before cross-validation. stest
and strain were evaluated as mean standard errors for test and training sets
respectively; stest and strain were estimated by means of eq. 6.</p>
      <p>
        For Andrews sine functions obtained sCp and s∆H are close to the standard
errors of existing models: for K-natrolite sCp = 0.68% (restored from model
parameters from [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]) and for petalite sCp = 0.46%, s∆H = 0.091% [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. In
the case of K-natrolite stest is about 2–3 times higher than s for Huber and
Andrews sine M-estimators. For petalite both stest and strain are close to s. Such
diferences may be connected with presence of λ-transition of K-natrolite and
random fluctuations during sampling procedure may have stronger influence.
The cross-validation results show that the models are not overfitted.
5
      </p>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>Robust regression based on M-estimators and the IRLS algorithm were
successfully applied for approximation of isothermal heat capacity and heat content
of K-substituted natrolite and petalite. This approach allowed to automatically
exclude outliers. However, it is not designed for estimation of random and
systematic errors of diferent data series, and may be combined with other schemes
of statistical weights assignment if required. It also can’t replace critical data
evaluation of available experimental data but may help to find anomalies and
outliers.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Data Availability</title>
      <p>CpFit program is available at the site of Laboratory of Chemical
Thermodynamics (http://td.chem.msu.ru). Data files for K-natrolite and petalite are published
as Mendeley data set (http://dx.doi.org/10.17632/gbgnkr3f2x.1).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Baselga</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Klein</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Suraci</surname>
            ,
            <given-names>S.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>de Oliveira</surname>
            ,
            <given-names>L.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Matsuoka</surname>
            ,
            <given-names>M.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rofatto</surname>
            ,
            <given-names>V.F.</given-names>
          </string-name>
          :
          <article-title>Global optimization of redescending robust estimators</article-title>
          .
          <source>Mathematical Problems in Engineering</source>
          <year>2021</year>
          ,
          <volume>9929892</volume>
          (
          <year>2021</year>
          ), https://doi.org/10.1155/
          <year>2021</year>
          /9929892
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bennington</surname>
            ,
            <given-names>K.O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stuve</surname>
            ,
            <given-names>J.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ferrante</surname>
            ,
            <given-names>M.J.:</given-names>
          </string-name>
          <article-title>Thermodynamic properties of petalite (Li2Al2Si8O20)</article-title>
          .
          <source>U.S. Bureau of Mines, Report of investigations 8451</source>
          (
          <year>1979</year>
          ), https://hdl.handle.net/2027/mdp.39015006379187
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Hemingway</surname>
            ,
            <given-names>B.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Robie</surname>
            ,
            <given-names>R.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kittrick</surname>
            ,
            <given-names>J.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grew</surname>
            ,
            <given-names>E.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nelen</surname>
            ,
            <given-names>J.A.</given-names>
          </string-name>
          , London,
          <string-name>
            <surname>D.</surname>
          </string-name>
          :
          <article-title>The heat capacities of osumilite from 298.15 to 1000 K, the thermodynamic properties of two natural chlorites to 500 K, and the thermodynamic properties of petalite to 1800 K. Am</article-title>
          . Mineral.
          <volume>69</volume>
          (
          <issue>7-8</issue>
          ),
          <fpage>701</fpage>
          -
          <lpage>710</lpage>
          (
          <year>1984</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. Holland,
          <string-name>
            <given-names>P.W.</given-names>
            ,
            <surname>Welsch</surname>
          </string-name>
          ,
          <string-name>
            <surname>R.E.</surname>
          </string-name>
          :
          <article-title>Robust regression using iteratively reweighted leastsquares</article-title>
          .
          <source>Comm. Statist. Theory Methods</source>
          <volume>6</volume>
          (
          <issue>9</issue>
          ),
          <fpage>813</fpage>
          -
          <lpage>827</lpage>
          (
          <year>1977</year>
          ), https://doi.org/ 10.1080/03610927708827533
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Maronna</surname>
            ,
            <given-names>R.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Martin</surname>
            ,
            <given-names>R.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yohai</surname>
            ,
            <given-names>V.J.: Robust</given-names>
          </string-name>
          <string-name>
            <surname>Statitics</surname>
          </string-name>
          .
          <article-title>Theory and methods</article-title>
          . John Wiley &amp; Sons, Ltd (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Mudrov</surname>
            ,
            <given-names>V.I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kushko</surname>
            ,
            <given-names>V.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mikhailov</surname>
            ,
            <given-names>V.I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Osovitskii</surname>
            ,
            <given-names>E.M.:</given-names>
          </string-name>
          <article-title>Experiments on usage of the least absolute deviations method for orbital information processing problems</article-title>
          [in Russian].
          <source>Kosmicheskie issledovania (Cosmic Research)</source>
          <volume>6</volume>
          ,
          <fpage>502</fpage>
          -
          <lpage>514</lpage>
          (
          <year>1968</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Paukov</surname>
            ,
            <given-names>I.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kovalevskaya</surname>
            ,
            <given-names>Y.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Seretkin</surname>
            ,
            <given-names>Y.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Belitskii</surname>
            ,
            <given-names>I.A.</given-names>
          </string-name>
          :
          <article-title>The thermodynamic properties and structure of potassium-substituted natrolite in the phase transition region</article-title>
          .
          <source>Russ. J. Phys. Chem. A</source>
          <volume>76</volume>
          (
          <issue>9</issue>
          ),
          <fpage>1406</fpage>
          -
          <lpage>1410</lpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Paulson</surname>
            ,
            <given-names>N.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zomorodpoosh</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Roslyakova</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stan</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Comparison of statistically-based methods for automated weighting of experimental data in CALPHAD-type assessment</article-title>
          .
          <source>Calphad</source>
          <volume>68</volume>
          ,
          <issue>101728</issue>
          (
          <year>2020</year>
          ), https://doi.org/10.1016/ j.calphad.
          <year>2019</year>
          .101728
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Rudnyi</surname>
            ,
            <given-names>E.B.</given-names>
          </string-name>
          :
          <article-title>Statistical model of systematic errors: An assessment of the Ba-Cu and Cu-Y phase diagram</article-title>
          .
          <source>Chemom. Intell. Lab. Systems</source>
          <volume>36</volume>
          (
          <issue>2</issue>
          ),
          <fpage>213</fpage>
          -
          <lpage>227</lpage>
          (
          <year>1997</year>
          ), https://doi.org/10.1016/S0169-
          <volume>7439</volume>
          (
          <issue>96</issue>
          )
          <fpage>00069</fpage>
          -X
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Voskov</surname>
            ,
            <given-names>A.L.</given-names>
          </string-name>
          :
          <article-title>Description of thermodynamic functions of aluminosilicates with the zeolite-like composition by sums of Einstein-Planck functions</article-title>
          .
          <source>Russ. J. Inorg. Chem</source>
          <volume>65</volume>
          ,
          <fpage>765</fpage>
          -
          <lpage>772</lpage>
          (
          <year>2020</year>
          ), https://doi.org/10.1134/S0036023620050265
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Voskov</surname>
            ,
            <given-names>A.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kutsenok</surname>
            ,
            <given-names>I.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Voronin</surname>
            ,
            <given-names>G.F.</given-names>
          </string-name>
          :
          <article-title>CpFit program for approximation of heat capacities and enthalpies by Einstein-Planck functions sum</article-title>
          .
          <source>Calphad</source>
          <volume>61</volume>
          ,
          <fpage>50</fpage>
          -
          <lpage>61</lpage>
          (
          <year>2018</year>
          ), https://doi.org/10.1016/j.calphad.
          <year>2018</year>
          .
          <volume>02</volume>
          .001
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>