2016年1月26日火曜日

確率の Chain Rule

以下は、Norman Fenton, Martin Neil 著 "Risk Assessment and Decision Analysis with Bayesian Networks" P.93Theorem 4.3(定理 4.3)

For any two events A and B:

P(AB) = P(A)P(B|A)

Note that if P(A) = 0 then A is an event with no possible outcomes. 
It follows that P(AB) also contains no possible outcomes and so P(AB) = 0.


定理だけでは「?」となるかもしれないが、"Note" からも定理には納得するだろう。

次は、Example 4.16 (P.94) をもとにした、あるサッカーチームの問題。

  • そのチームが先にゴールする確率 P(A):40%
  • そのチームが勝つ確率 P(B)
  • そのチームが先にゴールして試合に勝つ確率 P(B|A):70%

 問題:P(A), P(B|A) は過去のデータから算出できる。では P(AB) とは何だろうか?
 答え:そのチームが、次の試合もそれまでの試合と同様と仮定して、先にゴールして勝つ確率。

 よって Theorem 4.3 より  P(AB)  = 0.4 × 0.7 = 0.28

この Theorem 4.3 を 2 つ以上の事象に拡張して一般化したのが、本書 Box 4.9 (P.94) の定義 Chain RuleWikipedia では Chain rule (probability) のこと)。 the probability of the joint event の AB

  P(ABC) = P(A∩ (BC) )
                     = P(A | (BC) ) × P(BC)
                     = P(| (BC) ) × P(B | C× P(C)

ところで P(A) とは P(A = True) , P(= False) の 2 値で、先の式は一般的に以下のように記述される。

P(AB, C) =  P(| (BC) ) × P(| C× P(C)

よって、"A is false, B is true, and C is false" の場合は

P(not AB, not C) =  P(not | (B, not C) ) × P(| not C× P(not C)


さらに n 個の事象 の full joint probability distribution

  P(A1A2A3, ..., An) = P(A1 | A2A3, ..., An)
                                      × P(A2 | A3, ..., An) × P(An-1 | An) × P(An

これをコンパクトに記述すると


超シンプルな BN:AgentRisk 登場」に続く。

/**Tex */

0 件のコメント:

コメントを投稿