Notebook[List[Cell[BoxData[FormBox[RowBox[List[RowBox[List["P", "(", RowBox[List["M", "|", SubscriptBox["H", "1"]]], ")"]], "=", RowBox[List[RowBox[List[UnderoverscriptBox["\[Sum]", "\[CapitalOmega]", " "], " ", RowBox[List[RowBox[List["P", "(", RowBox[List[RowBox[List[RowBox[List[RowBox[List[RowBox[List["M", "(", RowBox[List["h", ",", SubscriptBox["d", "1"], ",", SubscriptBox["d", "2"]]], ")"]], "|", SubscriptBox["H", "1"]]], "&"]], SubscriptBox["D", "1"]]], ",", SubscriptBox["D", "2"]]], ")"]], "*", RowBox[List["P", "(", RowBox[List[SubscriptBox["D", "1"], ",", SubscriptBox["D", "2"]]], ")"]]]]]], "=", RowBox[List[UnderoverscriptBox["\[Sum]", "S", " "], " ", RowBox[List[RowBox[List["P", "(", RowBox[List[RowBox[List["M", "(", "h", ")"]], "|", "H"]], ")"]], "*", RowBox[List["P", "(", RowBox[List[RowBox[List["M", "(", SubscriptBox["d", "1"], ")"]], "|", SubscriptBox["D", "1"]]], ")"]], "*", RowBox[List["P", "(", RowBox[List[RowBox[List["M", "(", SubscriptBox["d", "2"], ")"]], "|", SubscriptBox["D", "2"]]], ")"]], "*", RowBox[List["P", "(", SubscriptBox["D", "1"], ")"]], "*", RowBox[List["P", "(", SubscriptBox["D", "2"], ")"]]]]]]]]]], TraditionalForm]], "Input"]]]