Giter VIP home page Giter VIP logo

pyfeng's People

Contributors

1901212564 avatar ahrmnd avatar charliescc avatar chenyingong avatar cy-wang15 avatar daifengqi avatar delia810 avatar feng-yuze avatar hejinzefinance avatar jaehyukchoi avatar jiangxunmu avatar jordanplatts avatar lantianxue avatar lililiyf avatar panyuli avatar xueyanghu avatar zaynmalivski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pyfeng's Issues

OusvIft is not accurate.

The current docstring in OusvIft shows the exact values reported in Li & Wu (2019) Table 2 and 3. But the actual output is slightly different. We need to improve the implementation.

        >>> import pyfeng as pf
        >>> model = pf.OusvIft(0.2, mr=4, vov=0.1, rho=-0.7, intr=0.09531)
        >>> model.price(100, 100, texp=np.array([1, 5, 10]))
        array([13.21493, 40.79773, 62.76312])
        >>> model = pf.OusvIft(0.25, mr=8, vov=0.3, rho=-0.6, intr=0.09531)
        >>> model.price(np.array([90, 100, 110]), 100, texp=1)
        array([21.41873, 15.16798, 10.17448])

Actual results:

array([13.21341236, 40.78514465, 62.67427669])
array([21.41624282, 15.16575302, 10.17145969])

`BsmDisp` bug

The disp() function should take forward, not spot.

implied volatility problem

It seems that both impvol and impvol_naive return nan:

m = pf.Bsm(sigma=0.5, intr=0.05, divr=0.1)
print(m.impvol(100, 80, 19.4, 0.1, 1))

nan

Quadrature from moments

  • quadpypackage
  • Golub GH, Meurant GA (2010) Matrices, moments, and quadrature with applications. Princeton University Press, Princeton, N.J

Mgf2Mom improvement

  • Vectorize. MGF can return vectors
  • Intermediate results should use class variables

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.