(Weighted) Nonlinear Least Squares - (W) NLS: \[ \min_{\theta} \sum_{t=1}^{T} w_t \left(y_{\mbox{Obs}}(t) - y_{\mbox{Sim}}(t,\theta)\right)^2.\]
Three steps:
define model \(y_{\mbox{Sim}}(t,\theta)\), collect data \(y_{\mbox{Obs}}(t)\).
Set up the objective function \(\sum_{t=1}^{T} w_t \left(y_{\mbox{Obs}}(t) - y_{\mbox{Sim}}(t,\theta)\right)^2\)
Minimize the cost/loss of the objective function w.r.t. the parameters \(\theta\).