Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

some code to that I have but lost Please Help me with this because I am lost right now! I just realized that the def

image text in transcribed

some code to that I have but lost

image text in transcribed

image text in transcribed

Please Help me with this because I am lost right now!

I just realized that the def probability is not needed in this so please look past that

Use your pseudorandom number generator from question 4 to generate a list of 1000 random floating point numbers between 0 and 1 (duplicates are okay). Consider these values to represent probability levels that can be found by integrating the Gaussian probability density function (PDF) between x=u-5.0 to x=x; such that pi=P(x xtol: Fnew = fon(x) delta = -Fnew/((Fnew-F)/delta) X += delta F = Fnew N += 1 return x #1. number gen #2. PDF function #3. Simpson and secant #4. calc estimates of pop #5. print output + def main(): main() def Probability. (PDF, args, C GT=True): mean = 0 stdev = 1 = 1 args = mean, stdev # unpacking args = mean - 5 * stdev # given limit equation R = C P = simpson (PDF, args, L, R) # call for simpson function if GT == True: return 1 - P if GT == False: return P def GNPDFCX, mean, stdev): PDF 1 / (stdev * ((2 * pi) ** .5)) * e ** (-.5 * ((X - mean) / stdev) ** 2) return PDF Use your pseudorandom number generator from question 4 to generate a list of 1000 random floating point numbers between 0 and 1 (duplicates are okay). Consider these values to represent probability levels that can be found by integrating the Gaussian probability density function (PDF) between x=u-5.0 to x=x; such that pi=P(x xtol: Fnew = fon(x) delta = -Fnew/((Fnew-F)/delta) X += delta F = Fnew N += 1 return x #1. number gen #2. PDF function #3. Simpson and secant #4. calc estimates of pop #5. print output + def main(): main() def Probability. (PDF, args, C GT=True): mean = 0 stdev = 1 = 1 args = mean, stdev # unpacking args = mean - 5 * stdev # given limit equation R = C P = simpson (PDF, args, L, R) # call for simpson function if GT == True: return 1 - P if GT == False: return P def GNPDFCX, mean, stdev): PDF 1 / (stdev * ((2 * pi) ** .5)) * e ** (-.5 * ((X - mean) / stdev) ** 2) return PDF

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

Question

5-8 What are the advantages and disadvantages of the BYOD movement?

Answered: 1 week ago

Question

Which personal relationships influenced you the most?

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

How was your life influenced by those events?

Answered: 1 week ago