We can use similar reasoning to compute the expectation of P. With probability (1 − p), the original features are preserved, and we add the outer-product x i x i ; with probability p, we add the outer-product x i q .
e[P] can be computed as the sum of these terms.