This equation comes from Edgenuity's course of Statistics, and I am taking the course as a high school senior. I understand how to find the standard deviation.
Standardized tests for certain subjects, given to high school students, are scored on a scale of 1 to 5. Let X represent the score on a randomly selected exam. The distribution of scores for one subject’s standardized test is given in the table.
What is the standard deviation of the distribution?
A. 1.3
B. 1.6
C. 1.7
D. 2.5
Edit: Firstly, I multiplied each score with its corresponding probability and then added all of these pairs together.
$(1*0.18)+(2*0.20)+(3*0.26)+(4*0.21)+(5*0.15) = 2.95$
$2.95$ is the mean of the distribution.
Secondly, I found the standard deviation using the mean and the score values.
$\sqrt{[(1-2.95)^2+(2-2.95)^2+(3-2.95)^2+(4-2.95)^2+(5-2.95)^2]/5} ≈ 1.415 $
$≈ 1.415$ is the standard deviation of the distribution, so the closest answer choice would be (A).

Note that variance ($\sigma^2$) is given by: $$\sigma^2=\sum p_i(x_i-m)^2$$ where $m$ is the mean score. So we have, breaking the square: $$\sigma^2=\sum {x_i}^2 p_i +\left(m^2\sum p_i\right) -2m^2$$ $$\sigma^2=\sum {x_i}^2 p_i -m^2$$ $$\sigma^2 =\sum {x_i}^2 p_i -\left(\sum x_i p_i\right)^2$$ Plug in the values, you'll get: $$\sigma^2=10.43-8.7025=1.7275$$ So standard deviation($\sigma$)$=\sqrt{1.7275}\approx 1.3$
Clearly, your calculated value of $m$ is wrong. The correct value would be $m=2.95$