probability of three dependent events