Exercise: Surgical Strike | Random Variable | Binomial distribution

Exercise: Surgical Strike | Random Variable | Binomial distribution

You are in the Indian Air Force and your assignment is to conduct a surgical strike on a terrorist camp in Pakistan.

Given your training credentials and the nature of a surgical strike, you have a 50% chance of correctly throwing the bomb on the target. 2 bomb hits are required to completely eliminate the target


Q.1) What is the probability that your surgical strike is a success if you throw 4 bombs?

This is a Binomial Distribution. Each trial (bomb throw) has a binary outcome (hit or miss).

Probability of Hit (p) = 0.5

Probability of Miss (q = 1-p) = 0.5

Number of bombs (n) = 4

For the surgical strike to be a success, you should hit at least 2 bombs.

So, the probability of success:

P(Success) = P(2 bombs Hits) + P(3 Bomb Hits) + P(4 bomb Hits)

P(Success) = 4C2 (1/2)?+ 4C3 (1/2)? + 4C4 * (1/2)?

P(Success) = 0.375 + 0.25 + 0.0625 = 0.6875

Therefore, if you carry only 4 bombs, you only have 68% chance of success.


Q.2) It is not nice to fail in a surgical strike. You got to be sure. How many bombs should you throw from your fighter jet so that you can be 99% sure that the terrorist camp is eliminated?

Now, n is unknown.

Probability of getting atleast 2 hits = 1 — Probability of 0 hits — Probability of 1 hit

0.99 = 1 — nC0*(1/2)^n —nC1*(1/2)^n

Solve it, or code it.

Ps = []
for n in range(2,20):
    #Probability of getting atleast 2 hits = 1 - Probability of 0 hits - Probability of 1 hit
    P_2hits = 1 - math.comb(n, 0) * (1/2**n) - math.comb(n, 1) * (1/2**n)
    Ps.append(P_2hits)

import matplotlib.pyplot as plt

plt.plot(range(2,20),Ps,'g') 
plt.xlabel('Number of Bombs')
plt.ylabel('Probability')
plt.axhline(0.99)
plt.show()        

At n =11, the probability of getting at least 2 hits crosses 99%

You should thus carry 11 bombs for 99% success.


This question is inspired from Cengage publication.



要查看或添加评论,请登录

Sai Krishna Dammalapati的更多文章

  • LogProbs

    LogProbs

    LogProbs is one of the basic skills for a prompt engineer to have. Some background before implementing it: An LLM model…

    1 条评论
  • When to brush your teeth? A good ANOVA study!

    When to brush your teeth? A good ANOVA study!

    I found this paper which did a simple ANOVA study to find out when should one brush their teeth! TL;DR Brush twice a…

  • Statistical issues in this paper studying relation between air quality and LULC

    Statistical issues in this paper studying relation between air quality and LULC

    A paper got published in Environmental Monitoring and Assessment. It studied relation between land-use classes (Urban…

  • Bayesian probabilistic forecasts using categorical information | Part 1

    Bayesian probabilistic forecasts using categorical information | Part 1

    In this blog, I will make Bayesian forecasts of Ozone concentrations. My previous blog on Bayesian analysis: Bayesian…

  • 100% Mediation in Action

    100% Mediation in Action

    I wrote about Mediators in the previous article. This is a follow-up to it.

  • Mediators

    Mediators

    I one of my previous blogs, we saw Omitted Variable Bias. In this blog, we’ll do mediation analysis using the same…

  • Visualize Collider Bias with me

    Visualize Collider Bias with me

    It’s 2020. You are a doctor.

  • A Statistician counts well

    A Statistician counts well

    I’ve come across an article Counting as Statistics in Saket Choudhary's blog. The blog has a story on how statisticians…

  • Omitted Variable Bias (OVB)

    Omitted Variable Bias (OVB)

    You performed a regression between house prices and area and obtained a coefficient (β) for area. You’d interpret it…

  • Clarifications into Regression Discontinuity Design (RDD)

    Clarifications into Regression Discontinuity Design (RDD)

    I came across one RDD study last week where observational data was used to find the causal link between air pollution…

社区洞察

其他会员也浏览了