Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program in Python should be written. But my program doesnt give correct answer. Thank you. t intCinputC Enter the number of trials:) -floatinput Enter the

image text in transcribed

Program in Python should be written. But my program doesnt give correct answer. Thank you.

t intCinputC Enter the number of trials:") -floatinput Enter the probablity of success: ")) Part 3 A political candidate estimates that 30% of the voters in her party favor her proposed tax reform bill.there are 400 people at a rally find the probability that at least 100 voters will favor her tax bill. rial-[0] rial trialtn @ Exercise 3. Calculate the probability using DeMoivre-Laplace low intCinput( Enter the lowest trial:") high intCinput "Enter the highest trial:" highxhigh +1 or s tn range Cxlow, xhigh): # Increaselist by multiplying it by S - counter Create o for loop for the frequency or k it range(N): Simulation 3. Generalize the program to accept as inputs the number of trials, the probability of success in any trial,and a range for the number of successes. Use it to simulate the specific problem. Create c for loop for the ernautti trial For i in range(n): r-random.uni form(,1) -+ t 1 1 trialtij-1 else: Download trial[i]-e x- sumCtrial) Activity Details Task: View this topic countercounter 1 Calculate the probability prob -counter/N r Displdy the answer a ak prob orini(a)

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

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

What is polarization? Describe it with examples.

Answered: 1 week ago