Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions