Skip to question

Computational Finance Q&A · Volume 1 · Question 08 of 30

What Is the Feynman–Kac Formula?

How does Feynman–Kac connect partial differential equations with stochastic expectations in derivative pricing?

Part of Computational Finance Q&A — Volume 1, a companion to the 14-lecture Computational Finance course. Lecture 3: Option Pricing and Simulation in Python.

Why this question matters

A derivative price can often be characterized in two apparently different ways: by a partial differential equation or by an expectation over possible future paths. Feynman–Kac links these perspectives.

The idea explained

The episode introduces the representation of a suitable backward PDE solution as a conditional expectation of a terminal payoff under an associated diffusion. The slides demonstrate the link using a simple quadratic terminal condition, making the abstract connection tangible.

A practical perspective

Instead of directly solving the PDE for the expected value of a squared diffusion at maturity, we can examine the distribution of the underlying stochastic process. The expectation gives the same solution when the conditions of the theorem hold.

What you will learn

Watch the video for the complete discussion and consult the original slides for the technical details.

Slides and related lessons

Q&A slides on GitHub ↗ Relevant slides: pp. 21–22 of the 84-page Q&A deck

Related Computational Finance course material: Lecture 3: Option Pricing and Simulation in Python.

Browse all 30 questions, explore the full Computational Finance materials ↗, or find more on Computations in Finance ↗.