Git Product home page Git Product logo

fannie-mae-loan-prediction-project's Introduction

DS Project using Fannie Mae Single-Family Historical Loan Performance Dataset

Goal: In this project, we want to predict whether or not loans acquired by Fannie Mae will become more than 90 days delinquent.

Fannie Mae acquires loans from other lenders as a way of inducing them to lend more. Fannie Mae releases data on the loans it has acquired and their performance afterwards.

Accessing the Data

  • For this project, I used Fannie Mae's Single-Family Historical Loan Performance Dataset.
  • Fannie Mae provides loan performance data on a portion of its single-family mortgage loans to promote better understanding of the credit performance of Fannie Mae mortgage loans.
  • Data can be downloaded from Fannie Mae's website.
  • Fannie Mae requires the user to register and create a unique username and password in order to access the performance data.
  • After creating the account, we can log in to Data Dynamics, and download the data we need for this project.
  • We will be downloading "Single-Family Loan Acquisition and Performance data". The data are available by quarter starting from 2000 Q1 till the latest available date (2023 Q2 as of now). For this project, we will use the data from 2020 Q1 till 2023 Q2.

Code

  • col_names.R: set column names and variable types

  • read_data.R: reads downloaded raw data sets into R dataframe

  • prep_data.R: Prepares working data by selecting relevant acquisition and performance variables of interest, renames variables, constructs derived variables required in the analysis, cleans data and saves working data.

  • predict.R: creates training and test datasets, perform predictive analysis using logistic regression

Please note that this is an ongoing analysis, and will be updated.

fannie-mae-loan-prediction-project's People

Contributors

debasmita-das-econ 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.