Question: Problem 2 Write a function gaussian that calculates the Gaussian pdf, f(0) = exp-}(*5)] . When called with only x as an input argument, the

 Problem 2 Write a function gaussian that calculates the Gaussian pdf,

Problem 2 Write a function gaussian that calculates the Gaussian pdf, f(0) = exp-}(*5")] . When called with only x as an input argument, the function should return the pdf of the standard Gaussian distribution. In [ ]: # Write the function here # YOUR CODE HERE raise Not ImplementedError() In [ ]: from nose. tools import assert_equal assert_equal(gaussian(1, 1.2, 2), 0.1984762737385059) assert_equal(gaussian(1), 0.24197072451914337)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!