Skip to content
Projects

Sensitivities

The equations of opencr.inference.sensitivity, declared on the code that implements them and checked by the tests.

propagate

functionsource

Propagate the uncertainties of the rate data to the quantities outputs.

linear
σ2(ln⁡q)=∑rSqr2 σr2\sigma^2(\ln q) = \sum_r S_{qr}^2\, \sigma_r^2
monte carlo
kr←kr eσrξr,ξr∼N(0,1),σ(ln⁡q)=std(ln⁡q)k_r \leftarrow k_r\, e^{\sigma_r \xi_r}, \quad \xi_r \sim \mathcal N(0, 1), \qquad \sigma(\ln q) = \mathrm{std}(\ln q)
interval
[q e−zσ, q ezσ],z=Φ−1(12+coverage2)\big[q\, e^{-z\sigma},\ q\, e^{z\sigma}\big], \qquad z = \Phi^{-1}\big(\tfrac12 + \tfrac{\mathrm{coverage}}{2}\big)
Assumes
  • independent, log-normal data uncertainties σr\sigma_r (1 sigma), from each reaction's provenance by default
  • the uncertainty of the data only, not of a surrogate
Built from

sensitivities

functionsource

Return d ln q / d ln k_r of the quantities outputs.

sensitivity
Sqr=∂ln⁡q∂ln⁡kr≈ln⁡q(kreh)−ln⁡q(kre−h)2hS_{qr} = \frac{\partial \ln q}{\partial \ln k_r} \approx \frac{\ln q(k_r e^{h}) - \ln q(k_r e^{-h})}{2h}
Order
2
Assumes
  • central differences in ln⁡kr\ln k_r, step hh = step (0.01 by default); the order is in hh
  • a detailed-balance inverse moves with its forward reaction (Model.scaled_rates), so detailed balance holds
Built from