Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python Question: Problem 03 Cummulative Density Function (cdf) of exponential distributions Note that the Cummulative Density Function of exponential distribution with parameter , >0 looks
Python Question:
Problem 03 Cummulative Density Function (cdf) of exponential distributions Note that the Cummulative Density Function of exponential distribution with parameter , >0 looks like this 0, otherwise Your code should be able to do the following: Given , and an array arr; your function can return an array of values F(x: ) for each x E arr eg: F(I-1,1],0.5) should return [0 0.69673467014368329] of type numpy.ndarray For fixed arr np.arange(50)/50 For = 0.5-,-1, ~1.5 , save the values F(arr; ) to a new variable vi, and print out their mean. you may need np.exp() # your function here def exp_cdf(arr,lam): return np.array(LI) # please don't change the value of arr or Lambdai's arr = np.arange(50)/5 lambda 0.5 yl exp-cdf(arr, lambda!) lambda2 = 1 y2 exp-cdf(arr, lambda2) lambda3 = 1.5 #print the mean of yl, the mean of y2, the mean of y3 print()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