"If p itself is a random variable X as in the second case, then the conditional expectation and conditional variance of Y are as follows:" . . . .