Learn R Programming

rareflow (version 0.1.0)

fitflow_FW: Fit Flow Using Freidlin-Wentzell Quasi-Potential

Description

Computes the Freidlin-Wentzell quasi-potential between \(x_0\) and \(x_1\), constructs a tilted likelihood proportional to \(\exp(-V/\mathrm{eps})\), and fits a flow-based variational posterior.

Usage

fitflow_FW(
  observed,
  states = NULL,
  flowtype = "maf",
  flowspec = list(),
  inittheta = NULL,
  drift,
  x0,
  x1,
  T = 200,
  dt = 0.01,
  eps = 0.1,
  nmc = 256,
  control = list()
)

Value

Output of fitflowvariational().

Arguments

observed

Empirical distribution Q.

states

Optional category names.

flowtype

Flow type.

flowspec

Structural parameters for the flow.

inittheta

Optional initial theta.

drift

Drift function \(b(x)\).

x0

Starting point.

x1

Target point.

T

Number of time steps.

dt

Time step.

eps

Noise strength (small parameter).

nmc

Monte Carlo samples.

control

Control list for optim().

Details

This is useful for rare-event inference in small-noise diffusions, where the quasi-potential acts as an effective energy landscape.