Computing conditional probability