setting up for joint probability
updating joint prob