Independent solution

How to solve this Discrete Uniform Distribution question

Setup

Setup

Each of the five possible duration values has probability one-fifth. The expected cost can be assembled from the first two moments of N.

Pr(N=n)=15,n=1,2,3,4,5\Pr(N=n)=\frac15,\qquad n=1,2,3,4,5
E[N2+N+1]=E[N2]+E[N]+1\operatorname{E}[N^2+N+1]=\operatorname{E}[N^2]+\operatorname{E}[N]+1

Model

Model

Compute the first moment from the midpoint and the second moment from the five squares.

E[N]=1+2+3+4+55=3\operatorname{E}[N]=\frac{1+2+3+4+5}{5}=3
E[N2]=12+22+32+42+525=555=11\operatorname{E}[N^2]=\frac{1^2+2^2+3^2+4^2+5^2}{5}=\frac{55}{5}=11

Compute

Compute

Substitute the two moments into the cost expectation.

E[N2+N+1]=11+3+1=15\operatorname{E}[N^2+N+1]=11+3+1=15

Answer

Answer

The expected cost is 15.

15(E)\boxed{15\quad\text{(E)}}