![]() | ![]() | ![]() | Summing Out A Variable That Appears In The Table |
such that table t involves Y, and no other confactor that is compatible with b contains Y, we can replace this confactor with
<b ,t>
Note that after this operation Y is summed out in context b.
<b ,SUMY t>
P(c) = SUMi P(c &Y=vi)By the program invariant, and because there are no other confactors containing Y that are compatible with c, P(c &Y=vi) = pi p, for some product p of contributions of confactors that don't involve Y. Exactly the same confactors will be used for the different values of Y. Thus we have P(c) = p (SUMi pi ), and so we have maintained the first part of the program invariant. The second part of the program invariant is trivially maintained.
![]() | ![]() | ![]() | Summing Out A Variable That Appears In The Table |