gjohl / noiseandsilence

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

noiseandsilence

Disruption Research

Author: Gurpreet Johl, 2019

Proposal

"Music these days is all about X, Y, Z; in my day it was different". But was it? In this research piece, I aim to identify trends in the topics of popular music across time and place, and what this tells us more broadly about the society in which the music was created and consumed. Has there been a marked shift in the language and themes of popular music? If so, does this reflect the social and political atmosphere? Does it reflect changing demographics in listeners? Or the musicians themselves? By applying a rigorous approach to answering whether music has changed, we can then consider how and even why it has changed, and the wider implications.

I propose to take a quantitative approach to analysing the most popular songs in a time period utilising a field of machine learning called natural language processing (NLP). Using this, we can analyse the words used in songs to answer questions such as how wide is the vocabulary used in a song, or of a particular artist. We can go further and apply a technique called sentiment analysis to classify text in to subject matters. We can compare the frequency of subject matters over time to gain an insight into changes in the prevailing mood.

I will take lists of number one songs in a particular country (e.g. the US Hot 100 Billboard chart) as a measure of what was popular at a given point in time. I then take the lyrics of each song as the raw data for my analysis. Applying sentiment analysis to the text, we can classify the subject matter to pick out, say, the top 3 topics in that song. We can then map out how the frequency of these subjects evolves over time. We can also compare subjects cross-sectionally; at a given point in time, how does the frequency of topics compare between countries.

There are a number of additional avenues of research that could be interesting to explore using this data set and approach. For example, how repetitive is a song, are there notable difference between songs in different chart positions (i.e. the number 1 vs the number 100 song).

Pipeline for quant analysis

  • Find lists of number one songs in various countries - start with US and UK
  • Scrape lyrics for each of those songs
  • Analyse data
    • preprocess text
    • analyse number of unique words
    • apply sentiment analysis
  • Collate point-in-time data on frequency of topics
  • Plot charts (or Tableau visualisations?) of interesting results

About the author

I currently work as a quantitative researcher for a large systematic hedge fund. In other words, I spend my days trawling through large amounts of data to find useful and interesting things which, in this case, we then use to trade financial markets. In even fewer words, I'm basically a nerd who chomps through numbers all day and does some maths with them. And I bloody love it.

I'm a self-taught guitarist and have been playing for well over 10 years, and been playing well for some of those years. I also dabble at piano and play in a band in London.

I graduated longer ago than my boyish looks would suggest with a Masters of Engineering from Oxford University.

Web Scraping

Chart info

We will first focus on scraping data for two countries: US and UK. I'll attempt to keep the framework as generic as possible so that adding other countries in future does not add much extra effort.

As an aside, an interesting Washington Post article on the relevance (or lack thereof) of charts on popularity.

Sources of info:

Following https://medium.freecodecamp.org/how-to-scrape-websites-with-python-and-beautifulsoup-5946935d93fe as an intro

About


Languages

Language:Python 100.0%