Question: This part is the most complex one in this project, so please make sure to read it carefully. You will write a function malicious _

This part is the most complex one in this project, so please make sure to read it carefully.
You will write a function malicious_detection(time_dif, threshold) that returns a list predicted; containing 0 normal (normal transactions) or 1 detected (malicious transactions).
The input parameters:
time_dif: This is the 1st list of timestamp differences retrieved from task 4, the card_statistics() function.
threshold: This is the threshold for the timestamp difference values you will use for filtering outliers (i.e., malicious). The default value is set to 0.3(if below the threshold then malicious).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!