Original practice · fully worked
Original variant: expected absolute sensor penalty
A sensor adjustment R takes values -2, 0, 3, and 7 with probabilities 0.15, 0.25, 0.40, and 0.20, respectively. A quality penalty is defined as C=|R-2|. Calculate E[C].
- A
0.30 - B
2.30 - C
2.50 - D
3.00 - E
5.00
Answer and calculation
The four penalties are 4, 2, 1, and 5. Weighting them by their probabilities gives 0.15(4)+0.25(2)+0.40(1)+0.20(5)=2.50, so choice C.
Setup
Setup
Evaluate the absolute penalty at each possible adjustment value.
C(−2)=4,C(0)=2,C(3)=1,C(7)=5 Model
Model
Use the expectation-of-a-function formula for a discrete distribution.
E[C]=r∑∣r−2∣Pr(R=r) Compute
Compute
Multiply each penalty by its probability and add the four contributions.
E[C]=4(0.15)+2(0.25)+1(0.40)+5(0.20) E[C]=0.60+0.50+0.40+1.00=2.50 Answer
Answer
The expected penalty is 2.50.
2.50(C)