Answered step by step
Verified Expert Solution
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
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
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