0% found this document useful (0 votes)
9 views

IDSUP Minor Assignment 03[1]

Uploaded by

AVIJEET Swain
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

IDSUP Minor Assignment 03[1]

Uploaded by

AVIJEET Swain
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Centre for Data Science

Institute of Technical Education & Research, SOA, Deemed to be University

Introduction to Data Science using Python (CSE 3054)


M INOR A SSIGNMENT -3

1. Write a Python program to find the derivate of using limit of the difference coefficient method at
x=1.
2
f (x) = ex + sin(x) − tan(x) + log(x)

OUTPUT
2. Write a Python program to find gradient of Rosenbrock function using limit of the difference coefffi-
cient method at the point (1,2). Rosenbrock function is defined below.

f (x, y) = (1 − x)2 + 100(y − x2)2

OUTPUT
3. Write a Python program to find the point of minima of function using Gradient Descent method taking
initial solution x0 = 2.
f (x) = x2 + sin(x)

OUTPUT
4. Write a Python program to find the point of minima of Rosenbrock function using Gradient Descent
method taking initial solution (0,0). Rosenbrock function is defined below.

f (x, y) = (1 − x)2 + (y − x2)2

OUTPUT
5. Let X be a binomial random variable with parameters n = 100 and p = 0.6. Write a Python program
to find the approximate probability that:

1. X lies above 60.


2. X lies between 50 and 70.

using normal approximation to binomial distribution.

OUTPUT
6. Define p-value and write a python program to find the two-sided p-value with and without continuity
correction when the values of x(observed no. of heads), mean and standard deviation are 110, 100, 5
respectively.

OUTPUT

You might also like