COS method (Fang, Osterlee)

Evaluating PDF and CDF given the characteristic function via COS (Fourier-cosine) method
125 Downloads
Updated 5 Jul 2018

View License

Evaluating PDF and CDF given the characteristic function via COS (Fourier-cosine) method. The method is presented in Fang, and C.W. Oosterlee. "A novel pricing method for European options based on Fourier-cosine series expansions." (2008). The implementation in the codes is about approximatin the PDF and CDF of a random variable from its characteristic function, or moment generating function. The method applies to the inversion of the Laplace transform, and was actually implemented to replicate Cont, Sasha, Talreja. "A stochastic model for order book dynamics.". The function in the package is however easy to adapt to a wide class of problems, going beyond the included trivial usage examples.

Cite As

Martin Magris (2024). COS method (Fang, Osterlee) (https://www.mathworks.com/matlabcentral/fileexchange/67944-cos-method-fang-osterlee), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

p can be any point in the range [a,b].

1.0.0.0