IDSUP Minor Assignment 03[1]
IDSUP Minor Assignment 03[1]
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.
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.
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:
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