Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions