Worked solution
Put the squared deviation inside the expectation
Alex and his friend stand randomly in a queue with three other people. X is the number of people between Alex and his friend.
(i) Show that .
(ii) Tabulate the distribution of X.
(iii) Find and . Hence find .
[2017/ACJC/II/6]
CJC · Discussion · Question 4
Answer
(i) 0.2; (ii) probabilities 0.4,0.3,0.2,0.1 at 0,1,2,3; (iii) , , variance 1.
(i) Two positions for a two-person gap
Let A be Alex, F the friend and* one of the other people. The source patterns are A**F* and *A**F. Each allows two A/F orientations and orders of the others. Since all queues are equally likely, .
(ii) Retain every source position pattern
| x | Patterns with A before F | |
|---|---|---|
| 0 | AF***, *AF**, **AF*, ***AF | |
| 1 | A*F**, *A*F*, **A*F | |
| 2 | A**F*, *A**F | |
| 3 | A***F |
The orientation factor 2 includes the F-before-A arrangements as well. The source probability table is thus 0,1,2,3 with probabilities 0.4,0.3,0.2,0.1.
(iii) Mean and direct squared-deviation method
. Then .
(iii) Source alternative: expand inside the expectation
.
(iii) Recognise the variance
Since the mean μ=1, . The source typesets , but its substitutions and variance identity place the square inside the expectation, as written explicitly here. The square of would instead be 0.
Common mistakes
The intended squared-deviation expectation is E[(X−1)²], not [E(X−1)]².
Solution notes
Every printed queue pattern, factor, table entry and both squared-deviation methods retained. Source E(X−1)² typography is clarified by the working/variance identity; native text preserved verbatim. No printed marks.