LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Table of contents

First published on Wednesday, Jun 17, 2026 and last modified on Wednesday, Jun 17, 2026 by François Chaplais.

Modelization — User Guide

François Chaplais WebMagic


1 What the tool does

\[ \hat Y = f(X) \]
\[ f(x) = \bigl(f_1(x), \dots, f_n(x)\bigr), \]

2 Data preparation


3 Standardization

\[ \tilde x_r = \frac{x_r - \hat\mu_r}{\hat\sigma_r}, ~~ \tilde y_j = \frac{y_j - \hat\mu_j^Y}{\hat\sigma_j^Y}. \]

4 B-spline basis

\[ t_0 = \dots = t_d < \xi_1 < \dots < \xi_K < t_{K+d+1} = \dots = t_{K+2d+1}. \]
\[ B = K + d + 1 = K + 4. \]
\[ N_{i,0}(x) = \left\{ \begin{array}{ll}1 & t_i \le x < t_{i+1}\\ 0 & \text{otherwise,}\end{array}\right. \]
\[ N_{i,d}(x) = \frac{x - t_i}{t_{i+d} - t_i} N_{i,d-1}(x) + \frac{t_{i+d+1} - x}{t_{i+d+1} - t_{i+1}} N_{i+1,d-1}(x), \]
\[ \sum_{i=1}^B N_{i,d}(x) = 1 ~ \forall\, x. \]
\[ \Delta x_{\min} \approx \frac{\text{input range}}{K}. \]

5 Design matrix and ridge regression

\[ A = \bigl[1 \;\big|\; \Phi_1 \;\big|\; \Phi_2 \;\big|\; \dots \;\big|\; \Phi_m\bigr] \in \mathbb{R}^{N \times P}, \]
\[ P = 1 + \sum_{r=1}^m B_r. \]
\[ \min_{C \in \mathbb{R}^{P \times n}} \;\|AC - Y\|_F^2 + \lambda\, C^\top \Omega\, C, \]
\[ \bigl(A^\top A + \lambda\, \Omega\bigr) C = A^\top Y. \]
\[ \lambda \in \{10^{-4},\; 10^{-3},\; 10^{-2},\; 10^{-1},\; 1,\; 10,\; 100\} \]

6 Cross-validation and scoring


7 Condition number

\[ G_\lambda = A^\top A + \lambda\, \Omega \]
\[ \kappa = \frac{\sigma_{\max}(G_\lambda)}{\sigma_{\min}(G_\lambda)}, \]

8 Branch A — original-coordinate ladder

\[ f_j(x) = \beta_j. \]
\[ f_j(x) = \beta_j + \sum_{r=1}^m w_{jr} x_r. \]
\[ f_j(x) = \beta_j + \sum_{r=1}^m \sum_{\ell=1}^{B} c_{jr\ell}\, N_{\ell,3}(\tilde x_r), \]
\[ f_j(x) = f_j^{M3}(x) + \sum_{\ell=1}^{K^2} d_{j\ell}\, \bigl[N_{\cdot,3}(\tilde x_r) \otimes N_{\cdot,3}(\tilde x_s)\bigr]_\ell, \]

9 Branch B — PCA coordinate ladder

\[ \tilde X = U \Sigma V^\top, \]
\[ Z_q = \tilde X\, V_{:,1:q} \in \mathbb{R}^{N \times q}. \]

10 Model selection

\[ d = \sqrt{\left(\frac{\text{cvRmse}}{1.0}\right)^2 + \left(\frac{\log_{10}\kappa}{8.0}\right)^2}. \]
\[ \text{EDF} = \mathrm{tr}(H) = P - \lambda\,\mathrm{tr}(G_\lambda^{-1}\Omega) \in [1, P]. \]

11 Export formats


12 Practical advice


13 Mathematical notation summary