I am quite stuck in this problem:
Show that if $C\in\mathbb{R^n}$ is a convex and closed set and $X$ is a continous n-dimensional random vector (i.e., exists a probability density function such that $P\{X\in C\}=1$ and wich expected value $E(X)=(E(X_1),...,E(X_n))$ exists and it's finite) then we got that $E(X)\in C$.
I am suggested to use the next Proposition:
Let $C$ be a convex closed set in $\mathbb{R^n}$. Then $C$ is the intersection of all closed halfspaces containing it.
By definition $$E\{X\}=\sum_{x}x\cdot \Pr\{X=x\}$$since the $x$s over which the sum is taken and calculated are in $C$ and $\Pr\{X=x\}$ are some coefficients that sum up to $1$ and because of convexity (that yields to the fact that is any bunch of points lie in a convex set, then so does any convex combination of them, i.e. points that are a linear combination of the original points with non-negative coefficients summing up to $1$) and closedness (needed for continuous PDFs) of $C$, we conclude that $E\{X\}\in C$.