Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 xStep 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