A discrete uniform random variable, X, has PMF of the form
px(k) = {(1/b-a+1), k = a, a+1....b,
0 otherwise}
where a and b are two integers with a < b
how do i sketch the PMF of X?
how do i work out E[X]?
Sorry about lack of LaTex Math
A discrete uniform random variable, X, has PMF of the form
px(k) = {(1/b-a+1), k = a, a+1....b,
0 otherwise}
where a and b are two integers with a < b
how do i sketch the PMF of X?
how do i work out E[X]?
Sorry about lack of LaTex Math
am i not right in thinking that E[X] =$\displaystyle \frac{1}{b-a+1}$ x $\displaystyle \frac{b+a}{2}$?
as $\displaystyle \frac{b+a}{2}$ would be moo of all the values k will take and $\displaystyle \frac{1}{b-a+1}$ is the probability of all these values?