S1 3.4 - Tree diagrams and repeated sampling

S1 3.4 - Tree diagrams and repeated sampling

Build probability trees, multiply conditional probabilities along a path and add disjoint paths. Model repeated random sampling with and without replacement, including probabilities given a specified result.

Multiplying along branches

A faulty item could have come from either of two machines. A tree keeps the machine choice separate from the chance of a fault within that machine's output.

A tree diagram splits an experiment into stages. Branches leaving the same node describe mutually exclusive, exhaustive possibilities, so their probabilities sum to 11. A later branch gives a probability conditional on the earlier path; it is not the probability of the complete path.

Suppose machine A supplies 40%40\% of items and machine B 60%60\%. The fault probabilities are 0.10.1 for A and 0.30.3 for B. Select one item at random from this combined output, and let D mean “faulty”.

[DIAGRAM: asset_name: Machine and fault probability tree; asset_slug: machine-fault-tree; caption: Branch probabilities are conditional; terminal probabilities multiply every branch on their path.; description: First branches A with probability zero point four and B with probability zero point six. From A, faulty D has probability zero point one and not faulty zero point nine. From B these probabilities are zero point three and zero point seven. Terminal joint probabilities are zero point zero four, zero point three six, zero point one eight and zero point four two.]
Branch probabilities are conditional

A path probability

Multiply along a complete path:

P(A∩D)=P(A)P(D∣A).P(A\cap D)=P(A)P(D\mid A).

This is the product law printed in the S1 formula booklet. With more stages, each factor is conditional on the earlier selections along that path.

The whole path describes the intersection of its branch events.

Worked example 1

Find the probability that the selected item comes from A and is faulty.

Plan. Follow A then D and multiply those branch probabilities.

P(A∩D)=0.4(0.1)=0.04.P(A\cap D)=0.4(0.1)=0.04.

Answer. 0.040.04.

Check. In a hypothetical batch of 10001000 items with exactly these proportions, 400400 come from A and 4040 of those are faulty: 40/1000=0.0440/1000=0.04.

Change only the machine named in the required path. Its own conditional fault probability must change too.

Worked example 2

Find the probability that the selected item comes from B and is faulty.

Plan. Follow B then D, using B's conditional fault probability.

P(B∩D)=0.6(0.3)=0.18.P(B\cap D)=0.6(0.3)=0.18.

Answer. 0.180.18.

Check. B's two terminal probabilities are 0.180.18 and 0.6(0.7)=0.420.6(0.7)=0.42; they sum back to P(B)=0.6P(B)=0.6.

Do not label A's D branch 0.040.04. That is the terminal joint probability, whereas the branch itself must be P(D∣A)=0.1P(D\mid A)=0.1.

Adding mutually exclusive paths

An event may be reached by several paths. Distinct complete paths cannot describe the same recorded sequence, so add their probabilities.

For the machine tree, a fault occurs along AD or BD:

P(D)=0.04+0.18=0.22.P(D)=0.04+0.18=0.22.

Given a fault, the reference group is the faulty output, so P(B∣D)=0.18/0.22=9/11P(B\mid D)=0.18/0.22=9/11. Multiplying P(B)P(B) by P(D)P(D) would assume an independence which the model does not have.

Consider a different two-stage model. A student succeeds at the first task with probability 0.60.6. Their probability of success at the second is 0.70.7 after a first success, but 0.20.2 after a first failure. Write S for success and F for failure at each stage. The four path probabilities are

P(SS)=0.42,P(SF)=0.18,P(FS)=0.08,P(FF)=0.32.P(SS)=0.42,\quad P(SF)=0.18,\quad P(FS)=0.08,\quad P(FF)=0.32.

They sum to 11, as every possible two-task record is included once.

Worked example 3

Find the probability of exactly one success in this two-task model.

Plan. Exactly one means SF or FS; include both orders and exclude SS.

P(exactly one S)=0.6(0.3)+0.4(0.2)=0.26.P(\text{exactly one S})=0.6(0.3)+0.4(0.2)=0.26.

Answer. 0.260.26.

Check. The other possibilities have zero or two successes, so 1−P(FF)−P(SS)=1−0.32−0.42=0.261-P(FF)-P(SS)=1-0.32-0.42=0.26.

Change only “exactly one” to “at least one”. The SS path now belongs to the event.

Worked example 4

Find the probability of at least one success in the same model.

Plan. Use the complement “no successes”, which is just FF.

P(at least one S)=1−0.4(0.8)=0.68.P(\text{at least one S})=1-0.4(0.8)=0.68.

Answer. 0.680.68.

Check. Direct addition gives 0.42+0.18+0.08=0.680.42+0.18+0.08=0.68. The increase from Example 3 is exactly P(SS)=0.42P(SS)=0.42.

Multiply for one complete sequence; add the different sequences that meet the event. “Exactly one” and “at least one” usually select different path sets.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account