Question: use Python do this Problem 2: The Gaussian Distribution (2 points) Consider the normal (or Gaussian) probability distribution: -(x-)2 exp (-2 p(x)- 2n2 where o

use Python do this
Problem 2: The Gaussian Distribution (2 points) Consider the normal (or Gaussian) probability distribution: -(x-)2 exp (-2 p(x)- 2n2 where o is the variance and u 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 (a) -0 and 2-1 (b) -1 and -1 (c) :0 and 2-2 Name these arrays p.a, p.b, and p.c, respectively. 3. Compute the standard deviation of each of these arrays (use numpy) Name them sda, sd.b, and sd.c, respectively. 4. Use matplotlib to produce a plot of the three arrays (P-a, ph, and p-c) as functions of x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
