Skip to content

Conversation

yfnaji
Copy link
Contributor

@yfnaji yfnaji commented Mar 19, 2025

Pull request contributes to this issue regarding pricers for American options.

The Longstaff-Schwartz method is a Monte Carlo technique that uses least squares regression on in-the-money paths at each backwards time step to estimate the continuation value (the option’s value if it is not exercised).

In this implementation, I chose Legendre polynomials up to order 4 (i.e., orders 0 to 4) as the basis functions for the regression step. However, other basis functions, such as Hermite or Chebyshev, can also be used.

The unit tests were designed to pass within a tolerance threshold due to the variance in this method’s outcomes.

Note that at some point, as with the finite difference pricers, we will likely eventually implement these pricers on types/objects (as opposed to keeping struct pricers).

The Longstaff-Schwartz algorithm

I have outlined the algorithm in this PDF.

@yfnaji yfnaji force-pushed the longstaff-schwarz branch from 9ab01cb to 40b6729 Compare March 20, 2025 09:03
@yfnaji yfnaji force-pushed the longstaff-schwarz branch 2 times, most recently from 772ce32 to eddc3a8 Compare March 20, 2025 09:24
@yfnaji yfnaji force-pushed the longstaff-schwarz branch from eddc3a8 to d66a22c Compare March 26, 2025 00:25
@avhz avhz merged commit 8ae4aa7 into avhz:main Apr 26, 2025
4 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants