GithubHelp home page GithubHelp logo

secretlyblu / classification_fraud_detection Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 108 KB

Fraud Detection Model using Python's Jupyter

Jupyter Notebook 100.00%
python jupyter-notebook fraud-detection banking modeling

classification_fraud_detection's Introduction

Classification_Fraud_Detection

Fraud Detection Model using Python's Jupyter

Source Data

Credit Card Fraud Data

Question: We want to catch fraudulent transactions, can we build a model to do so?

This model was coded in Jupyter notebook. The models used were Local Outlier Factor & Isolation Forest. Testing was done using random sampling of 10% of the data.

Results

The accuracy for the model was 99.75% which would be considered very good. However, we see that it is missleading because we have so much more non fraudulent data that the models predicted perfectly. This outweighs the the fact that the model did poorly on predicting fraudulent activity.

The Isolation Forest performed better than the Local Outlier Factor, however, error rates were still significatly high. The total number of fraudulent cases in this sample was 49. The Isolation Forest model had a recall of 29%. That means the model was able to correctly identify 29% of all fraudulent cases or a total of 14 cases. The model had a precison of 28%, meaning that when it predicted a transaction was fraudulent it was correct 28% of the time.

Business Insights

Trillions of online transactions happen everyday. Unfortunatly the big wide web is a breeding ground for fraudualnt activity. Businesses like credit card providers and traditional banking need a way to secure thier clients money. By flagging a transaction as fraudlant, banks can prevent addtional transactons before they happen, avoiding loss to millions. These models would needed more tweaking of parameters because as of now if presented to a client they would not be very happy. Customers would be called 70% of the time to verify if a transaction was fraudulent.

classification_fraud_detection's People

Contributors

secretlyblu 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.