A music app shuffles a playlist of different songs, which include two songs and , so that all playing orders are equally likely. Given that song is played before song , find the probability that is the first song played.
Practice Questions · Question 20 of 30
A music app shuffles a playlist of 5 different songs, which include two songs P and Q , so that all 5!
For events and with , . If , then .
Given: all orders are equally likely. To find: , where : " is played first" and : " is played before ".
Step 1 — probability of . In every order, either comes before or comes before . Swapping the positions of and pairs these orders off one-to-one, so exactly half of the orders are in :
Step 2 — probability of . If is first, then is certainly before , so and . With fixed in the first place, the other songs can be arranged in ways:
Step 3 — the conditional probability.
Answer: .
Note: Without the information, is first with probability . Knowing that comes before doubles this, because it rules out half of the orders but none of the orders in which is first.
