Fraud Detection in R
Course facts
- Payment: Free Preview (Paid Upgrade)
- Learning style: Self-paced, start anytime
- Format: Text & Interactive
- Video access: Streaming Only
- Before you start: Unsupervised Learning in R; Supervised Learning in R: Classification
DataCamp details
- Chapters: 4
| Course Details | ||||||||
|---|---|---|---|---|---|---|---|---|
|
||||||||
| Languages | ||||||||
|
||||||||
| Outcomes | ||||||||
|
||||||||
| Price & Terms | ||||||||
|
||||||||
| Technical | ||||||||
|
||||||||
| Specification | ||||||||
|
||||||||
Learn to flag likely fraud in R using timing features, network analytics, SMOTE resampling, Benford’s Law and robust outlier tests.
Spotting fraud in R here means turning past cases into signals that point to new ones. You derive features from when and how often accounts make payments, trace links between accounts in a transaction network, and test values against Benford’s Law and robust outlier measures. Fraud is rare, so the data is badly skewed, and each kind of misclassification carries its own cost. Resampling methods such as SMOTE keep a detection model from being biased toward the legitimate majority.
What You Will Achieve
- Flag suspicious payments by their timestamps and by how often and how recently an account transacts
- Score transactions with a relational neighbor classifier and network measures such as degree and betweenness
- Rebalance skewed fraud data with over-sampling, under-sampling or SMOTE before training a detection model
- Check whether figures conform to Benford’s Law and find unusual values with robust z-scores
Program Overview
Fraud Basics and Time, Frequency and Recency Features
Defines fraud and the cost of letting it go undetected, then turns payment times and account activity into features that mark suspicious transactions.
- A formal definition of fraud and the cost of missed cases
- Circular histograms of payment times
- Frequency and recency features for one or many accounts
Social Network Analytics for Fraud
Treats accounts and transactions as a network and uses homophily and network metrics to judge how likely a transaction is fraudulent.
- Visualizing networks and node attributes
- Homophily and relational versus non-relational models
- Closeness and other network metrics added as features
Imbalanced Classes, Benford’s Law and Robust Statistics
Handles the skew of rare fraud cases with sampling methods, then checks data against Benford’s Law and detects outliers with robust statistics.
- Random over-sampling, random under-sampling and SMOTE
- Building a detection model and weighing its true cost
- Benford’s Law on census, fire insurance and payments data
- Univariate and multivariate outlier detection
Certificate Awarded (Paid)
Job Outlook
These methods apply wherever payment, transaction or insurance claims data has to be screened for fraud, a need the course places in most industries.
Good for: R analysts who want to screen payment, transaction or insurance claims data for fraud with statistical, network and resampling methods.
Keep in mind: All work is in R, and the emphasis falls on features, resampling and statistical checks; building the detection model itself comes up late in the sampling chapter.
Bottom line: It covers four separate ways to catch fraud in R, putting homophily-based network scoring and Benford’s Law beside SMOTE and resampling for skewed data.
Frequently Asked Questions
What does the network chapter do with homophily?
You look for homophily in a transaction network, visualize node attributes, and compare relational and non-relational models. A relational neighbor classifier then infers how likely a transaction is fraudulent from the entities it connects to, and network metrics become extra model features.
Which data sets are tested against Benford's Law?
The first-digit law is introduced and checked for conformity on census data. You then apply the same conformity tests to fire insurance claims and to a payments data set, looking for figures that deviate from the expected digit pattern.
Are the fraud data sets real or simulated?
Both kinds appear. The course works with artificial data sets and with real ones from a wide variety of fraud applications, and each method is applied to them in R exercises.
How does the course deal with the cost of misclassifying fraud?
Misclassification costs are treated as one of the two main problems in supervised fraud detection. The opening chapter looks at the cost of not detecting fraud, and the sampling chapter closes by weighing the true cost of a detection model you build.
User Reviews
No reviews yet. Be the first to review this course.
Write your review Cancel reply
You must be logged in to post a review.
Reviews can only be posted by registered learners. Log in, then you will return here to post.
Please log in to report a problem with this page.


There are no reviews yet.