0% found this document useful (0 votes)
19 views2 pages

Assignment 2 DS EC11 3

Tahs

Uploaded by

Harshal Kadam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

Assignment 2 DS EC11 3

Tahs

Uploaded by

Harshal Kadam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

NAVSAHYADRI GROUP OF INSTITUTIONS,PUNE

EC11-3: Fundamentals of Data Science


ASSIGNMENT 2
Date Given: 26/10/2024 Submission Date: 15/10/2024
==================================================================================
=-
HAPPY DIWALI Numerical & Case Study/Case Data HAPPY DIWALI
Chp.2: Computational Mathematics for Data Science
Bisection method
1) Find the root of the following polynomial function using the bisection method: x3 – 4x – 9
2) Find the root of the following polynomial function using the bisection method: x3 – 3x – 5
3) Find the root of the following polynomial function using the bisection method: x4 – 2
4) Find out after how many iterations the function using the bisection method: x4 – x3– x2 – 4
in the interval [1, 9]
5) For the given function f(x) = x3 – x – 1, a real root lies in between the interval [1,2].
Find the minimum number of iterations required to find the root up to the accuracy
of two decimal points by using bisection method.
6) For the given function f(x) = x3 – 4x + 3, a real root lies in between the interval [–3 , –2].
Find the minimum number of iterations required to find the root up to the accuracy of
three decimal points by using bisection method.
Newton-Raphson Method
1) Find the cube root of 12 using the Newton Raphson method assuming x0 = 2.5
2) Find a real root of the equation -4x + cos x + 2 = 0, by Newton Raphson method up to four decimal
places, assuming x0 = 0.5
3) Find the root of the equation f(x) = x3 – 5x + 3 = 0, if the initial value is 3 using Newton Raphson
method
4) Find the root of the equation f(x) = x3 – 3 = 0, if the initial value is 2 using Newton Raphson method
5) For the initial value x0 = 3, approximate the root of f(x)=x2-3 using Newton Raphson method
6) Find a root of an equation f(x)=x3-x-1 using Newton Raphson method
--------------------------------------------------------------------------------------------------------------------------------
Chp.4: Data Analysis using Numpy and Pandas
NumPy & Pandas
1) Create a DataFrame from a NumPy array with custom column names as -
Data = ( [1, 2, 3], [4, 5, 6] , [7, 8, 9]] )
Column Names : ( Triveni , Harshada, Gyatri)
2) Perform element-wise addition of a NumPy array and a Pandas DataFrame column for
array data given as-
Name = (Sanskruti ,Sonali ,Sayali ,Snehal, Pushpalata)

1|P a g e s u n i l k h i l a r i @ h o t m a i l . c o m 9 8 5 0 9 7 9 6 5 5
Age = ( 22, 24, 26, 27, 25]
Salary = ( 30000, 38000, 42000, 46000, 35000)
3) Perform element-wise addition on two NumPy arrays.
NGI-1 = ( 10, 20, 30, 40, 50 )
NGI-2 =( 100, 200, 300, 400, 500 )
4) Calculate the cumulative sum of a NumPy array and store the results in a new Pandas DataFrame
Data given (100, 200, 300, 400, 500)
5) Calculate the correlation matrix for a Pandas DataFrame for given data as –
Age = ( 22, 24, 26, 27, 25]
Salary = ( 30000, 38000, 42000, 46000, 35000)
Experience = (2, 5, 1, 8, 4 )
---------------------------------------------------------------------------------------------------------------------------------
Chp.5: Data Visiluziation
matplotlib
1) Write a Python code and plot a pie chart with different colors for different slices by using matplotlib
for below data –
Labels = (a, b, c, d)
Sizes = (15, 30, 45, 10)
Colors = (red, green, blue, orange)
2) Write a Python code and plot a stacked bar chart by using matplotlib for below data –
Labels = (a, b, c, d)
Men = (20, 35, 30, 35)
Women = (25, 32, 34, 20)
Seaborn
1) Write python program and draw scatter plots by using Seaborn for below data
x = ( sun, mon, fri, sat, tue, wed, thu)
y = (5, 6.7, 4, 6, 2, 4.9, 1.8 )
2) Write python program and visualize the data with a line plot by using Seaborn for below data

Name= ( sunil , sakshi , asawari, divya )


Age = ( 30 , 21 , 23 , 24)
==========================================================================

Note: Compulsory to all students (Out of below 2 one mandatory)


A) One IIT Mumbai Spoken Tutorial Certification on R Language
https://spoken-tutorial.org/training/register_user/
B) NPTEL/ SWYAM –Data Science for Engineers Certification
https://onlinecourses.nptel.ac.in/noc21_cs69/preview
=========================HAPPY DIWALI ===================================
Solve and submit before due date

Subject Teacher: Dr.Sunil Khilari

2|P a g e s u n i l k h i l a r i @ h o t m a i l . c o m 9 8 5 0 9 7 9 6 5 5

You might also like