Skip to main content

Generate highly personalized music data using Exportify

Spotify generates gobs of data about music. 

Most people have seen the end-of-the-year data Spotify generates for each user about their listening patterns. Most people don't know that Spotify also generates a lot of data about individual songs. Some of it is straightforward: tempo, genre, length. However, Spotify also has its own niche way of quantifying songs: Danceability. Accousticness. Here is a whole list of their variables and descriptions from researchers at CMU: https://www.stat.cmu.edu/capstoneresearch/315files_s23/team23.html

What does this mean for a stats teacher? You have access to highly personalizable data sets, rooted in music, with gobs and gobs of variables for each song...or artist...or album...or year of release...or genre (like, so many ways to divide up your data). 

For instance, I created a data set with Spotify data for 1989 and 1989 (Taylor's Version) to teach paired t-tests. How do Taylor's re-recordings compare to the originals? 

This data is freely available for download. If you are fancy, you can negotiate their API all by yourself. If you aren't fancy (I'm not fancy), you can use Exportify to get at this data.


https://exportify.net/#playlists

Exportify, in a nutshell:

Create playlists on Spotify (I have a free account, and it still works). Connect Exportify with your Spotify account. Download CSVs that have ALL of the data about each song on your playlist. Analyze. I teach intro stats and have already used this to teach t-tests and I am working on a way to use it to teach ANOVA. I bet you could also use this data to teach far more complicated data (multiple IVs, multiple DVs, repeated measures over time) analysis.

How can you use this in class?

Pick your own artist. Have your students pick the artist! 

Which artist's sounds have changed the most if you compare their first album to their most recent album? 

Which K-pop groups differ from one another, and how? 

Which artists have the most variability on a single album? 

What about soundtracks for horror movies versus romances? What about the top ten songs from 2003 versus 2023?

Not only are there endless questions, but I imagine you could come up with data for any kind of test you would ever want your stats babies to learn. 

PS: Hey! If you like this idea and would love a whole stats textbook from the brain of the person who came up with this idea, sign up for more information about my forthcoming book here: https://seagull.wwnorton.com/l/710463/2023-10-26/2tp3nt

Comments

Popular posts from this blog

Ways to use funny meme scales in your stats classes

Have you ever heard of the theory that there are multiple people worldwide thinking about the same novel thing at the same time? It is the multiple discovery hypothesis of invention . Like, multiple great minds around the world were working on calculus at the same time. Well, I think a bunch of super-duper psychology professors were all thinking about scale memes and pedagogy at the same time. Clearly, this is just as impressive as calculus. Who were some of these great minds? 1) Dr.  Molly Metz maintains a curated list of hilarious "How you doing?" scales.  2) Dr. Esther Lindenström posted about using these scales as student check-ins. 3) I was working on a blog post about using such scales to teach the basics of variables.  So, I decided to create a post about three ways to use these scales in your stats classes:  1) Teaching the basics of variables. 2) Nominal vs. ordinal scales.  3) Daily check-in with your students.  1. Teach your students the basics...

Using pulse rates to determine the scariest of scary movies

  The Science of Scare project, conducted by MoneySuperMarket.com, recorded heart rates in participants watching fifty horror movies to determine the scariest of scary movies. Below is a screenshot of the original variables and data for 12 of the 50 movies provided by MoneySuperMarket.com: https://www.moneysupermarket.com/broadband/features/science-of-scare/ https://www.moneysupermarket.com/broadband/features/science-of-scare/ Here is my version of the data in Excel format . It includes the original data plus four additional columns (so you can run more analyses on the data): -Year of Release -Rotten Tomato rating -Does this movie have a sequel (yes or no)? -Is this movie a sequel (yes or no)? Here are some ways you could use this in class: 1. Correlation : Rotten Tomato rating does not correlate with the overall scare score ( r = 0.13, p = 0.36).   2. Within-subject research design : Baseline, average, and maximum heart rates are reported for each film.   3. ...

Andy Field's Statistics Hell

Andy Field is a psychologist, statistician, and author. He created a funny, Dante's Inferno-themed  web site that contains everything you ever wanted to know about statistics. I know, I know, you're thinking, "Not another Dante's Inferno themed statistics web site!". But give this one a try. Property of Andy Field. I certainly can't take credit for this. Some highlights: 1) The aesthetic is priceless. For example, his intermediate statistics page begins with the introduction, "You will experience the bowel-evacuating effect of multiple regression, the bone-splintering power of ANOVA and the nose-hair pulling torment of factor analysis. Can you cope: I think not, mortal filth. Be warned, your brain will be placed in a jar of cerebral fluid and I will toy with it at my leisure." 2) It is all free. Including worksheets, data, etc. How amazing and generous. And, if you are feeling generous and feel the need to compensate him for the website, ...