Slashdot Mirror


The Perception of 'Random' on the iPod

Robaato writes "Stephen Levy writes in the Guardian about the perception of randomness, or the lack thereof, on an iPod set to shuffle." From the article: "My first iPod loved Steely Dan. So do I. But not as much as my iPod did.... I didn't keep track of every song that played every time I shuffled my tunes, but after a while I would keep a sharp ear out for what I came to call the LTBSD (Length of Time Before Steely Dan) Factor. The LTBSD Factor was always perplexingly short." My first iPod shuffle refused to let me delete (sigh) Weird Al's Polkamon off of the flash memory.

14 of 292 comments (clear)

  1. And Zonk dupes himself... again... by Anonymous Coward · · Score: 5, Funny

    Is the iPod Shuffle Playing Favorites?

    How about an analysis of the randomness of Zonk dupes. I guess I should be happy it's not a games story.

    1. Re:And Zonk dupes himself... again... by strider44 · · Score: 4, Informative

      I think that the slashdot editors can be forgiven for posting a link to an article on a similar topic a year and a half later...

      That article is btw referenced in this one.

  2. Bias by Anonymous Coward · · Score: 5, Informative
    1. Re:Bias by pchan- · · Score: 5, Informative

      This is exactly what is going on. Good call, AC.

      Some years ago, I worked on an mp3 playing device (no, not Apple). Our users were quite often complaining that our random was not truly random, and seems to be clustering, favoring, disliking some thing or another. Some would swear that there was some intelligence to it, picking particular songs. I've seen the shuffle code, it's a simple array swap. I ran a numerical simulation on the output and found that the distribution of the array elements from their original position equal throughout. Further, there seemed to be no specific clustering, as the probability that any item would end up next to any of its peers was again equally distributed throughout. We had some of the customers submit their own ideas and tried them out in code. In general, we found that we never outperformed the simple array swap in terms of randomness, though most results were about the same.

      The conclusion that we reached: If you have a lot of Jimmy Buffet, you're going to hear a lot of Jimmy Buffet. And on that one occassion that two Buffet songs play back to back, you're going to think to yourself "this random sucks". But it is, in fact, all in your head.

      *I'm sure someone will want to bring up the seed issue. Let's just say that we had it covered.

  3. OCD by eldavojohn · · Score: 5, Insightful
    Or - and here is the nub of an issue that would consume me for more than a year - was the shuffle function, meant to mix up my music collection in a random fashion, actually not random at all?
    There there, Mr. Levy, we'll get you all the randomness you want. In fact, we have a special place filled with randomness and padded white walls! You're going to like it there.

    You know, instead of wasting your interviewee's time, you could have installed a five song list on your iPod and set it to shuffle. You'd have to carefully mark down the track number being played and listen to it for 100 songs. Do this a few times and make sure you're very methodical about what you do. Wipe the iPod, put five songs on it in order and then listen to a hundred songs "randomly." If you start to see a pattern developing or one song is obviously favored over the other, it will begin to show up.

    But on the more technical side, they have to seed the random variable with something. Whether or not it's an internal clock, I'm not sure. Either way, they have to derive a random number and it's possible that their seed isn't good enough or has too few states or is prone to being seeded at the same state, etc. Based on this information, I hate to break it to you but it is very hard to be truly random.
    --
    My work here is dung.
    1. Re:OCD by monoqlith · · Score: 5, Informative

      Not OCD. Sub-clinical schizophrenia. . Read all the way to the end of the article(I'm new here). If you don't want to, I'll summarize: It's more about randomness than the iPod. He eventually realizes his suspicions of programmer malfeasance are in fact an expression of his own favoritism, not the iPod's. In other words, its all in his head. So a worthwhile, interesting article, and even if he could have benefitted by experimenting himself, that wouldn't have made for a very fun read, or an interesting question to ask Steve Jobs while he had the chance.

  4. Old News. by mh101 · · Score: 4, Informative

    I recall The Steve personally addressing this issue in one of his keynotes (although not with iPods, but iTunes). People thought iTunes' shuffle feature wasn't random enough. Steve assured everyone that it indeed was completely random, but then announced that iTunes had a new "Smart Shuffle" option. The description in iTunes is "Smart shuffle allows you to control how likely you are to hear multiple songs in a row by the same artist or from the same album." There's a slider with "More Likely" on one end, "Less likely" on the other end, and "Random" right in the middle. Although this feature is in iTunes, it has not yet made it onto iPods.

    I personally have had it happen where my iPod is in shuffle mode and I've heard not just two songs in a row by the same artist, but a song plays and then the next song from that album follows it. And that's with a library of over 5,000 songs. Naturally it's more likely to happen on a much smaller Shuffle with a fraction of the songs.

    --
    Duct tape is like the Force. It has a light side, a dark side, and it holds the universe together.
  5. Truly Random by sriramv_iyer · · Score: 4, Interesting

    I agree that it is extremly difficlut to be truly random. There are some good ways of initializing the seed in such a way that the pseudo random number generator behaves differently. A good way, done in telecom terminals is to measure the noise at the receiver and then use it to seed the random number generator. Since, the noise is truly random, that is a good way to seed the random number generator. If the costs, are not too high, then it might even be a good idea to read noise (or any truly random parameter) whenever required. That would be close to really random, provided, we can map the random parameter into a quantitative parameter without big errors and approximations.

  6. People are Pattern seekers by BigDiz · · Score: 5, Insightful

    Humans innately seek patterns in things that are random. That's why so many people wear smelly socks because they think they're lucky. Once you identify a supposed "pattern" i.e. non-randomness, you're going to keep noticing instances that fit that pattern, and ignore instances that do not. This is deeply ingrained.

    Think about it, if you're at the roulette table and black has come up four times in a row, how likely are you to bet black? Most people would bet red, because, I mean hey, there's got to be a pattern. But (as I'm sure you all can understand) black has the same probability of occurring again as red does.

    People have had this complaint about all sorts of playlist randomizers (not just iPod), it's just people seeing what isn't there.

  7. Truly, a Slashdot legend by punkass · · Score: 4, Funny

    What, we're losing Anonymous Coward? He's been here since the begining, and he wrote half the posts! OH NOES!!!!1!

    --
    "Nobody owns the fucking words man." - James Dean
  8. RTFA by mh101 · · Score: 4, Informative
    The article actually goes into more depth than people seem to be getting from the summary. The author is not complaining about problems with the shuffle. Rather, he starts by making note of his early observations, then describing his research into music shuffling, and how we perceive patterns where there are none.

    FTFA:
    First of all, note what it doesn't do - it's not like mixing all the songs in the equivalent of a big bucket of lottery balls and picking out the next one. Instead, as the name implies, it shuffles the entire library so as to reorder them, just as a blackjack dealer shuffles a deck of cards. If you listen to the entire library all through, you will hear every song once and once only. What is important, then, is not whether a song is included but how evenly an artist's songs are distributed throughout the list. When I say that Steely Dan is over-represented, it means that the band's songs show up early in the run - it would be like a blackjack dealer whose first hand had aces in it.
    Or
    We perceive trends when there are none. Poker players invariably believe they can lock into streaks. Backgammon champions swear that dice can go hot or cold. Likewise, people think they can cosmically predict what song will come next on their shuffle. The blogger Kapgar, who claimed this power, remembers vividly the times when he predicted a song and the iPod amazingly delivered it. But there may have been a thousand times when his iPod played songs he didn't guess - non-memorable circumstances that, not surprisingly, didn't make an impression.
    --
    Duct tape is like the Force. It has a light side, a dark side, and it holds the universe together.
  9. What you should expect... by YGingras · · Score: 4, Interesting

    A long time ago I was dissatisfied by the lack of random in XMMS so I jumped to the source to see what I could do. I think this was my first contribution to a free software project. Anyway, here is what I found: XMMS keeps two copies of the playlist, one that is in the order you set and one that is "shuffled". This has to be clear, all the tracks in the play list are there exactly once in the shuffled playlist.

    I can't recall when the shuffled playlist was reshuffled but in was not that often, maybe only when you added or removed tracks. So if you like Smoke on Water but that Ballroom Blitz is just two song after that, too bad, you'll always get Ballroom Blitz soon after you double click on Smoke on Water. Technically speaking, the shuffling was perfect, the random generator was properly seeded and they divided in the right way to prevent loosing entropy. The lack of reshuffling was entirely responsible to the perceived lack of randomness.

    So my patch was just that: trigger reshuffling a lot more often. As far as I know this patch was never merged but my copy of XMMS did have the proper random behavior. I don't know if it's the same problem with the iPod. That's something I like with free software: you can fix it!

  10. Similar to radio stations by dodongo · · Score: 4, Informative

    I know there will be snarky +5 Funny comments underneath this (as well there should be), but this system to decrease the perceived randomness is actually really similar to the algorithm most radio stations use when programming their music.

    There's a simple parameter that's set to control, to within one minute, the amount of temporal separation there must be between playing two songs from the same artist, or the same song twice. The radio algorithm is a little more complicated, since songs aren't in just one big batch like the iTunes library, but in different categories, based generally on the perceived desire of target listeners to hear a given new song, or like and identify with a given older song.

    The system is built off the (once literal, now metaphorical) use of index cards: The format clocks say, e.g., at the top of the hour, play a P category song, followed by a B category song, then a G, then an A, etc. You'd have a set of rules, like "don't play the same artist within 45 minutes" or "don't play the same current song within 3 hours", and you'd take the first card in the category that fit all the rules, play it, and move the card to the back of the stack.

    Basically, what Apple is doing with that slider is enabling artist separation control, which is completely one of the illusions radio stations (used to) use to convince you they had every song under the sun available to them.

  11. Humans and dictionaries define random differently by jonadab · · Score: 5, Insightful

    Except for mathematicians and programmers, most think of "random" in a *very* different way from its technical definition. To most humans, saying that a particular sequence is "random" means *guaranteeing* certain things about it. Among them: the same element does not occur back-to-back, EVER, even if there are only a few elements total to choose from. Even more, if there are more than about half a dozen elements, the same element never occurs twice within about five positions. (So if you've got songs 1 through 7 on your iPod, and the first seven played are 5, 3, 7, 2, 4, 1, 6, then the next one has to be 5 or 3, or _maybe_ 7, or it doesn't seem "random" to most people. Yet, the order can't be the same every time through, either.) No element occurs substantially more often than any other element, even over the short term. If the elements have a natural order (e.g., alphabetical), then no three elements that are adjascent in that order can ever occur together in that order, nor should they occur together in the reverse order. (This gets particularly difficult to guarantee when the elements have more than one natural order, e.g., if the elements are people, you can't have three of them in a row by either name or age, or people notice and decide that the order is not random.) Even worse, if the elements can all be categorized into a small number of categories (e.g., by gender), you can't have "too many" from one category in a row. (How many is too many depends on the ratio, but if half of the elements are male and half female, having four of either in a row will make people cry foul, the order is not "random".) If certain elements stand out from the others in some significant way, they can neither occur first nor last. (For instance, if test questions are being drawn from a question bank, neither the easiest nor the hardest question should be first or last; if it is, people will say the order was not random.)

    I could go on and on, but what it really amounts to is that when most people say "random" they mean "carefully arranged in a thoroughly mixed-up order". This is almost the *opposite* of what a mathematician or computer programmer thinks the word "random" means.

    For this reason, when describing a mathematically-random sequence to an end user, I never EVER use the word "random". I generally call it something like "arbitrary" or "unpredictable". This greatly reduces complaints.

    Now, as far as song frequency, I like to rate my tracks on a scale of 1-10, and rig my playlist so that anything under a 6 never plays unless I specifically select it, tracks rated 7 play twice as often as those rated 6, and the frequency keeps going up the higher my rating is. (I only have eight tracks rated as a 10, and they're all things I don't mind hearing back-to-back.) Then if I find a track is playing more often than I like, I figure I rated it too high and cut back its rating.

    --
    Cut that out, or I will ship you to Norilsk in a box.