Questions tagged [numerical-methods]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
3 answers
8k views

What is an efficient method to find implied volatility?

I have a code that finds the implied volatility using the Newton-Raphson method. I set the number of trial to 1000 but sometimes it fails to converge and doesn't find the result. Is there a better ...
opt's user avatar
  • 559
8 votes
1 answer
758 views

Hyperbolic and Elliptic PDEs in Quant Finance

Parabolic PDEs (e.g. heat equation) are closely linked to finance via the Feynman Kac Theorem. Do other types of PDEs appear in quant finance? Elliptic PDEs don't contain a time dimension (so perhaps ...
Alex's user avatar
  • 83
5 votes
0 answers
143 views

Optimized search for yield-to-worst of a callable bond

Suppose that I need to find the yield-to-worst of a callable bond, and that the option is American (call any time). The bond may have step-up coupons and/or non-constant call price (oprion strike). ...
Dimitri Vulis's user avatar
4 votes
1 answer
430 views

Finite Difference method in Matlab for SABR volatility model fails to provide correct option values

Currently, I'm trying to implement a Finite Difference (FD) method in Matlab for my thesis (Quantitative Finance). I implemented the FD method for Black-Scholes already and got correct results. ...
Pim's user avatar
  • 117
24 votes
2 answers
3k views

How to quickly estimate a lower bound on correlation for a large number of stocks?

I would like to find stock pairs that exhibit low correlation. If the correlation between A and B is 0.9 and the correlation between A and C is 0.9 is there a minimum possible correlation for B and C? ...
Joshua Chance's user avatar
11 votes
3 answers
2k views

Reference on Markov chain Monte Carlo method for option pricing?

I have to implement option pricing in c++ using Markov chain Monte Carlo. Is there some paper which describes this in detail so that I can learn from there and implement?
Shane Wingard's user avatar
9 votes
3 answers
5k views

Usage of Brownian Bridge?

I was recommended to read something about Brownian Bridge. Could someone familiar with BB give some recommendation? It was mentioned that BB benefits in 2 places BB could reduce the simulation paths,...
athos's user avatar
  • 2,181
8 votes
5 answers
832 views

Heston Model Integration Oscillations

Is there a way to reduce oscillations for the numerical integration when evaluating the Heston model. I am pricing a series of 5000 options scattered over the Heston model parameter space and I find ...
Sam Palmer's user avatar
6 votes
2 answers
633 views

Architecture of a global pricing library with immutable payoffs

By global pricing library I mean a library handling equity, rate etc, hybrid products having several models (BS, LV, SV, LSV) having several numerical methods (analytic formula, MC, PDE FD/FE) I ...
Olorin's user avatar
  • 1,170
6 votes
2 answers
539 views

What is a cubature scheme?

Ideally an intuitive explanation with an example, please.
user40's user avatar
  • 2,667
6 votes
1 answer
1k views

How to apply quasi-Monte Carlo to path-dependent options?

Following up on my recent question on variance reduction in a Cox-Ingersoll-Ross Monte Carlo simulation, I would like to learn more about using a quasi-random sequence, such as Sobol or Niederreiter, ...
Tal Fishman's user avatar
  • 13.3k
5 votes
2 answers
3k views

How to remove outliers in financial times series?

I have a bunch of time series; i need to clean them before modelling. So far I just know the “filtering/smoothing” method : -Ex: moving average methodology (filter the data with a moving average (...
Malick's user avatar
  • 2,542
3 votes
1 answer
3k views

Covariance matrix and Cholesky decomposition

I am simulating a spread option with stochastic volatility using Monte Carlo simulation. I have the positive-definite covariance matrix $$ \rho = \left( \begin{array}{cccc} 1 & \rho_{1,2} & \...
Alfie's user avatar
  • 193
2 votes
0 answers
254 views

Solve the Schwartz mean reverting PDE for option pricing using Euler explicit method (matlab)

Objective: Implement the Euler Explict Method for solving the PDE for option prices under the Schwartz mean reverting model. The price evolution of a commodity can be described by the Schwartz SDE $$...
sound wave's user avatar
2 votes
1 answer
274 views

SABR PDE spot/forward upper boundary condition implementation

When running my Finite Difference code, I observe something odd. Although implementing a classical (non-reverting) SABR model, I initialized the variables such that it should be equal to Black-...
Pim's user avatar
  • 117
1 vote
0 answers
72 views

boundary conditions in finite element method

In the appendix A of this paper, https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.227.5073&rep=rep1&type=pdf, a finite element method is demonstrated to price a straddle. The same ...
sigma1988's user avatar
1 vote
1 answer
2k views

Implied Volatility Calculation for Deep In The Money Calls, Numerical Issues

I have two implementations for finding the implied volatility under Black-Scholes formula. One is bisection and the other is brent's method. (I know Newton-Raphson is popular due to speed and will ...
UmaN's user avatar
  • 513
1 vote
0 answers
83 views

How good is a "good accuracy" in pricing?

Say you want to test various numerical algorithms for purposes of pricing. How close do you need to be to some benchmark value (the "actual" price) for your accuracy to be good? Say I am trying to ...
Methods's user avatar
  • 11