Skip to content

ou_pfm_limit

ou_pfm_limit(B, D, m0, S0, times, paths, interp, lx=0.0, fac=4, t_eval=None, ridge=0.0, n_rounds=1, anderson=0, safeguard=True, tol=None, push_steps=8, history=None, verbose=False)

Large-n limit of the closed-form PFM fit (pfm-linear) for an Ornstein-Uhlenbeck process.

The exact answer of PFM_LINEAR_ when every snapshot is its exact Gaussian law: the sample averages of the least-squares fit become exact expectations. Nothing is fitted on data; the inputs are the true process and the method (path ensemble, interpolant).

Every round:

  1. reference dynamics: the flow of the current model, v(x, t) = -B x - lx x - D s_t(x) with the exact score s_t(x) = -Sigma_t^{-1} (x - m_t) (none in round 1);
  2. paths: the path ensemble fitted on the exact laws, which returns the exact means and covariances of its nodes (Gaussian ensembles and Independent);
  3. interpolation: the interpolant is linear in the nodes, I(t) = sum_j w_j(t) x_j, so E[I I^T] and E[dI I^T] follow from the node moments;
  4. score: E[s(I) I^T] = -Sigma_t^{-1} (E[I I^T] - m_t E[I]^T);
  5. exact least-squares fit of the drift matrix.

Parameters:

  • B (ndarray of shape (ndim, ndim)) –

    Drift and diffusion matrices of the process, dx = -B x dt + sqrt(2 D) dW.

  • D (ndarray of shape (ndim, ndim)) –

    Drift and diffusion matrices of the process, dx = -B x dt + sqrt(2 D) dW.

  • m0 (ndarray of shape (ndim,)) –

    Initial mean.

  • S0 (ndarray of shape (ndim, ndim)) –

    Initial covariance.

  • times (array-like of shape (K,)) –

    Snapshot times.

  • paths (PathEnsemble) –

    Path ensemble accepting exact laws (GaussianOT, GaussianDebiasedSinkhorn, Independent).

  • interp (object) –

    Interpolant implementing fit and predict (linear in the node values).

  • lx (float, default: 0.0 ) –

    Linear degradation coefficient of the model.

  • fac (int, default: 4 ) –

    Evaluation times per snapshot (uniform grid over the window, as in PFM_).

  • t_eval (array - like or None, default: None ) –

    Explicit evaluation times (e.g. interval midpoints); overrides fac.

  • ridge (float, default: 0.0 ) –

    Ridge penalty on the drift matrix (time-averaged loss).

  • n_rounds –

    Iteration settings, as in PFM_LINEAR_.

  • anderson –

    Iteration settings, as in PFM_LINEAR_.

  • safeguard –

    Iteration settings, as in PFM_LINEAR_.

  • tol –

    Iteration settings, as in PFM_LINEAR_.

  • push_steps –

    Iteration settings, as in PFM_LINEAR_.

  • history –

    Iteration settings, as in PFM_LINEAR_.

  • verbose –

    Iteration settings, as in PFM_LINEAR_.

Returns:

  • ndarray of shape (ndim, ndim) –

    Limit of the fitted drift matrix.