Skip to content

This repository contains the source code for tool developed to perform research into the use of machine learning models for the prediction of corporate bond credit spreads (i.e. empirical valuation of credit). It implements Neural Network and Gradient Boosted Regression Tree machine learning models via the TensorFlow and XGBoost Library

Notifications You must be signed in to change notification settings

Reneige/EstimatingCreditSpreadsViaMachineLearning

Repository files navigation

Background

This tool was developed to support a research project investigating the application of machine learning algorithms to predict credit spreads in the corporate bond market. It implements a Neural Networks models via TensorFlow as well as a Gradient Boosted Regression Trees model via XGBoost. It also allows for model exploration and prediction interpretation by implementing the Eli5 and LIME Libraries. The tool creates the ability to parse the raw research data from unstructured Excel Files into a SQLite database so that it can be transformed into a functional machine learning data set. This tool also provides some data analysis ability to ensure data quality was at a sufficient level.

For more information on the research, refer to the research document file available here: Estimating Credit Risk Premiums via Gradient Boosted Regression Trees and Neural Networks

Getting Started

run python.exe interface.py at the command line to launch the GUI or run interface.py in your Python IDE.

IMPORTANT: When running for the first time you must build the valuation curve database and calculate the z-spreads. This can be performed by running the following steps from the GUI Menu:

  1. Build the valuation curve database: Menu -> Database -> Build Valuation Curve DB
  2. Calculate the z-spreads: Menu -> Database -> Calculate Z-Spread Analytics (must be performed in order specified)

Screenshot

Screenshot of Python based Research Application - Rene Alby, May 2023

Author: Rene Alby

About

This repository contains the source code for tool developed to perform research into the use of machine learning models for the prediction of corporate bond credit spreads (i.e. empirical valuation of credit). It implements Neural Network and Gradient Boosted Regression Tree machine learning models via the TensorFlow and XGBoost Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published