I am reading this article:
https://www.sciencedirect.com/science/article/pii/S0040580901915424?via%3Dihub
Where as far as I can make out they are taking the expected value of the difference of 2 conditional probabilities (p. 158):
$E[\sum_c{P(C=c|Y=1)-P(C=c|Y=0)}]$
Where they have defined $P(C=c|Y=1)$ as well as $P(C=c|Y=0)$. So I guess we can use the fact that the expected is a linear operator and get:
$\sum_c{E[P(C=c|Y=1)]}-\sum_c{E[P(C=c|Y=0)]}$
But I still do not really understand how we could compute $E[P(C=c|Y=1)]$, as it is just a single value, would it just be:
$E[P(C=c|Y=1)]=P(C=c|Y=1)$
Or I guess perhaps a broader point (in case you do not understand this example). Is how to take the expected value of probabilities, as usually you use the probabilities as weights, when you are calculating the mean. Or at least how to think of expected values in this case?
#### EDIT: ADDED ANOTHER QUESTIONSo I just realised another expected value that I do not quite understand (p. 159-160), they have logistic model:
$P(Y=1|X_1,...,X_L)=\frac{e^{\beta_0+\sum_{l=1}^L{\beta_lX_{il}}}}{1+e^{\beta_0+\sum_{l=1}^L{\beta_lX_{il}}}}$
Where we should note that the distribution of $Y|X_1,...,X_L$ equals the distribution of $Y|X_1,...,X_L,C$. They then they claim that the expected value is:
$P(Y=1|C=c)=r_c=E[P(Y=1|X_1,...,X_L)]=E[\frac{e^{\beta_0+\sum_{l=1}^L{\beta_lX_{il}}}}{1+e^{\beta_0+\sum_{l=1}^L{\beta_lX_{il}}}}]$
How come the $X$s do not affect the mean value? Or you just show me how they derive this?