/Chi-Squared-Test-Mortgage-JSON

The data has mortgage-level data and provides information on the borrower such as race/ethnicity, gender, and loan purpose. This analysis explores the data, makes transformations, and performs chi-squared tests on variables to see if there are relationships between them.

Primary LanguageJupyter Notebook

Chi-Squared-Test-Single-Family-Mortgage-JSON

The Data is from The Exchange by Fannie Mae, a data resource provided from Fannie, one of the Government Sponsered Enterprises (GSE) of the mortgage industry. The data has mortgage-level data and provides information on the borrower such as race/ethnicity, gender, and loan purpose.

This analysis explores the data, makes transformations, and performs chi-squared tests on variables to see if there are relationships between them.

Included is a function, chi_sq_test, that takes 2 variables and a percentage. It outputs the necessary values and results of the Chi-Squared test.