|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
   
    | • | We need to
    compute the difference 
 | 
   
    |  | between the  energy of the whole 
 |  | 
   
    |  | network when i
    is on and the 
 |  | 
   
    |  | energy when i is
    off. 
 |  | 
   
    |  | 
   
    |  | – | Then   the posterior probability 
 |  | 
   
    |  | for
    i is: 
 |  | 
   
    |  | 
   
    | • | Changing the
    state of i changes 
 |  | 
   
    |  | two kinds of
    energy term: 
 |  | 
   
    |  | 
   
    |  | – | how
    well the parents of i 
 |  | 
   
    |  | predict
    the state of i 
 |  | 
   
    |  | 
   
    |  | – | How
    well i and its spouses 
 |  | 
   
    |  | predict
    the state of each 
 |  | 
   
    |  | descendant
    of i. 
 |  |