<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Everett Wetchler on Medium]]></title>
        <description><![CDATA[Stories by Everett Wetchler on Medium]]></description>
        <link>https://medium.com/@wetchler?source=rss-7364fbff806b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tv-_8zQPReb6Lp77Ok5FoA.jpeg</url>
            <title>Stories by Everett Wetchler on Medium</title>
            <link>https://medium.com/@wetchler?source=rss-7364fbff806b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:09:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wetchler/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Announcing our first product to bridge the divide between police and communities]]></title>
            <link>https://medium.com/bayesimpact/announcing-our-first-product-to-bridge-the-divide-between-police-and-communities-5bb1c6b8de86?source=rss-7364fbff806b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bb1c6b8de86</guid>
            <category><![CDATA[police]]></category>
            <category><![CDATA[justice]]></category>
            <dc:creator><![CDATA[Everett Wetchler]]></dc:creator>
            <pubDate>Thu, 22 Sep 2016 07:00:00 GMT</pubDate>
            <atom:updated>2018-05-14T21:27:32.036Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, with the California Department of Justice, we launched URSUS — an all-digital police use of force data collection system. This will generate the first statewide dataset on police use of force in the country. It is the first step in our larger <a href="http://www.bayesimpact.org/focus/justice">Bridge</a> initiative to improve police-community relations through transparency.</p><ul><li>The app is <a href="https://github.com/bayesimpact/bridge-uof">open source</a> and ready to port to other states and countries.</li><li>You can play with a <a href="http://ursusdemo.doj.ca.gov/">demo version of URSUS</a></li><li>You can play with a <a href="http://demo-bridge-uof.bayesimpact.org/">demo version of the generic app</a>.</li><li><a href="http://www.bayesimpact.org/focus/justice">Click here</a> to read more about Beacon Labs’s work in the criminal justice space.</li></ul><h3>About the app</h3><p>First, we define a data standard for police use of force incidents. While “data standard” may be among the least-exciting phrases ever spoken, it’s both the “data” (information you can use to make better decisions) and “standard” (so all your data is usable) together that have been missing in policing. The specific items we collect are based on dozens of interviews with law enforcement and extensive collaboration with the California Department of Justice.</p><p>Second, the app gently walks users (law enforcement officers and employees) through inputting this data in a way that is intuitive and decidedly un-painful. Our police have more important things to do than fiddle with kludgy software, so we make the app as smooth and pleasant a task as data entry can realistically be.</p><p>Administrators at law enforcement agencies (LEAs) can do analysis of their agency’s incidents (basic bar charts and pivot tables) to form a better understanding of their agency’s work.</p><p>Finally, at the end of the year, data is submitted to the state, where it will be compiled and released to the public in complete, raw format. The DOJ can track who has and has not completed their reporting and holistically understand the state’s data as a whole.</p><p>Data collection is not a glamorous task, but it’s the badly-needed plumbing in the construction of a more open, accountable, and smart criminal justice system.</p><h3>What we sent the press</h3><p>As more violent encounters between police and civilians occur across the country, the need for better data in policing has never been more clear. According to the FBI, only 3% of the nation’s 18,000 departments report police use of force. There are no federal mandatory reporting requirements or even a unified definition of “use of force.” The lack of data undermines the ability of the public to review the activities of their police and ultimately widens the trust gap between civilians and police.</p><p>“As a country, we must engage in an honest, transparent, and data-driven conversation about police use of force,” said Attorney General Harris. “I am proud that California continues to lead the nation in the adoption of technology and data to improve our criminal justice system and keep our streets safe.”</p><p>With the launch of URSUS, California will be the first state in the nation to make comprehensive police use of force data available to the public. URSUS implements Assembly Bill 71 (AB71), the first legislation in the country to mandate law enforcement to collect and report police “use of force” data throughout California. The data will be posted on California’s criminal justice data portal, OpenJustice, in early 2017.</p><p>URSUS, named after the bear on the California flag, is a web-based tool that allows law enforcement agencies in California to digitally collect and report uses of force that results in serious bodily injury or death of a civilian or peace officer. The tool replaces error-prone paper forms and takes the entire process digital: URSUS streamlines data reporting for agencies through the application’s automated error checking and dynamic screening questions. The application also provides a suite of analytical tools for agencies to track and understand incidents, including features such as interactive charts and pivot tables. Upon launch, the tool will be made available to all 800 police departments in California. A public demonstration of the tool is available at <a href="https://ursusdemo.doj.ca.gov./">https://ursusdemo.doj.ca.gov.</a></p><p>URSUS was developed through a first-of-its-kind partnership between CA DOJ and Beacon Labs. The partnership combined Beacon Labs’s expertise in agile software development and CA DOJ’s deep knowledge of law enforcement. The development team ran CA DOJ’s first user research studies with over a dozen law enforcement agencies. Due to the unique collaboration between CA DOJ and Beacon Labs, URSUS was developed in less than 8 months and at no cost to taxpayers, by leveraging Beacon Labs’ philanthropic support.</p><p>“At Beacon Labs, we believe technology combined with policy can be a powerful lever for making change, and in policing, that change begins with better data,” said Eric Liu, US Executive Director of Beacon Labs. “Our collaboration with CA DOJ on the development and launch of URSUS is an important step in addressing this issue for both California and the country.”</p><p>Momentum is growing across the nation to make comprehensive police data available to the public. National legislation such as the PRIDE Act, co-sponsored by Senator Barbara Boxer of California and Senator Cory Booker of New Jersey, hope to create a federal requirement similar to AB71 by mandating police use of force data reporting in the US.</p><p>“The first step toward fixing a problem is to fully understand it, and improving data collection will help us strengthen accountability and save lives on all sides. I commend California Attorney Kamala Harris and everyone involved in this important project,” said Senator Barbara Boxer (D-CA).</p><p>“The PRIDE Act, which I co-sponsored with Senator Boxer, attempts to bring the same common sense ideas found in California’s AB 71 to the rest of the nation. By collecting police use of force data, the PRIDE Act and AB 71 are good first steps in making police practices more transparent. By using innovative technology and data to shed a spotlight on police practices that work and do not work, California’s AB 71 is an important precedent for the country,” said Senator Cory Booker (D-NJ).</p><p>Beacon Labs will also make the codebase of URSUS open source to enable other states and the federal government to freely adapt and deploy the software. “With URSUS,” said Eric Liu, “we’re showing that simple and open web technologies can enable accurate and cost-effective police data collection at a massive scale. We hope our approach will inspire other states and the country to act, and make critical police data, such as use of force, available to the public.”</p><p><em>Originally published at </em><a href="https://www.bayesimpact.org/stories/wp-content/uploads/2016/09/bayes_bridge_title_1600px.png"><em>www.thebeaconlabs.org</em></a><em>.</em></p><p>Editor’s note: This project was executed in collaboration with <a href="http://bayesimpact.org/">Bayes Impact</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bb1c6b8de86" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bayesimpact/announcing-our-first-product-to-bridge-the-divide-between-police-and-communities-5bb1c6b8de86">Announcing our first product to bridge the divide between police and communities</a> was originally published in <a href="https://medium.com/bayesimpact">Bayes Impact</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Defending Credit for the World’s Poor with Data Science]]></title>
            <link>https://medium.com/bayesimpact/defending-credit-for-the-worlds-poor-with-data-science-43e3cf862e41?source=rss-7364fbff806b------2</link>
            <guid isPermaLink="false">https://medium.com/p/43e3cf862e41</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[credit]]></category>
            <dc:creator><![CDATA[Everett Wetchler]]></dc:creator>
            <pubDate>Tue, 14 Oct 2014 07:00:00 GMT</pubDate>
            <atom:updated>2017-09-21T22:15:40.335Z</atom:updated>
            <content:encoded><![CDATA[<p>As a Westerner, getting a credit card is only slightly more complicated than tying my shoes. My world is raining with opportunities to borrow money to go to school, open a store, consolidate loans, or buy an iPhone 6. For poor global citizens, though, the game is different. In fact, there isn’t a game. A small business loan in developing countries usually requires a bank account (which <a href="http://www.gallup.com/poll/127901/few-sub-saharan-africa-money-bank.aspx">80% of sub-saharan Africans do not have</a>), carries exorbitant interest rates (50%+), and are otherwise unreachable or unaffordable to the majority. The reality is that it’s simply not profitable for lending agencies to accommodate these high-risk, small-scale borrowers.</p><p>The irony is that these are precisely the people whose lives can be most dramatically improved by a small amount of liquidity. Their hardship is enormous, and emerging from it is often complex or impossible due to systematic constraints (<a href="http://en.wikipedia.org/wiki/Poverty_trap">poverty traps</a>). Enter the world of microfinance, where nonprofit agencies like Kiva and Grameen seek out and create loans for those in the greatest need. With a small amount of cash, these industrious borrowers seek to start small businesses and pull themselves out of poverty. Microfinance loans may not be the best ROI, but in terms of human impact, the dollars are well invested (<a href="http://www.gatesnotes.com/About-Bill-Gates/Catalytic-Philanthropy-Innovating-Where-Markets-Wont">catalytic philanthropy</a>).</p><p>For the past few months, Bayes Impact worked with one such organization and novel player in the microfinance game,<a href="https://www.zidisha.org/">Zidisha</a>. Zidisha provides peer-to-peer loans from individual (usually US) lenders directly to borrowers in Africa and Asia. Borrowers sign up on the Zidisha website (typically from an internet cafe) and in a matter of days can have fresh cash in their mobile money accounts (<a href="http://en.wikipedia.org/wiki/M-Pesa">M-Pesa</a>). By connecting borrowers and lenders directly, Zidisha is able to avoid involving intermediary agencies that add cost, overhead, and time delay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FD8AWS2Z3mNWWHy_.png" /></figure><h4>The Problem</h4><p>The hard part of lending money is (surprise!) getting paid back. Because Zidisha does not employ a partner agency on the ground to vet candidates, it’s difficult to tell a reliable borrower from a negligent one solely from their online application. Zidisha combats this by requiring a valid Facebook account, local referrals, and a range of other criteria, but still a substantial proportion of first-time loan applicants end up paying nothing back. This is an especially bad experience for lenders: it’s one thing if you loan money to a person who falls into hardship and only partially repays you, but it’s entirely different if someone takes your generous loan and runs away. These “fraudsters” are a threat to the faith of lenders in the institution as a whole.</p><p>Bayes Impact undertook the task of creating a model to predict which borrowers were likely to completely skip town with their loan money. Being a complete-solution-driven organization, we also worked with their development team to create a serving solution that completely integrates borrower scoring and into their existing workflow.</p><h4>The Dataset</h4><p>Zidisha has historical data of borrower applications and repayment behavior over their 5 year existence. This includes information about all borrowers who applied, loans that were disbursed and at what interest rates, borrower repayment performance, and borrower default. From this we need to model repayment based on borrower information and loan application details.</p><p>We defined “fraud” as any loan where the borrower has repaid nothing and is at least two months past due on their first payment. While this is a simplification (as some borrowers may have been honest but simply encountered hardship early), it is meant to capture the group of loans that are most damaging to Zidisha as a whole.</p><h4>Step 1: Exploratory Data Analysis</h4><p>The best place to start is always a descriptive big-picture view. For one, this is a sanity check that our data is sound and we haven’t egregiously failed in extracting it correctly. When we have to join data from multiple sources, tables and interpret columns/keys correctly, ETL is easy to botch. Second, it’s important to confirm that we can see, in the data, the problem our client claims to have. For example, we might plot the loans over time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/0*L7cJOM-IRp1iRpX0.png" /></figure><p>The non-smoothness can be attributed to policy changes in the Zidisha application process. For example, in Q2 2013, the maximum first loan size was reduced, and Facebook linking became required. This explains the drop in new loans in that period, which quickly recovered with Zidisha’s growth. EDA helps us flag quirks in the data like this, ensuring that we ask all the necessary questions to interpret the data correctly. This is only one of a number of descriptive summary analyses we did, but it gives an idea. It was also useful to compare our numbers with <a href="https://www.zidisha.org/statistics">Zidisha’s published statistics</a> and account for any discrepancies.</p><h4>Step 2: Feature Extraction</h4><p>Model building and evaluation isn’t a completely linear process — we may loop back from model evaluation to feature extraction to EDA and back again. That said, we do start with an initial feature set, and add more later as we think of ideas. While for security reasons we can’t share the exact features we used in the model, some general areas we considered were:</p><ul><li>Loan amount, interest rate, and repayment timeline</li><li>Geographical features</li><li>Information from the self-description and business description</li><li>Relationships with other Zidisha borrowers</li></ul><h4>Step 3: Model Evaluation</h4><p>There are many ML algorithms to apply to our data, and many possible parameters and tweakings of each algorithm. In comparing, we need a clear sense of which classifier is “best” — a title that is highly dependent on the application.</p><p>The most obvious thing to do is to plot ROC curves comparing the classifiers’ performance on a held-out test set. (Well, actually the average performance of each classifier over a 5-fold cross validation of the training set; we save the test set purely for evaluation before launching, so it has no influence on model selection.) Here’s a comparison of two of our final model candidates — both random forests using different features and parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ICQP9UB8t4f2j9X-.png" /></figure><p>In this case, one model is clearly better at all thresholds. If, instead, the curves cross (and especially if they have similar AUCs), the “best” one is very dependent on how the model will be used.</p><p>Model stability over its range is also important. If we predict that an applicant has (say) a 20% risk of fraud, then we would like to see 20 fraudsters for every 100 applicants given that score (no more, no less). Same goes for all other predicted values. We can visualize this like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/0*T1hfzLaczwGVAupb.png" /></figure><p>The ideal curve would be a diagonal line. Ours does reasonably well, but we can see that it is a bit biased, particularly in the extremes. This may or may not be an issue depending on the expected operating threshold (see below).</p><h4>Step 4: Determining the Objective</h4><p>We have our final model, it looks reasonable, but we’re not done. Our goal was never to produce a good AUC score — it was to help Zidisha’s organizational objectives. Their goal is to allow or deny a loan based on risk score. But at what risk score do we deny people a loan, and why?</p><p>If this were a normal lending agency, we would (roughly) just allow borrowers that we expect to be profitable (e.g. do some math based on interest rate and default probabilities). However, Zidisha is looking to help people in need, not produce financial return. These loans are not gifts, though, and it’s not acceptable to never be repaid.</p><p>Zidisha has two interests that we have to trade off:</p><ol><li>Give loans to as many good people as possible.</li><li>Reduce fraud as much as possible.</li></ol><p>In the extreme, we can accomplish either. With a very lenient threshold, everyone gets a loan, but fraud persists unabated. With a very stringent threshold, fraud is squashed, but nobody gets a loan. The in-between is what’s interesting.</p><p>As an outside agency, we can’t (and shouldn’t) make this decision for Zidisha. However, it IS our job to inform them well enough to make it. The ROC curve is abstract and hard to interpret for this purpose, so we translated its information into a plot that directly measures the trade-off at every possible threshold value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*SGgrhWjBQVLfljD-.png" /></figure><p>We can choose any point on this curve. The bottom-left represents a threshold where everyone gets a loan. All honest people still get their loans, but so do all the fraudsters. Neither is reduced (hence 0%, 0%). The top-right is the opposite — nobody gets a loan. We successfully prevent 100% of fraud, woohoo! Unfortunately, we also block every honest person who wants a loan. Sad face.</p><p>The intermediate points show what happens if we only give loans to applicants with risk of fraud below X% (where we vary X from 0 to 100, drawing this line). For example, with one threshold, we can reduce fraud by 20% but also block 5% of honest borrowers. At another threshold, we can reduce fraud by 50% and block about 20% of honest borrowers. Which is better?</p><p>It’s hard to say, as we’re trading apples for oranges. In parentheses, the axes also show the raw number of people associated with each percentage. So moving from a 20% fraud reduction to 50% will block about 200 additional fraudulent loans and also 200 honest loans. Is that okay? What’s the ideal point? When it’s not dollars-vs-dollars, this is a judgment call. Before deploying, someone (on the client side) has to make the hard decision of how many apples are worth an orange.</p><h4>Step 5: Productization</h4><p>The final question is to how to go from this model (running in an ipython notebook on a laptop) to a live scoring system in Zidisha’s production system. We follow projects through until they’re live; handing off some model parameters or charts is not where our work stops.</p><p>At first we built a basic cloud API for them. (We spun up a single-core EC2 instance with a light Flask/gunicorn webserver handling JSON requests/responses, redis for message queueing, and a custom serving process keeping the model hot and reading/writing scoring requests to the queue.) After discussing who would maintain it, we realized that with Zidisha’s current modest throughput (tens of applicants per day, so &lt;&lt; 1 QPS), the whole thing was overkill. Waiting a minute to score an application is not a big deal, so we simply wrote a python script for Zidisha to run locally for each new applicant. The script that loads the model from disk, computes the borrower features from a series of db queries, scores the borrower, and writes the scoring results to another table whose schema we designed. It turns out that sometimes (usually, even), fancy architectures are just not required.</p><h4>Further Thought</h4><p>We talked about trade-off between fraud prevention and giving loans to people in need, but there is always more complexity. For example, in addition to loan availability there is also the question of capital availability (how many loans can be funded?). If capital is especially tight on a given month and only half the loans would be able to get funded, then it’s OK to tighten the application approvals, ensuring that the limited funds are directed to the least-risky borrowers. Having such a dynamic threshold adds extra challenge, but we need to consider all real-world facets of the problem we’re solving.</p><h4>Conclusions</h4><p>There is no “typical” Bayes project, but this one spans a broad range of things we might need to do. We researched the relevant domain of the social problem in question (microfinance, poverty, credit risk, fraud). We rolled up our sleeves to collect, extract, and convert the client’s dataset into a clean and intelligible format. We brainstormed and tested different features, algorithms, and parameters to find the most appropriate model for our use case, carefully evaluating our performance. We translated the model’s value into real business concerns for the client, making critical decisions about its use. Somewhere in there we took a break and ate ice cream. Finally, we helped with the surgery of getting this model into a live, beating-heart system until it breathed air.</p><p>Social problems are messy, complicated, and subjective to measure, but that’s exactly why they’re so crucial to work on. Many social issues may never be fully “solved,” but by amassing teams of talented and deeply motivated individuals, we can get surprisingly far.</p><p><em>Originally published at </em><a href="https://www.bayesimpact.org/stories?name=defending-credit-for-the-worlds-poor-with-data-science"><em>www.bayesimpact.org</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43e3cf862e41" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bayesimpact/defending-credit-for-the-worlds-poor-with-data-science-43e3cf862e41">Defending Credit for the World’s Poor with Data Science</a> was originally published in <a href="https://medium.com/bayesimpact">Bayes Impact</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>