0
$\begingroup$

You have $21$ shots. You can shoot any of two windows $A$ and $B$. How many shots will you fire at window $A$ to maximize your chances of hitting a rabbit when:

a) Rabbit's location is static i.e. it is either in window $A$ with probability $8/9$ or in window $B$ with probability $1/9$ through the duration of $21$ shots.

b) Rabbit can move between the windows after each shot. The probability that rabbit will be in window $A$ is $8/9$ and for window $B$ is $1/9$ for each shot.

There is one more thing: the likelihood of your shot hitting the rabbit when you fire at the window is $1/2$.

$\endgroup$
3
  • $\begingroup$ Will the rabbit always move between windows, or randomly decide whether or not to change windows? $\endgroup$ – George V. Williams Mar 30 '13 at 21:29
  • $\begingroup$ Hi George, the choice is random, but overall the chance that rabbit will be found in window A at any given time is 8/9. $\endgroup$ – VJune Mar 30 '13 at 21:38
  • 2
    $\begingroup$ For b) I'd say shoot window A every time. a) is a bit more complicated. $\endgroup$ – DarkLightA Mar 30 '13 at 21:42
4
$\begingroup$

As stated in a comment, for b) always shoot at window $A$.

For a), if you shoot $n_A$ times at window $A$ and $21-n_A$ times at window $B$, your chance of hitting the rabbit is

$$ \frac89\left(1-\left(\frac12\right)^{n_A}\right)+\frac19\left(1-\left(\frac12\right)^{21-n_A}\right)\;. $$

Setting the derivative with respect to $n_A$ to zero yields

$$ \frac89\left(\frac12\right)^{n_A}=\frac19\left(\frac12\right)^{21-n_A} $$

and thus

$$ 8=2^{2n_A-21} $$

with solution $n_A=12$, so you should fire $12$ times at window $A$ and $9$ times at window $B$.

$\endgroup$
2
  • $\begingroup$ Thanks. Its just that on the surface situation (a) and (b) just do not look very different, and more so when you take into account that probability of rabbit being found in window A at any given time is same in both cases. $\endgroup$ – VJune Mar 30 '13 at 23:11
  • $\begingroup$ But ofcourse I agree with your solution. Probability is just funny perhaps. $\endgroup$ – VJune Mar 30 '13 at 23:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.