Giter VIP home page Giter VIP logo

fraudulent-transaction-detection's Introduction

Fraudulent Transactions Detection

AIM

Develop a model for predicting fraudulent transactions for a financial company and use insights from the model to develop an actionable plan.

DATASET

https://www.kaggle.com/datasets/miznaaroob/fraudulent-transactions-data

CONTENT

Data for the case is available in CSV format having 6362620 rows and 10 columns.

WHAT I HAD DONE

First I imported all the required libraries and dataset for this project. Then I did some EDA to find which mode of transaction results into most fraudulent transactions. Then I worked throught to treat any inconsistency in the data. Then I proceeded to build the model. I worked two different models and compared results from both to select mode appropriate one for this project. First I used a logistic regression model to classify Fraudulent and Non fraudulent transactions. Next I worked with Random Forest classifier model to amp up the accuracy which resulted in some improvement from the previous LR moel. At the end I observed an accuracy of 99.97.

MODELS USED

The models are:

  1. Logistic Regression
  2. Random Forest Classifier

HOW TO RUN

Upload kaggle api key file and fraud_transaction_detection.ipynb file on colab and just run the code.

LIBRARIES NEEDED

  • Opendatasets (for downloading the dataset)
  • Pandas - for data analysis
  • Numpy - for data analysis
  • matplotlib - for data visualization
  • seaborn - for data visualization
  • itertools - for data analysis

CONCLUSION

I was successfully able to find the most accurate model to detect fraudlent transactions.

Tanish Khandelwal

Connect with me on Linkedin: https://www.linkedin.com/in/tknishh/

Check out my Github profile: https://github.com/tknishh

fraudulent-transaction-detection's People

Contributors

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