Shuffling Songs probability question

  • Context: Undergrad 
  • Thread starter Thread starter Kyuutoryuu
  • Start date Start date
  • Tags Tags
    Probability Statistics
Click For Summary

Discussion Overview

The discussion revolves around calculating the probability of a specific favorite song being selected within the first 34 songs played in a shuffle mode from a library of 354 songs. The problem involves understanding the implications of randomization in song selection and the mathematical approaches to determining this probability.

Discussion Character

  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents a calculation method for determining the probability of the favorite song being selected within the first 34 songs, leading to a result of 34/354.
  • Another participant confirms the calculation and presents an alternative approach to arrive at the same result, emphasizing clarity in the method.
  • A third participant suggests a common technique of calculating the probability of the event not occurring and subtracting from 100% to find the desired probability.
  • A fourth participant agrees with the correctness of the calculation but notes that the approach is overly complicated, reiterating the result of 34/354.
  • A fifth participant introduces a different perspective on the nature of shuffling, suggesting that the calculation should consider the random selection of orderings rather than individual selections, leading to a different probability expression.

Areas of Agreement / Disagreement

Participants generally agree on the final probability result of 34/354, but there are competing views on the methods used to arrive at this result and the assumptions regarding the nature of the shuffle process.

Contextual Notes

There are unresolved assumptions regarding the definition of "shuffle" and whether it implies a random selection of orderings or individual song selections. The complexity of the calculations and the interpretations of randomness in song selection are also points of contention.

Kyuutoryuu
Messages
5
Reaction score
1
Hello. I have the following problem:

Let's say you have 354 songs in your entire music library. And let's say you started playing those songs, in shuffle mode, starting from the very first (random) song. Assuming perfect randomization, let's say you are now on the 34th random song in your shuffle. If you have one specific favorite song in your entire library, what is the probability that your specific favorite song is selected either as the 34th song or earlier?

I calculated the probability as follows:

(1/354) + (353/354)(1/353) + (353/354)(352/353)(1/352) + ... + (353/354)(352/353)(...)(325/326)(1/325)

Simplification of terms leads to (1/354) + (1/354) + (1/354) + ... + (1/354)

..which in turn leads to 34(1/354) = (34/354).Was this probability value calculated correctly?

(In case you're wondering, the method I used was to add all of the probabilities of selecting your favorite song at each specific shuffle count. Each grouping of parentheses represent each individual probability, and the third grouping, for example, was the probability that the favorite song did not come up on either of the first two songs but did come up on the third song).
 
Physics news on Phys.org
The probability that it has not been selected is (353/354)(352/353)...(320/321)=(320/354) which gives the same result you got.

I believe it is clearer this way.
 
Usually these kind of problems are solved by calculating the probability of the event not happening and then subtracting this number from 100%.
 
The calculation is correct, but as you can guess from the result, it is way too complicated.

The probability that your song is in one of the first 34 places of 354, for a perfectly random distribution, is 34/354.
 
This assumes that a shuffle is choosing one of the 354! orderings at random (analogous to shuffling a pack of cards) when mfb's comments are obviously the way to do it. The remarks about calculating the probability of not happening apply when the songs are chosen at random from the whole set for each play when the probability is 1-(1-\frac{1}{354})^{34} which is only approximately \frac{34}{354}.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K