For a while, I thought music was harmful, due largely to pervasive and arbitrary earworms. More recently, I started to find that earworms are ephemeral and lawful. A contrarian belief held like the former for years gets stuck as part of my identity, but maybe I should find the truth.

"Music is harmful" is hard to measure and verify. "Listening to music is harmful" is both easier to measure and more readily useful, for you can make a randomised controlled trial out of it.

Methods

Given that I deliberately listen to music only on rare occasion, it's easy, in my case, to let a column of random booleans in a spreadsheet dictate whether I listen to music each day. Sometimes I forgot to listen to music when the spreadsheet said I should, and sometimes I heard a lot of incidental music on days when the spreadsheet said I should abstain. To account for both cases, I kept a record of whether I actually did listen to music each day. Whether I actually listened to music is the explanatory variable, which ended up 50% correlated (phi coefficient) with whether the random boolean generator said I should.

The response variables are my mood — -1 to 1 — and the song stuck in my head — one of four categories:

  • no song (N)
  • a song played back deliberately (D)
  • a song I heard recently (R)
  • any other song (O)

Both response variables were queried by surprise, 0 to 23 times per day (median 6), constrained by convenience.

Analysis

I ran the experiment over 51 days. In all analysis here, I exclude three long intervals (11 days, 5 days, 4 days) of consecutive musical abstention due to outside constraints, leaving 31 days to examine.

Given these measurements, we can find the effects of listening to music by comparing the averages from days with music to those from days without music. It seems plausible that the effects of music lag or persist past the day of listening. Perhaps the better averages to compare would come from

  • music days, plus days just after music days, versus
  • all other days

What kind of harm do I expect to see from listening music?

  • It could worsen my mood.
  • It could make earworms play for more of the time, i.e. increase the ratio of D+R+O to N.
  • It could make more of my earworms accidental, i.e. increase the ratio of R+O to N+D.
  • It could make whatever particular music I listen to show up more often as accidental earworms, i.e. increase the ratio of R to O.

Results

What does my data say about all that?

 MusicNo musicMusic + next day>1 day since
Days8231615
Average mood0.290.220.280.19
Total D+R+O431409687
Total N16393421
Total R+O341117768
Total N+D25685340
Total R317137
Total O31946461

It appears that listening to music, in the short-term:

  1. makes me a tad happier
  2. makes earworms play in my mind for slightly less of the time
  3. makes accidental earworms (as contrasted with deliberate earworms, or mental quiet) play slightly less of the time
  4. has a weak, ambiguous effect on which songs I get as accidental earworms

Result 1 makes sense, but deserved testing, just to be sure. Results 2 and 3 go against my intuition. I'm less sure what to make of result 4, especially given that it's harder to measure — judging an accidental earworm as "recent" depends on a threshold of recency, which I left ambiguous, and on my memory of what songs I've heard recently, which can mess up on occasion.

Intention-to-treat analysis

If I take the original random boolean in the spreadsheet as the explanatory variable, I get some slightly different results. I did this tabulation later, by suggestion of kqr, so here I have 36 days recorded, instead of 31.

 MusicNo musicMusic + next day>1 day since
Days1719279
Average mood0.20.250.250.2
Total D+R+O9016015595
Total N30425220
Total R+O7313112678
Total N+D47718137
Total R519159
Total O6811211169

Seen this way, the effect of listening to music on my mood is ambiguous, but listening to (intending to listen to) music still decreases how much of the time I get earworms, as well as how much time I get accidental earworms. Listening to music also decreases how much my accidental earworms follow songs I heard recently.

New Comment
6 comments, sorted by Click to highlight new comments since:

One of the highest quality-of-life increases I've ever experienced is when I stopped listening to music with sad lyrics. Crazy how long it took me to realize it was lowering my mood in a persistent, motivation-sapping way.

[-]kqr30

This analysis suffers from a fairly clear confounder: since you are basing the data on which days you actually listened to music, there might be a common antecedent that both improves your mood and causes you to listen to music. As a silly example, maybe you love shopping for jeans, and clothing stores tend to play music, so your mood will, on average, be better on the days you hear music for this reason alone.

An intention-to-treat approach where you make the random booleans the explainatory variable would be better, as in less biased and suffer less from confounding. It would also give you less statistical power, but such is the cost of avoiding false conclusions. You may need to run the experiment for longer to counterbalance.

It appears that listening to music, in the short-term: [...] makes earworms play in my mind for slightly less of the time

Whenever I suffer from an earworm, my solution has for a long time been to just play and listen to that song once, sometimes twice. For some reason, this satisfies my brain and it drops it. Still counter-intuitive, but you might want to try it.


On a completely separate note:

Both response variables were queried by surprise, 0 to 23 times per day (median 6), constrained by convenience.

How was this accomplished, technically? I've long wanted to do similar things but never bothered to look up a good way of doing it.

[-]dkl910

there might be a common antecedent that both improves your mood and causes you to listen to music. As a silly example, maybe you love shopping for jeans, and clothing stores tend to play music, so your mood will, on average, be better on the days you hear music for this reason alone.

There might be a common antecedent that both worsens my mood and causes me to listen to music. As a silly example, maybe I hate shopping for jeans, but clothing stores tend to play music, which actually improves my mood enough to outweigh the shopping. That is, confounding could go both ways here; the effect could be greater than it appears, rather than less.

An intention-to-treat approach where you make the random booleans the explainatory variable would be better, as in less biased and suffer less from confounding.

I'll reanalyse that way and post results, if I remember.

How was this accomplished, technically?

I made a script run in the background on my PC, something like

while true:
    qt = random(0, INTERVAL)
    while time() % INTERVAL < qt:
        sleep(1)
    announce_interruption()
    mood = popup_input("mood (-1 to 1):")
    earworm = popup_input("song in head (N/D/R/O):")
    save_to_log(time(), mood, earworm)
    sleep(INTERVAL - time() % INTERVAL)

The "constrained by convenience" part means that I recorded data when and only when I was at my PC. More reliable would be to run such a script on a device that's with you most of the time, like a smartphone or smartwatch, but I've no such device.

[-]kqr10

That is, confounding could go both ways here; the effect could be greater than it appears, rather than less.

Absolutely, but if we assume the null hypothesis until proven otherwise, we will prefer to think of confounding as creating effect that is not there, rather than subduing an even stronger effect.

I'll reanalyse that way and post results, if I remember.

Yes, please do! I suspect (60 % confident maybe?) the effect will still be at least a standard error, but it would be nice to know.

I made a script run in the background on my PC, something lik

Ah, bummer! I also have this problem solved for computer time, and I was hoping you had done something for smartphone carriage.

(Note, by the way, that a uniformly random delay is not as surprising as an exponentially distributed delay. Probably does not matter for your usecase, and you might already know all of that...)

[-]dkl930

I added intention-to-treat statistics in an addendum.

Very cool!

To deal with the imperfect compliance of the randomization, you could use the "instrumental variables" approach. In this case, since it is (one-sided) noncompliance in an experiment, this amounts to:

  1. Using all of your data (ie, not subsetting the data to periods in which you complied with randomization)
  2. Dividing the observed treatment effect by the fraction of time in which you complied (if I understand correctly, this is 0.5)

I emphasize that this is a very simple econometric technique and does not rely on unreasonable assumptions ("Wald estimator" is another search term here).