Where to build the next branch

Beehive Federal Credit Union

Python
SQL
Clustering
Census data
Foot-traffic and census data plus weighted k-means clustering to recommend five regions for new branches.

Partner Beehive Federal Credit Union

Semester Fall 2022

Type Machine learning

Result: five recommended expansion regions: Salt Lake City, Idaho Falls / Shelley / Blackfoot, Cedar City / St. George, Boise, and Twin Falls / Burley. The code and parsed data are public on GitHub.

The problem

If the credit union opened five new branches, where should they go to reach the most people?

What students built

The team pulled SafeGraph foot-traffic data (how many people visit a place, and where they come from) with SQL and asynchronous Python from Databricks, then joined it to U.S. Census data. They split the data into census blocks and tracts, tested several weighting heuristics, and ran weighted k-means clustering with scikit-learn to find the best centers.

Weighted census points and the cluster centers the model chose.

Census data mapped across Idaho before clustering.

Along the way they processed more than 1.2 million lines of JSON and 130,000 lines of CSV.

Team

Evan Crenshaw, Ephraim Henrichsen and Michael Cabatingan.