Skip to main content

Empirical Finance Tools

Project description

empfin - Empirical Finance Tools in Python

empfin is a Python toolkit for empirical asset pricing models and risk premia estimation. This library is in active development and aims to implment models from all corners of the literature.

What's Inside

Currently available models for estimation of risk premia:

  • TimeseriesReg: single-pass OLS time-series regression, described in Cochrane (2005), Section 12.1
  • CrossSectionReg: two-pass cross-sectional regression, described in Cochrane (2005), Section 12.2
  • NonTradableFactors: iterative maximum-likelihood estimator for non-tradable factors, described in Campbell, Lo & MacKinlay (2012), Section 6.2.3
  • RiskPremiaTermStructure: term structure of risk premia with a single factor, tradeable or not, following Bryzgalova, Huang & Julliard (2024). I would like to thank the authors for sharing their replication files.

Examples

For each model, there is a jupyter notebook with examples of their use.

Installation

pip install empfin

References

Bryzgalova, Huang, and Julliard (2024) Macro Strikes Back: Term Structure of Risk Premia and Market Segmentation Working Paper

Cochrane (2009) "Asset Pricing: Revised Edition". Princeton University Press.

Campbell, Lo, and MacKinlay (2012) "The Econometrics of Financial Markets"

Library Citation

Gustavo Amarante (2026). empfin - Empirical Finance Tools in Python. Retrieved from https://github.com/gusamarante/empfin

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

empfin-1.0.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

empfin-1.0.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file empfin-1.0.1.tar.gz.

File metadata

  • Download URL: empfin-1.0.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for empfin-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cade79c7605ff9959f33cbca5af812676824af99825bd92667eb7b5990fede23
MD5 a226b6d0a6aa43a1ba2808de74d8cf39
BLAKE2b-256 397f3f52ae31678f3915767a1a4e82abde28f9f433bb8a22b439933719e3404c

See more details on using hashes here.

Provenance

The following attestation bundles were made for empfin-1.0.1.tar.gz:

Publisher: publish.yml on gusamarante/empfin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file empfin-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: empfin-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for empfin-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c28cc7f85b46a72993de6578a5ec6e6555948b663d44164afefab77007a1e348
MD5 2135be09030c1e756fc81380c5c6a22d
BLAKE2b-256 3ea60e1d72f00d0a1f8b536369ac64942c1570311fe7f2e7c7b18b26aa49372f

See more details on using hashes here.

Provenance

The following attestation bundles were made for empfin-1.0.1-py3-none-any.whl:

Publisher: publish.yml on gusamarante/empfin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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