1

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.

Keris
  • 43

1 Answers1

1

You have the formulas. Now all you need to do is plug stuff in and simplify the result:

$E[X] = \displaystyle\sum_{x}x \cdot p(x) = \sum_{x = 1}^{n}x \cdot \dfrac{1}{n} = \cdots$

$E[X^2] = \displaystyle\sum_{x}x^2 \cdot p(x) = \sum_{x = 1}^{n}x^2 \cdot \dfrac{1}{n} = \cdots$

$\text{Var}[X] = E[X^2]-E[X]^2 = \cdots$

The identities $\displaystyle\sum_{x=1}^{n}x = \dfrac{n(n+1)}{2}$ and $\displaystyle\sum_{x=1}^{n}x^2 = \dfrac{n(n+1)(2n+1)}{6}$ will be particularly useful.

JimmyK4542
  • 54,331