Data-driven Feynman–Kac Discovery with Applications to Prediction and Data Generation

Qi Feng, Guang Lin, Purav Matlia, Denny Serdarevic · DOI

TL;DR

This paper introduces a novel data-driven framework, "stochastic SINDy," to discover the underlying probabilistic laws of financial markets by learning backward stochastic differential equations (BSDEs) directly from observed stock and option price data. This method bypasses the need for ergodicity assumptions, enabling accurate predictions and synthetic data generation from limited financial time series.

What Problem Does This Paper Address?

Many complex physical and financial systems are governed by laws that are not fully understood. While data-driven methods have shown promise in discovering deterministic equations, uncovering the probabilistic dynamics, particularly those described by the Feynman-Kac formula, has remained a significant challenge. Existing approaches often require extensive data or strong assumptions like ergodicity, which are not always met in real-world financial scenarios. This paper aims to bridge this gap by developing a method to learn the probabilistic laws (specifically, the BSDE) from a limited number of observed trajectories, such as stock and option prices.

Methods

The core of the paper is the development of a stochastic SINDy (Sparse Identification of Nonlinear Dynamics) algorithm tailored for discovering BSDEs. Key methodological contributions include:

  • Risk-Neutral Probability Measure: The framework formulates the problem under the risk-neutral probability measure. This is crucial as it allows the recovery of the BSDE without requiring the ergodicity assumption, which is often a bottleneck in traditional methods.
  • Deep Neural Network (DNN) for Derivative Estimation: Since numerical derivatives from a single trajectory can be noisy and inaccurate, a DNN is employed to approximate the solution and its derivatives. A "physics loss" is incorporated to ensure the DNN's outputs are consistent with the underlying PDE constraints, thereby improving derivative accuracy.
  • Sparse Regression for BSDE Identification: After estimating the diffusion coefficient and extracting the risk-neutral Brownian motion, the algorithm uses a sparse regression technique (specifically, Sparse Relaxed Regularized Regression - SR3) to identify the coefficients of the candidate functions in the BSDE. This results in a parsimonious representation of the underlying dynamics.
  • Online Prediction and Generation: The identified BSDE is then used for forward-looking predictions of option prices. The framework also enables the generation of new, synthetic stock and option price trajectories that are consistent with the learned probabilistic laws. This process involves iteratively retraining the DNN and rediscovering the dynamics within a shifting window of data.

Datasets

The paper evaluates its method on two types of datasets:

  • Simulated Black-Scholes Model Data: This serves as a benchmark to compare the discovered BSDE against the known analytical solution and its derivatives. The data is generated by simulating a geometric Brownian motion for the stock price and computing European call option prices using the closed-form Black-Scholes formula.
  • Real-World Apple Stock and Option Data: This dataset consists of historical stock price data for AAPL, with corresponding option price data. The authors use a specific time interval and strike price for this evaluation.

Key Insights and Ideas

  • Eliminating Ergodicity Assumption: The most significant insight is the successful application of the risk-neutral probability measure to bypass the ergodicity requirement for discovering stochastic differential equations. This opens up the possibility of learning dynamics from non-stationary or limited data.
  • Bridging Deterministic and Probabilistic Discovery: The paper demonstrates a unified approach that leverages techniques from deterministic system identification (SINDy) and adapts them to the probabilistic realm of BSDEs.
  • Data-Driven BSDE Discovery from Single Trajectories: The ability to learn complex probabilistic models from just a single pair of observed trajectories (stock and option prices) is a major advancement, as such data is often scarce in practice.
  • Predictive Power and Data Generation: The framework not only discovers the underlying laws but also provides a practical tool for making future predictions and generating realistic synthetic data, which is valuable for risk management and scenario analysis.

Key Results

  • Accurate BSDE Recovery: The stochastic SINDy method successfully recovers the underlying BSDE for both the simulated Black-Scholes model and real-world Apple stock data. For the Black-Scholes example, the discovered BSDE coefficients are shown to be close to the analytical ones.
  • Effective Prediction: The algorithm demonstrates strong performance in predicting future option prices, with predictions closely matching the ground truth. The inclusion of confidence intervals provides a measure of uncertainty.
  • Realistic Data Generation: The generated synthetic stock and option price paths are visually consistent with the historical data and the learned dynamics, indicating the method's ability to capture the essential probabilistic features.
  • Improved Derivative Accuracy: The use of a physics-informed DNN significantly improves the accuracy of derivative estimations, which are crucial for the SINDy process.

Limitations and Future Work

  • Terminal Boundary Discovery: The current version of the algorithm does not discover the terminal boundary condition of the BSDE. The authors express hope to add this capability in the future.
  • Non-Trading Intervals: The algorithm does not currently account for market opening and closing times (i.e., non-trading intervals). Incorporating this feature is suggested for future work.
  • Generalization to Other Systems: While promising for financial applications, the authors suggest that this framework points to a broader direction for discovering Feynman-Kac-type probabilistic laws in other fields like engineering and physics. Future work could explore these applications.
  • Scalability and Complexity: While not explicitly detailed, the computational cost of training DNNs and performing sparse regression on large datasets might be a consideration for future optimization.

Summary updated

BibTeX
@misc{feng2025data,
  author = {Qi Feng and Guang Lin and Purav Matlia and Denny Serdarevic},
  title = {{Data-driven Feynman–Kac Discovery with Applications to Prediction and Data Generation}},
  year = {2025},
  eprint = {2511.08606},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.08606},
}
Figure