I am not a math guy, but I could probably figure this out if I put enough time into it. Unfortunately it's late and I am sure asking people here will come up with a correct answer, more reliably than I could. I'm asking purely out of curiosity and thank you in advance for your help.
Let's assume a theoretical iPod with unlimited capacity, with a shuffle songs feature that truly randomly shuffled the songs beyond any possible detection of non-randomness.
Now let's assume one begins loading albums into this iPod with exactly 10 tracks per album; the number of tracks never varies - every album has exactly 10 tracks.
Long story short, what I'm trying to figure out is, is there a way to calculate the probability that if the entire contents of the iPod are played at random, at least once the shuffler will play two songs from the same album in a row based on the number of albums loaded onto this theoretical iPod and the number of tracks on each album, assuming all had the same number of tracks? Also assume every track must play once before it repeats.
For example, if there are only two albums, then there will be 20 songs; the chances of the first two shuffled tracks coming from the same album are 9 out of 19 or 47.37 percent (since Track 1 will come from either album A or B, and then there will be 19 tracks left, with 9 of them being from the same album and 10 of them being from the other album). But I'm not sure how to extend this sort of calculation to a playback of all 20 tracks; what are the chances that at least once the same album will appear twice in a row (I'm sure it's very high, like 99% plus, but I'm not sure how to calculate it).
I'm trying to figure out the likelihood of the same album appearing twice in a row with, say, 100 albums on the iPod, 1000, 5000, a trillion, etc. Is there a straightforward formula to figure this out?
One reasons logically that as the number of albums goes up, the chances of any two tracks played in a row coming from the same album go down - but, at the same time, playing through the entire iPod's contents, we will also have an increase in the number of individual chances of this event occurring (if you have 1,000 songs there are 999 chances of two songs in a row being from the same album, although any two aren't particularly likely to match, whereas if you have 20 songs are only 19 chances of this happening - but a very good chance for any two).
Again, thanks in advance for help.
Let's assume a theoretical iPod with unlimited capacity, with a shuffle songs feature that truly randomly shuffled the songs beyond any possible detection of non-randomness.
Now let's assume one begins loading albums into this iPod with exactly 10 tracks per album; the number of tracks never varies - every album has exactly 10 tracks.
Long story short, what I'm trying to figure out is, is there a way to calculate the probability that if the entire contents of the iPod are played at random, at least once the shuffler will play two songs from the same album in a row based on the number of albums loaded onto this theoretical iPod and the number of tracks on each album, assuming all had the same number of tracks? Also assume every track must play once before it repeats.
For example, if there are only two albums, then there will be 20 songs; the chances of the first two shuffled tracks coming from the same album are 9 out of 19 or 47.37 percent (since Track 1 will come from either album A or B, and then there will be 19 tracks left, with 9 of them being from the same album and 10 of them being from the other album). But I'm not sure how to extend this sort of calculation to a playback of all 20 tracks; what are the chances that at least once the same album will appear twice in a row (I'm sure it's very high, like 99% plus, but I'm not sure how to calculate it).
I'm trying to figure out the likelihood of the same album appearing twice in a row with, say, 100 albums on the iPod, 1000, 5000, a trillion, etc. Is there a straightforward formula to figure this out?
One reasons logically that as the number of albums goes up, the chances of any two tracks played in a row coming from the same album go down - but, at the same time, playing through the entire iPod's contents, we will also have an increase in the number of individual chances of this event occurring (if you have 1,000 songs there are 999 chances of two songs in a row being from the same album, although any two aren't particularly likely to match, whereas if you have 20 songs are only 19 chances of this happening - but a very good chance for any two).
Again, thanks in advance for help.
Last edited: