Say a class of 200 students is graded out of 100 marks. The mean of the dataset is 50.
Can we put a maximum limit on Standard Deviation for the set ?
I thought of putting a number of people onto 100 and the rest to zero and came up with $\frac{(100a + 0*(200-a))}{(200)} = 50$, which gives a = 100, so if a 100 people got 100 and a 100 got zero the average would still be 50.
Now Standard Deviation = $\sqrt{\frac{\sum{(x_i - 50)}^2}{N}}$
which would equal $\sqrt{ \frac{100*50*50 + 100 *50 *50}{200}}$ = $50$
Is this the max value of standard deviation of this data set ? How do I prove it ?
EDIT I now tried it out for different mean values and see that all values are less than 50.
Thus max value should be 50. But how do I prove it ?
For a non-negative random variable over (here) $[0,100]$, you can write $$\mathop{Var}[X] = \mathbb{E}[X^2]-\mathbb{E}[X]^2 \leq \max_{x\in[0,100]} x\cdot \mathbb{E}[X]-\mathbb{E}[X]^2 = 100\cdot 50 - 50^2 = 2500,$$ so the standard deviation is at most $\sqrt{2500} = 50$. Here, we used the fact that $X$ is non-negative to write $$ \mathbb{E}[X^2] \leq \max_{x\in[0,100]} x\cdot \mathbb{E}[X] $$ since in general for domain $\Omega\subseteq\mathbb{R}$ you only get $$ \mathbb{E}[X^2] \leq \max_{x\in\Omega} \lvert x\rvert \cdot \mathbb{E}[\lvert X\rvert]. $$