I am working through a problem that asks if the set, $P$ is convex.
Note that $P$ is a set of pdfs. Each member $p \in P$ describes a pdf - a vector of real numbers that are probabilities. The assignment is to determine if the set of all pdfs (all $p$'s) subject to a restriction on the variance, is a convex set.
These are the restrictions on $p$, including the inequality for the variance of all of all of the $p$'s:
$p$ is a vector of probabilities, $p \in \mathbb{R}^+$
probability simplex, which is of course a restriction on $p$ $P = \{p \, \vert \sum_{i=1}^{n}{p_i} = 1 , p \ge 0\}$
$p_i$ is the probability that random variable $x$ is $x=a_i$ with $x \in \mathbb{R}$
$var(x) \ge \alpha\ $and$ \,\,var(x) = \sum_{i=1}^n{(x_i-E[x])^2}\}$
$\alpha \in \mathbb{R}$ and $var(x) = \sum_{i=1}^n{(x_i-E[x])^2}$ and $E[x]=\sum_{i=1}^np_ix_i$
Now, in the Solutions to the homework I see
In the solutions to my homework, it says that that "$var(x) \ge \alpha$ can be reformulated as $\sum_{i=1}^np_ia_i^2+(\sum_{i=1}^np_ia_i)^2 \le \alpha$".
This is obviously convex...so I can see the answer from there.
But, my question is how can this inequality $var(x) \ge \alpha$ be reformulated as $\sum_{i=1}^np_ia_i^2+(\sum_{i=1}^np_ia_i)^2 \le \alpha$ ?
EDIT Here is the homework question in full. I am particularly asking about parts (f) and (g):
And here is the solution:
If you'd like any more information, please let me know.


This question cannot be answered as is, because we lack a proper definition of "convex" in this setting.
For a complete answer, the full homework text is needed.
Setup
Let's write in here all the assumptions ans appreciations:
Definitions:
Constraint:
Applying the definition of variance to the $j$th pdf: $$ \text{var}\{f_j\}= \sum_{i=1}^np_{ij}a_{i}^2-\left(\sum_{i=1}^np_{ij}a_{i}\right)^2 \ge \alpha $$
Question
To determine if the set of all $p \in \mathscr P$ subject to a restriction on the variance, is a convex set.
Possible Interpretations
Best interpretation
A Convex Combination over a set of pdfs or also called a Mixture Distribution is the pdf obtained by weighting every pdf through non-negative numbers with sum equal to 1: $$ f_m(x)=\sum_{j=1}^mb_jf_j(x), \sum_{j=1}^mb_j=1, b_j\ge 0 $$
Hence: $$ f_m(x)=\sum_{i=1}^n \left(\sum_{j=1}^m b_jp_{ij} \right) \delta(x-a_{i}) = \sum_{i=1}^n \beta_{ij} \delta(x-a_{i}) $$ Note that $\sum \beta_{ij}>1, \beta_{ij}>0$ (why?).
Thus, it is possible to build convex combinations from elements of $\mathscr P$ with or without the given constraint, by definition.
Assuming also than the set $\mathscr P$ is not finite, but $p_i \in \mathbb{R}$ we found from the given operation that $\mathscr P$ is closed under convex combinations, hence $\mathscr P$ is convex trivially. But this is independent on the given constraint, and keeps being a void question.
Main Comment
EDIT: - As pointed out, the expression is equivalent to: $$ \text{var}\{f_j\}= \sum_{i=1}^np_{ij}a_{i}^2-\left(\sum_{i=1}^np_{ij}a_{i}\right)^2 \ge \alpha \\ \sum_{i=1}^np_{ij}a_{i}^2+\left(\sum_{i=1}^np_{ij}a_{i}\right)^2 \ge \alpha + 2\left(\sum_{i=1}^np_{ij}a_{i}\right)^2 \ge \alpha $$ Which is the opposite to the given answer in (g), hence the set is not convex.