MichaelGelshtein commited on
Commit
17d14fb
·
verified ·
1 Parent(s): f26e31d

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -9
README.md CHANGED
@@ -4,6 +4,11 @@ task_categories:
4
  - tabular-classification
5
  size_categories:
6
  - 100K<n<1M
 
 
 
 
 
7
  ---
8
 
9
  # PaySim Financial Fraud Detection — EDA & Dataset Analysis
@@ -65,11 +70,11 @@ This project investigates whether patterns in transaction characteristics—part
65
 
66
  Applied **Interquartile Range (IQR) method** on `amount` feature. **5,358 outliers detected** (5.4% of data). Decision: retained all outliers because fraud transactions often occur at extreme values.
67
 
68
- ![Outlier Detection — Amount Distribution](plots/eda_outlier_boxplot.png)
69
 
70
  Applied **log1p transformation** to `amount` → `amount_log` for cleaner visualization.
71
 
72
- ![Log-Transformed Amount Distribution](plots/eda_log_distribution.png)
73
 
74
  ### 3. Descriptive Statistics
75
 
@@ -79,19 +84,19 @@ Calculated summary statistics by fraud status. Key insight: fraud transactions a
79
 
80
  Generated correlation heatmap of all numerical features to identify relationships between balance features and fraud status.
81
 
82
- ![Correlation Heatmap](plots/eda_correlation_heatmap.png)
83
 
84
  ### 5. Transaction Type Distribution
85
 
86
  Visualized how transactions are distributed across all 5 types.
87
 
88
- ![Transaction Type Distribution](plots/eda_transaction_type_pie.png)
89
 
90
  ### 6. Fraud by Transaction Type (Raw Count)
91
 
92
  Showed where fraud actually occurs across transaction types before normalizing for volume.
93
 
94
- ![Fraud Count by Transaction Type](plots/eda_fraud_by_type_bar.png)
95
 
96
  ---
97
 
@@ -125,7 +130,7 @@ Showed where fraud actually occurs across transaction types before normalizing f
125
 
126
  **Finding:** Yes, fraud transactions occupy the extreme upper tail of the amount distribution. The highest-value transactions show disproportionately high fraud rates, indicating that transaction magnitude is a critical risk indicator.
127
 
128
- ![Q1 — Amount Distribution by Fraud Status](plots/q1_amount_boxplot.png)
129
 
130
  **Conclusion:** Amount is a strong univariate fraud signal. Fraudsters tend to target high-value transfers to maximize stolen funds per transaction.
131
 
@@ -138,7 +143,7 @@ Showed where fraud actually occurs across transaction types before normalizing f
138
  - Legitimate transactions show account depletion in only **~0.3% of cases**
139
  - This is a massive logical inconsistency: legitimate users rarely empty accounts, but fraudsters consistently do
140
 
141
- ![Q2 — Account Drain Rate: Fraud vs Legitimate](plots/q2_account_drain.png)
142
 
143
  **Conclusion:** Balance depletion is one of the strongest fraud indicators in the dataset. This "emptying the well" behavior is a logical fingerprint of fraudulent activity — attackers maximize extraction and disappear.
144
 
@@ -151,7 +156,7 @@ Showed where fraud actually occurs across transaction types before normalizing f
151
  - PAYMENT, DEBIT, and CASH_IN have a 0% fraud rate in this dataset
152
  - Fraud is concentrated in transaction types that move money away from the original account
153
 
154
- ![Q3 — Fraud Rate (%) by Transaction Type](plots/q3_fraud_rate_by_type.png)
155
 
156
  **Conclusion:** Transaction type is a critical categorical predictor. A simple rule-based filter (flag TRANSFER & CASH_OUT only) would catch 100% of fraud with minimal false positives.
157
 
@@ -166,7 +171,7 @@ Showed where fraud actually occurs across transaction types before normalizing f
166
  - Very Large (>100K): ~1.08% fraud rate
167
  - **Clear monotonic increase:** Larger amount buckets have exponentially higher fraud risk
168
 
169
- ![Q4 — Fraud Rate (%) by Transaction Amount Range](plots/q4_fraud_by_amount_range.png)
170
 
171
  **Conclusion:** Amount binning creates a simple but effective fraud scoring feature. The largest transactions contain ~8x more fraud than the smallest, making amount a strong standalone predictor.
172
 
 
4
  - tabular-classification
5
  size_categories:
6
  - 100K<n<1M
7
+ configs:
8
+ - config_name: default
9
+ data_files:
10
+ - split: train
11
+ path: paysim_fraud_cleaned_sample.csv
12
  ---
13
 
14
  # PaySim Financial Fraud Detection — EDA & Dataset Analysis
 
70
 
71
  Applied **Interquartile Range (IQR) method** on `amount` feature. **5,358 outliers detected** (5.4% of data). Decision: retained all outliers because fraud transactions often occur at extreme values.
72
 
73
+ ![Outlier Detection — Amount Distribution](https://huggingface.co/datasets/MichaelGelshtein/fraud-detection-eda/resolve/main/plots/eda_outlier_boxplot.png)
74
 
75
  Applied **log1p transformation** to `amount` → `amount_log` for cleaner visualization.
76
 
77
+ ![Log-Transformed Amount Distribution](https://huggingface.co/datasets/MichaelGelshtein/fraud-detection-eda/resolve/main/plots/eda_log_distribution.png)
78
 
79
  ### 3. Descriptive Statistics
80
 
 
84
 
85
  Generated correlation heatmap of all numerical features to identify relationships between balance features and fraud status.
86
 
87
+ ![Correlation Heatmap](https://huggingface.co/datasets/MichaelGelshtein/fraud-detection-eda/resolve/main/plots/eda_correlation_heatmap.png)
88
 
89
  ### 5. Transaction Type Distribution
90
 
91
  Visualized how transactions are distributed across all 5 types.
92
 
93
+ ![Transaction Type Distribution](https://huggingface.co/datasets/MichaelGelshtein/fraud-detection-eda/resolve/main/plots/eda_transaction_type_pie.png)
94
 
95
  ### 6. Fraud by Transaction Type (Raw Count)
96
 
97
  Showed where fraud actually occurs across transaction types before normalizing for volume.
98
 
99
+ ![Fraud Count by Transaction Type](https://huggingface.co/datasets/MichaelGelshtein/fraud-detection-eda/resolve/main/plots/eda_fraud_by_type_bar.png)
100
 
101
  ---
102
 
 
130
 
131
  **Finding:** Yes, fraud transactions occupy the extreme upper tail of the amount distribution. The highest-value transactions show disproportionately high fraud rates, indicating that transaction magnitude is a critical risk indicator.
132
 
133
+ ![Q1 — Amount Distribution by Fraud Status](https://huggingface.co/datasets/MichaelGelshtein/fraud-detection-eda/resolve/main/plots/q1_amount_boxplot.png)
134
 
135
  **Conclusion:** Amount is a strong univariate fraud signal. Fraudsters tend to target high-value transfers to maximize stolen funds per transaction.
136
 
 
143
  - Legitimate transactions show account depletion in only **~0.3% of cases**
144
  - This is a massive logical inconsistency: legitimate users rarely empty accounts, but fraudsters consistently do
145
 
146
+ ![Q2 — Account Drain Rate: Fraud vs Legitimate](https://huggingface.co/datasets/MichaelGelshtein/fraud-detection-eda/resolve/main/plots/q2_account_drain.png)
147
 
148
  **Conclusion:** Balance depletion is one of the strongest fraud indicators in the dataset. This "emptying the well" behavior is a logical fingerprint of fraudulent activity — attackers maximize extraction and disappear.
149
 
 
156
  - PAYMENT, DEBIT, and CASH_IN have a 0% fraud rate in this dataset
157
  - Fraud is concentrated in transaction types that move money away from the original account
158
 
159
+ ![Q3 — Fraud Rate (%) by Transaction Type](https://huggingface.co/datasets/MichaelGelshtein/fraud-detection-eda/resolve/main/plots/q3_fraud_rate_by_type.png)
160
 
161
  **Conclusion:** Transaction type is a critical categorical predictor. A simple rule-based filter (flag TRANSFER & CASH_OUT only) would catch 100% of fraud with minimal false positives.
162
 
 
171
  - Very Large (>100K): ~1.08% fraud rate
172
  - **Clear monotonic increase:** Larger amount buckets have exponentially higher fraud risk
173
 
174
+ ![Q4 — Fraud Rate (%) by Transaction Amount Range](https://huggingface.co/datasets/MichaelGelshtein/fraud-detection-eda/resolve/main/plots/q4_fraud_by_amount_range.png)
175
 
176
  **Conclusion:** Amount binning creates a simple but effective fraud scoring feature. The largest transactions contain ~8x more fraud than the smallest, making amount a strong standalone predictor.
177