In: Statistics and Probability
the probability that the line fails on any particular day is 0.20. We will use 1 to indicate that a line to a city is working and 0 to indicate that it has failed.
To simulate this we use the following steps
The city C has power if
Prepare the following sheet
copy the rows to make 2000 rows each row indicating if city C has power on that particular day.
Paste these as values to avoid changes
get this
where 1 in the last column, Power to C indicates that the city C has power on a particular day of the simulation.
Now we calculate the empirical probability that city C will have power on any particular day as
Add this to the sheet
get this
ans: the empirical probability that city C will have power on any particular day is 0.732