I'm doing a research and using random variables to model a random process. I'm defining a Bernoulli random variable as a product of several other Bernoulli variables (three or more). So, I have the following as the expectation:
I cannot assume the independence of the variables $X_i$ for any $i$. The issue is to find a correct formula for the expectation to consider the correlation of the variables $X_2$ to $X_4$. I know that for a product of two variables, I can have: $E[X_2X_3]=E[X_2]E[X_3] + Cov(X_2,X_3)$. But this covariance will be a matrix in case of three or more variables. Then, how would one compute a value for $E[X_1]$?
I appreciate if somebody can help with this or point me to a good resource (e.g. book).