Suppose that $\mathcal{F}$ is a finite-dimensional vector space and that $C\subseteq\mathcal{F}$ is a convex subset of $\mathcal{F}$.
Is it true that an uncountable convex-combination of elements of $C$, $\int f(x)C(x)dx$ is in $C$,
where $\int f(x)dx=1$, $f(x)\geq0$ and $C(x)\in C$? What are the conditions for this to happen?
What if $\mathcal{F}$ is infinite-dimensional? (Here I suppose that the answer is no)
To be more precise, I'm interested in the case where $\mathcal{F}$ is a finite-dimensional vector space of functions $\mathbb{R}^n\to\mathbb{R}^m$ and $C$ is a convex subset. If $X$ is a random variable on $C$, is it true that the function $\mathbb{E}_X[g_X]$ (defined as the function $x\mapsto\mathbb{E}_X[g_X(x)]$ ) is in $C$ if the functions $g_X$ are in $C$?
I'm asking this question because I could only see this problem treated for $\mathbb{R}^n$. My understanding is that for $\mathbb{R}^n$ this is true.