In the two-environment example of conditional independence, g(T) is 0.1 or 0.9 with equal probabilities. Hence E[g(T)]=0.5 and Var(g(T))=((0.1−0.5)2+(0.9−0.5)2)/2=0.16. The two trials have zero conditional covariance in either environment, yet their unconditional covariance is positive because their success probabilities rise and fall together.