LoginSignup
0
0

More than 5 years have passed since last update.

成功するまでの回数の期待値その①

Last updated at Posted at 2018-03-12
1 / 2
\begin{align}
&~~~あるモンスターとの戦闘でアイテムを入手できる確率が,\\
&つねにpであるとします(p\not=0).\\
&~~~アイテムを入手できるまで戦闘する回数の期待値は?\\
\\
&~~~期待値をEとする.\\
&~~~1回目で入手できる確率はpで,入手できたらその1回で終わり.\\
&~~~1回目で入手できない確率は(1-p)で,入手できなかったらその1回\\
&のあとさらにE回の戦闘が必要.\\
&~~~したがって,\\
&~~~~~~E=p\cdot1+(1-p)(1+E)=1+E-Ep\\
&~~~~~~\therefore E=\frac{1}{p}
\end{align}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0