Giter Club home page Giter Club logo

neural-network-prepayment-model's Introduction

neural-network-prepayment-model

Here we build a neural-network based prepayment model to predict a likelihood of prepayments on pools of residential mortgage loans.

Mortgage pools are tradable fixed income securities composed of collections of residential mortgage loans. Here we only consider the so called "agency" mortgage pools, i.e. those whose credit risk (the risk of borrower's default) is guaranteed by one of the GSEs (Government Sponsored Enterprises) which are Fannie Mae, Freddie Mac, and Ginnie Mae. More specifically, we build a prepayment model here for predicting the likelyhood of residential mortgage prepayments for loans guaranteed by Fannie Mae. The same model can be used to predict prepayments on loans guaranteed by Freddie Mac, because they are very similar, but not Ginnie Mae loans, which are somewhat different and require a separate model.

For more information about this project please, see Proposal.pdf, which contains more of the background information, problem statement, data description, and our approach to model building.

Files included

  1. Proposal.pdf

    Describes the problem, gives background information, and outlines data structure and solution roadmap.
  2. pools_dataset_builder.ipynb

    This can only be run by the author. It builds a dataset used in the model from raw data files, which the author has downloaded from a vendor. You won't be able to run this notebook unless you have access to those files, but running this notebook is not at all required as all the data is provided in this project. The notebook, however, shows how the data is cleaned and NAs are filled.
  3. ./data

    Directory which contains a series of csv files containing the data required to fit and avaluate the model.
  4. model_fitting.ipynb

    This is the main notebook of the project. It is runnable. It contains all of the work done for data exploration, model fitting, and model evaluation.
  5. ProjectReport.pdf

    A project report required by the Udacity capstone project rubric. It contains the summary of the project and results.
  6. nn-ppm-from-csv.h5

    If you want to avoid spending time fitting your own model while executing model_fitting.ipynb, see above, you can simply load the already fitted model from this file.

Core libraries used in this project

  1. Pandas, Numpy
  2. Matplotlib, Seaborn
  3. Tensorflow, Keras

neural-network-prepayment-model's People

Contributors

yurit04 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.