probabilistic graphical models notes and derivations