Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Predict if a transaction is fraudulent or not. The file transactions.csv contains all transactions. The file solely contains numerical input variables resulting from a

Predict if a transaction is fraudulent or not. The file "transactions.csv" contains all transactions. The file solely contains numerical input variables resulting from a PCA transformation. Original features cannot be supplied due to privacy concerns. The main components derived with PCA are features V1, V2,..., V28; the only features that have not been changed with PCA are 'Time' and 'Amount'. The 'Time' feature contains the number of seconds that have passed between each transaction and the first transaction in the dataset. The feature 'Amount' represents the transaction Amount; this feature can be utilised for cost-sensitive learning, for example. The answer variable is called 'Class,' and it has a value of 1 if there is fraud and 0 otherwise.
Examine the dataset. Do you believe the dataset is balanced? Evaluate and compare the XGBoost and RandomForest algorithms without and after data balancing with SMOTE. For hyperparameter optimisation, you can compare performance using the F1 score and apply 5-fold cross-validation.
Which of the four situations (Random Forest, XGBoost, Random Forest + SMOTE, XGBoost + SMOTE) performs the best? Discuss.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions

Question

Describe the sources of long term financing.

Answered: 1 week ago