The question is Suppose that X is a discrete random variable with probability mass function $p(x) = cx^2, x = 1, 2, 3, 4$
I found c and I got $1\over30$. I found E(X) and got $10\over3$. Part c of the question asks me to find $E(X(X-1)$ which I know is $E(X^2)-E(X)$. I just can't seem to understand how to really get $E(X^2)$. I figured out that it has to be $1\over30$$(1+2^4+3^4+4^4)$ based on the answer for $E(X(X-1)$ but I honestly don't know how it is to the fourth power instead of the sixth power when the equation for $E(X)$ is $\sum_{x=1}^4xp(x)$ where $p(x)=cx^2$ so don't we have $1\over30$($\sum_{x=1}^4x^3)^2?$ Wouldn't this make it $1\over30$$\sum_{x=1}^4x^6$?