add a way to compute the expectations without involving P or Q