Name: financial-marketplace-referee
Owner: Bayes Hack 2016
Description: #commerce #DOC Financial Marketplace Referee
Forked from: bayeshack16-superawesometeam/bayeshack16
Created: 2016-04-24 16:05:25.0
Updated: 2016-10-18 03:50:15.0
Pushed: 2016-04-26 17:02:39.0
Size: 62049
Language: Jupyter Notebook
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The Consumer Financial Protection Bureau (CFPB) publishes a public consumer complaint database consisting of complaints relating to financial services products and companies. Unscrupulous companies sometimes take advantage of consumers through predatory or discriminatory product offerings and targeting, leading to the consumers lodging complaints against these products and companies to the CFPB.
By enriching the consumer complaint dataset with population demographic statistics sourced from the American Community Survey, our research shows that there exist notable relationships between companies that have received complaints from those geographical regions with the largest minority populations (on the 5-digit zipcode granulatity) and the companies that are eventually charged with discriminatory product offerings.
Most notably, we show that our analysis can help identify companies that possibly offer predatorial, fraudulent, and racially discriminatory financial products. This can help influence policy and investigation decisions by financial regulatory bodies, and help consumers get better access to data about the suspiciousness of a financial vendor.
Financial Marketplace Referee is an application toolset that performs analysis on the latest CFPB consumer complaint database and ASR zipcode demographic statistics to inform the user of companies that are suspected to be involved in financial foul play.
There are two analysis modules that can be executed:
Each of these modules allow the user to ask two questions:
First, clone the repository locally:
t clone https://github.com/bayeshack16-superawesometeam/bayeshack16.git
Next, install fmr:
thon setup.py install
Finally, enjoy!
$ python runner.py
to generate a single csv file with demographic information for each zipcode. (Example outputs are available already in the output directoryTo find mortgage companies potentially discriminating against clients:
r \
--complaintsfile ./Consumer_Complaints.csv \
--demographicsfile ./zipcodes/output/zz_all_us_race.csv \
--racial \
--badcompanies \
--productline 'Mortgage' \
--pretty
Sample output:
al Analysis:
"Common Wealth Mortgage Services",
"First American Mitigators, PLLC.",
"Oceanside Mortgage Company",
...,
"Old National Bank"
To find out what JPMorgan Chase & Co. financial product lines are suspicious:
r \
--complaintsfile ./Consumer_Complaints.csv \
--volume \
--isbad \
--company 'JPMorgan Chase & Co.' \
--pretty
Sample output: ('true' means suspicious)
me Analysis:
"Debt collection": true,
"Prepaid card": false,
"Mortgage": true,
"Credit reporting": false,
"Student loan": false,
"Money transfers": false,
"Bank account or service": true,
"Credit card": true,
"Payday loan": false,
"Consumer Loan": true,
"Other financial service": true
For all options:
r -h
The following values are valid inputs for the “–productline” flag
'Student loan',
'Credit reporting',
'Credit card',
'Debt collection',
'Payday loan',
'Consumer Loan',
'Bank account or service',
'Mortgage',
'Money transfers',
'Prepaid card',
'Other financial service'