Question:
The n candidates for a job have been ranked 1, 2, 3,..., n. Let x = rank of a randomly selected candidate, so that x has pmf:
(this is called the discrete uniform distribution).
Compute E(X) and V(X) using the shortcut formula.
[Hint: The sum of the first n positive integers is
, whereas the sum of their squares is
Answer:
or
Explanation:
Given
PMF
Required
Determine the E(x) and Var(x)
E(x) is calculated as:
This gives:
From the hint given:
So:
Var(x) is calculated as:
Calculating:
Using the hint given:
So:
So:
Take LCM
Apply difference of two squares