Question
Python Program: Assume you live in London in 1940. As the German Luftwaffe continue their nightly bombings of the city, you become worried a bomb
Python Program:
Assume you live in London in 1940. As the German Luftwaffe continue their nightly bombings of the city, you become worried a bomb might land on your house while you sleep. To put your mind at rest you decide to figure out the probability of a bomb landing on your house. You take a sample space of 10 blocks by 10 blocks containing your house and receive intelligence that roughly 200 bombs are being dropped nightly in this area. Should you flee the city or take your chances staying home?
(a) Create a 10-by-10 grid and specify which block your house is.
(b) Simulate 200 bombs dropping in the 10-by-10 grid and run this simulation 4 times, recording the results for each. This simulates four nights of bombings. How many bombs landed in your block? How many bombs landed in each block? How many bombs can any one block expect to receive in a night?
(c) Using a Poisson distribution, what is the predicted probability of a bomb hitting your house? What is the expected number of bombs to land in your block? Do these results match any or all of your simulations?
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