Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer the following 2 SymPy related tasks for data analysis. These will require use of SymPy functions. Return all results rounded to two decimal points.

Answer the following 2 SymPy related tasks for data analysis. These will require use of SymPy functions.
Return all results rounded to two decimal points. To complete this task, write a function called task3(data,
pca), where data contains all records from the dataset and pca is the return output from task1(). The
function should return a list containing values from the following questions. Return all results rounded to two
decimal points.
Input:
Q1, Q2= task3(data, pca)
Output:
[[[1080072003.5,...],[77878965.5,...]],
-75000.0]
i. Filter normal and malicious transactions and calculate the derivatives of Amount for both using the
following formula.
expr =2.5x**3+3*x**2+3.5*x +5
output:
print(Q1[0][0], Q1[1][0])=
1080072003.577878965.5
ii. Solve the following equation for a where x values are taken from the pca values then plot the line
over scatter plot of the pca values.
=+3
Output:
print(Q2)=-75000.0

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

More Books

Students also viewed these Databases questions

Question

Explain why the height of the yield curve depends on inflation.

Answered: 1 week ago

Question

Is SHRD compatible with individual career aspirations

Answered: 1 week ago