Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python program Task 1: The probability density function of the normal distribution is: 1 f(x) = -(x-u)/(202) 2 where u is the mean, and o

image text in transcribed

image text in transcribed

python program

Task 1: The probability density function of the normal distribution is: 1 f(x) = -(x-u)/(202) 2 where u is the mean, and o is the standard deviation. See https://en.wikipedia.org/wiki/Normal_distribution for more information about normal distribution. The probability density function is shown in Figure 2-1.: 68-95-99.7 Rule 0.40 0.35 0.30 68.27% 0.25 Probability Density 0.20 95.45% 0.15 0.10 99.73% 0.05 0.00 4 - 30 u-20 - u u o u + 20 u + 30 Figure 2-1: Probability density Figure 2-1: Probability density You need to write a Python program to numerically integrate the probability density function from u - o to u + o. For convenience, you can assume that u = 0 and o = 1 in this task. 1 You can only use two Python modules, math and random. Hints: To get the integral, you can estimate the area of the region colored in red (called R region)

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

Explain the factors affecting dividend policy in detail.

Answered: 1 week ago

Question

Explain walter's model of dividend policy.

Answered: 1 week ago

Question

8. Do the organizations fringe benefits reflect diversity?

Answered: 1 week ago