Multi-stage probability, multiplication and total probability
A trial selects one component from a tray at each stage
The initial category counts, in the branch order shown, are typeA = 7, typeB = 6
At each stage, choose uniformly at random from the individual items currently in the container
The trial has 2 stages: stage 1 and stage 2. After each selection, the item is returned before the next stage
The ordered terminal outcomes form the sample space \(S\). Let \(E\) be the event that the ordered outcome is (typeB, typeA)
If needed, scroll sideways to follow each complete path