Question
Question: A random variable x assumes values 1, 2, 3, ... n with equal probabilities. If the ratio of variance...
A random variable x assumes values 1, 2, 3, ... n with equal probabilities. If the ratio of variance of x to expected value of x is equal to 4, then the value of n is

A
50
B
30
C
25
D
35
Answer
25
Explanation
Solution
For a discrete uniform distribution on {1, 2, …, n}:
E(X)=2n+1,Var(X)=12n2−1The ratio is:
E(X)Var(X)=2n+112n2−1=6(n+1)n2−1=6(n+1)(n−1)(n+1)=6n−1Setting the ratio equal to 4:
6n−1=4⇒n−1=24⇒n=25