I have a question about pmf:
The n candidates for a job have been ranked 1, 2, ..., n. Let X be the rank of a randomly selected candidate, so that X has pdf has pmf
p(x) = 1/n if x=1,...,n & 0 if otherwise.
Compute E(X) and V(X).
I know the E(X) of pmf is sum of x*p(x) and V(x) is E(X^2) - [E(X)]^2. But it's a bit hard to get start it. Any comment would be very appreciated.