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-0.0.1.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yieldcurve-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yieldcurve-0.0.1.tar.gz
  • Upload date:
  • Size: 1.5 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-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9ae27946582e0f1d6d4a8ea398d003f98a3b291d63d02edd1d7f8affd6dded82
MD5 3ca00dfb640100759d240dea2e11a00e
BLAKE2b-256 77b9bad63e2d71c17287dd6525c197e132d362fd88e990127ac3c96f90f6d62e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yieldcurve-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 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-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24b3e7afe67b0c738902b8679f2992d7ad3d71ddde7d30f483bd93cd897c79d6
MD5 4272bba781106199871a686a7149ea4d
BLAKE2b-256 ede24663b034884d8a2d4997f1e7ee15ff64b357e3f3e2234535bf7618ef330c

See more details on using hashes here.

Supported by

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