Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

What dietary factors might relate closely to dementia?

Answered: 1 week ago

Question

BPR always involves automation. Group of answer choices True False

Answered: 1 week ago