Answered step by step
Verified Expert Solution
Question
1 Approved Answer
iv . corr: Filter malicious transactions where Actual and Origin places are different. Calculate elementwise product between Authentication _ score and IP _ validation _
iv corr: Filter malicious transactions where Actual and Origin places are different. Calculate
elementwise product between Authenticationscore and IPvalidationscore and then
perform correlation between the resultant vector and Amount column.
Output:
printcorr
v pca: Create a N x matrix where N is number of rows in the dataset and is the number of
columns, we will call these features Transactiontype, Entrymode, Amount,
Authenticationscore, and IPvalidityscorebefore that you need to convert all
CITS
Computer Analysis
and Visualisation
Page of
string values to numerical values. You can assume there will always be Transactiontype and
use the following values ATM: EFTPOS: and Internet: and four Entrymode Magnetic
Stripe: Manual: Chip Card Read: and NFC: Calculate principal component analysis PCA
to reduce the dimensionality of data to N X
The algorithm for PCA is:
a Standardize the data along all the features subtract mean and divide by standard deviation
over the feature dimension
b Calculate the covariance matrix for the features
c Perform eigen decomposition on the covariance matrix to get eigenvectors principal
components and eigenvalues
d Sort the eigenvectors based on their eigenvalues from highest to lowest
e Select top k eigenvectors k
f Transform the data using the selected eigenvectors dot product of eigenvectors and
Standardized data in step a
Output:
printpcashape
printpca:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started