This repository contains the code and scripts required to replicate the experimental result of "Inference for Diffusion Processes via Controlled Sequential Monte Carlo and Splitting Schemes" by S. Huang,1 R. G. Everitt, M. Tamborrino and A. M. Johansen.
It includes an R package implementing the core algorithms and a collection of scripts for reproducing all displayed results.
Reproduce the point estimates for simulated FHN data that gives the density plots (Fig. 4 and 7) .
bridge_4_005_LT.r- What it does: For a given seed, simulates FHN data and maximizes the 4-step bridged Lie-Trotter partial likelihood using SPSA\
- Customise: Set seed number (Line 982)\
- Output: Numerical matrix of full convergence trajectory
bridge_4_005_S.r- What it does: For a given seed, simulates FHN data and maximizes the 4-step bridged Strang partial likelihood using SPSA\
- Customise: Set seed number (Line 1003)\
- Output: Numerical matrix of full convergence trajectory
bridge_8_005_LT.r- What it does: For a given seed, simulates FHN data and maximizes the 8-step bridged Lie-Trotter partial likelihood using SPSA\
- Customise: Set seed number (Line 982)\
- Output: Numerical matrix of full convergence trajectory
bridge_8_005_S.r- What it does: For a given seed, simulates FHN data and maximizes the 8-step bridged Strang partial likelihood using SPSA\
- Customise: Set seed number (Line 1004)\
- Output: Numerical matrix of full convergence trajectory
- Each script is independent
- Was run with seeds 1-100 for full results
Contains the installable R package (cSMC) implementing a very basic cSMC; it is required for the MCMC and application script.
- Open
cSMC.Rprojin RStudio - Install the package in the
Buildinterface
Reproduce the posterior density plot (Fig. 3) for simulated FHN data.
mvnfast,MASS,mvtnorm,cSMC
BPF_mcmc.R- What it does: Produces result corresponds to the red line of Fig. 3
- Output: Numerical matrix containing the full BPF-PMMH trajectory
cSMC_mcmc.R- What it does: Produces result corresponds to the blue line of Fig. 3
- Output: Numerical matrix containing the full cSMC-PMMH trajectory
- Both scripts are independent
Reproduces the convergence of likelihood result (Fig. 2) on the 1-d cubic SDE.
mvnfast,MASS,mvtnorm,doParallel
Reproduces results related to the application on the rat (Fig. 8 and 9)
- Load the data that was originally in
.matfiles (Line 1-3)
mvnfast,MASS,mvtnorm,cSMC