Question: Define and compute the following using python. Problem 2: The Gaussian Distribution (2 points) Consider the normal (or Gaussian) probability distribution: p(x)--2 exp(-20T2 where, 2

Define and compute the following using python.

Define and compute the following using python. Problem 2: The Gaussian Distribution

Problem 2: The Gaussian Distribution (2 points) Consider the normal (or Gaussian) probability distribution: p(x)--2 exp(-20T2 where, 2 is the variance and is the mean. 1. Define the array x using np.linspace to be 50 evenly spaced numbers ranging from -5 to 5 inclusive. 2. Use numpy to evaluate p(x) using x and Name these arrays p.a, p.b, and p.c, respectively . Compute the standard deviation of each of these arrays (use numpy). Name them sd a, sd b, and sd.c, respectively. 4. Use matplotlib to produce a plot of the three arrays (pa, pb, and p-c) as functions of x

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!