GithubHelp home page GithubHelp logo

leodrivera / fraud-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avinashsingh786/fraud-analysis

0.0 0.0 0.0 17.44 MB

Insurance fraud claims analysis project

License: MIT License

Python 100.00%

fraud-analysis's Introduction

Fraud Analysis

A project on fraud analysis of insurance claims.

Requirements

- Python3
    - mimesis     4.1.2 (elizabeth is no longer available)
    - faker       5.0.1
    - matplotlib  3.2.0
    - numpy       1.19.1
    - pandas      1.1.5
    - sklearn     0.0
    - pydotplus   2.0.2
    - openpyxl    3.0.5
- Grahviz
    - Windows -> https://graphviz.org/download/
    - Unix -> sudo apt-get install graphviz

Note: This repository isn't maintained often, use at your own discretion. Error handling was not a priority when scripting.

Installation

pip install -r requirements.txt

After the required packages are installed you can simply run the scripts from the phases below.

Phases

Create Database

Create the database with meaningful random data.

python createDatabase.py

Cleaning the data

Cleaning invalid data/rows that does not meet a defined criteria. Fills in data using samples or a mean/median.

python cleaning.py

EDA

Exploratory Data Analysis - understand the data and data types as well as some statistics and graphing to see the distribution, correlation, anomalies and outliers of the data.

python eda.py

PPDM

Privacy Preserving Data Mining - suppress, generalize, anatomization, perturbation, categorize, k-anonymity is done in order to preserve privacy so that sensitive attributes cannot identify a person without having the entire dataset. This makes the data safer in an instance the data is leaked, it makes it harder to impersonate someone.

python ppdm.py

Machine learning

Machine leaning was used to detect fraudulent insurance claims. This uses a simple decision tree classifier and was trained with 70/30 train/test ratio. The accuracy of the prediction was ~99% with 73117 training elements and 18280 testing elements. The tree can be seen in insurance.pdf.

python machine_learning.py

fraud-analysis's People

Contributors

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