Skip to main content

Estimates yield curves using various methodologies

Project description

This package will allow for easy building of yield curves using various methodologies found in academic literature. Currently, this package only has the Nelson Siegal function programmed but other functions are being worked on at the moment.

To use: Make sure your dataframe consists of yields with column names denoting the maturity of the security in months. Initiate the function as such: curve = NelsonSiegal(est_l=True) curve.fit(data, params=[1,1,1,1], l=none)

The NelsonSiegal function contains one argument. est_l - this argument is basically asking if you would like to have the lambda estimated from the data using a non-linear least squares optimizer. Setting this to true will do so. Setting this to false means you will have to provide your own value of lambda into the fit function. The fit function contains three arguments. Data - this is just your dataframe, params - this is an array of parameters used as starting values in the optimisation function. Finally, l is just the value for lambda if you chose this option in the initiation function.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yieldcurve-vlademel-0.0.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

yieldcurve_vlademel-0.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file yieldcurve-vlademel-0.0.1.tar.gz.

File metadata

  • Download URL: yieldcurve-vlademel-0.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for yieldcurve-vlademel-0.0.1.tar.gz
Algorithm Hash digest
SHA256 deac96ab7b395ad6931ff88db60698efb99ec99ba10361190e3099586ce09f89
MD5 2276a348e0302959445572d7b69081fe
BLAKE2b-256 160971add5befd8138bee67a918912ab281740b08636769386fafd63b40f41be

See more details on using hashes here.

File details

Details for the file yieldcurve_vlademel-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: yieldcurve_vlademel-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for yieldcurve_vlademel-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b90dc1bf882d1de30a29a9b6ace5a2f092c8d0e3a786ea192c172dee4ac05c01
MD5 ad8946ba3f0d1e7113e849f19e056658
BLAKE2b-256 d13410f86533ef0b5b8b3cb4ad7e83db15048f552e1dd8baaefd5a8975d1cc07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page