Question: In this assignment, you must use variables, loops, if statements, your own function definitions and function calls and callback functions. For now, you may NOT

In this assignment, you must use variables, loops, if statements, your own function definitions and function calls and callback functions. For now, you may NOT use any of the powerful functions available in python modules, with two exceptions: you may import functions from the math module and the copy module.
You must include docstrings for all your functions and reasonable comments throughout your code.
See your MAE 3013 textbook for a reminder of:
The Secant Method for finding the solution (root or zero) or a nonlinear equation.
The Simpson's 13 rule for numerical integration.
The Gauss-Sidel method in section 20.3
a) Write a function defined as: lef Probability(PDF, args, C,GT=True ):
PDE: is a callback function for the Gaussian/normal probability density function f(x)=122e-12(-)2. The callback function (PDF) should take a single argument as a tuple, which contains values for x,(population mean), and (population standard deviation).
args: is a tuple containing and
c: is a floating point value (i.e, the upper limit of integration)
GT: is a boolean indicating if we want the probability of x being greater than True) or less than C(GI=False)
To find the probability of 13x=-5*CP(x105|N(100,12.5))x105x=100,0=12.5P(x>+2|N(100,3))P(x1.00|N(0,1))=Y.YY
P(x>181.00|N(175,3))=Z.ZZx you should use the Simpson's13 rule to integrate between the limitsofx=-5*toC.
Write and call a function that uses your function to find:
P(x105|N(100,12.5)) : probability x105 given a normal distribution ofx with =100,0=12.5
P(x>+2|N(100,3))
Print your findings to the
c.li.in the following format:
P(x1.00|N(0,1))=Y.YY
P(x>181.00|N(175,3))=Z.ZZ
 In this assignment, you must use variables, loops, if statements, your

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!