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