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.1CrossSectionReg: two-pass cross-sectional regression, described in Cochrane (2005), Section 12.2NonTradableFactors: iterative maximum-likelihood estimator for non-tradable factors, described in Campbell, Lo & MacKinlay (2012), Section 6.2.3RiskPremiaTermStructure: 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file empfin-1.0.2.tar.gz.
File metadata
- Download URL: empfin-1.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58fd43b41c6bf4d9b6813a3ad186468a40f6b3387bb9ed25929659bf4d162f43
|
|
| MD5 |
cad14b05bbbcf2ab0bb3a43a0851bdd6
|
|
| BLAKE2b-256 |
df111c552827d6c0257347dea00dc51483bed576de4bf346d0d6e98e81b999be
|
Provenance
The following attestation bundles were made for empfin-1.0.2.tar.gz:
Publisher:
publish.yml on gusamarante/empfin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
empfin-1.0.2.tar.gz -
Subject digest:
58fd43b41c6bf4d9b6813a3ad186468a40f6b3387bb9ed25929659bf4d162f43 - Sigstore transparency entry: 814140472
- Sigstore integration time:
-
Permalink:
gusamarante/empfin@b62be14a79193c1352a22263f45004233ba22640 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/gusamarante
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b62be14a79193c1352a22263f45004233ba22640 -
Trigger Event:
release
-
Statement type:
File details
Details for the file empfin-1.0.2-py3-none-any.whl.
File metadata
- Download URL: empfin-1.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6a4cc97e5e4919cbf1ae4f5a84c15e22dd9765a68b3a94cc166aacf3a79ca12
|
|
| MD5 |
e119d6cdeb9b63f6033983f33ea4c198
|
|
| BLAKE2b-256 |
1fc25f8fd10e83a138b05fc557ba8d2d0808b3995dc3d25b8e4acda3b8de0b22
|
Provenance
The following attestation bundles were made for empfin-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on gusamarante/empfin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
empfin-1.0.2-py3-none-any.whl -
Subject digest:
d6a4cc97e5e4919cbf1ae4f5a84c15e22dd9765a68b3a94cc166aacf3a79ca12 - Sigstore transparency entry: 814140473
- Sigstore integration time:
-
Permalink:
gusamarante/empfin@b62be14a79193c1352a22263f45004233ba22640 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/gusamarante
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b62be14a79193c1352a22263f45004233ba22640 -
Trigger Event:
release
-
Statement type: