Coder Social home page Coder Social logo

spotify-analysis's Introduction

Does Song Duration Affect Popularity?

image

Project Overview

This project analyzed whether the duration of a song impacts its popularity on music streaming platforms. The hypothesis was that song duration does have an effect on engagement metrics like number of likes.

The project focused on analyzing songs on Spotify to see if there was a correlation between song length and number of likes. The goals were to:

  • Collect song data from Spotify
  • Clean and process data
  • Analyze if song duration impacts number of likes
  • Determine the ideal song duration for maximum engagement

Data Collection and Cleaning

Song data was collected from an available dataset in Kaggle. The data included attributes like song name, artist, album, release date, genre, and duration.

The raw data went through a cleaning process:

  • Removed duplicates
  • Handled missing values
  • Fixed formatting errors
  • Added columns like length category (short vs long)

The cleaned dataset was then ready for analysis.

Analysis and Modeling

The data analysis focused on comparing the average number of likes for short songs (<3 min) vs long songs (>3 min). Statistical tests were run to see if the difference in means was significant.

Regression modeling was used to determine the ideal song duration that would maximize likes. Different models were tested out, including adding interaction terms.

Key findings:

  • Long songs had significantly more likes than short songs
  • The ideal song duration was between 3.55-4.12 minutes

image

Conclusion

The analysis showed clear evidence that longer song duration leads to increased engagement on Spotify in the form of likes. This could guide musicians and labels looking to boost streams and visibility on streaming platforms. The ideal "hit song" duration seems to be around 4 minutes.

About the Project

This project was completed by Team E5 at USC Marshall School of Business. The team members were:

  • Anqi Luo
  • Antonia Roates
  • Campbell Duncan
  • Farhan Sikder
  • Juan Herrea
  • Marliese Sanabria
  • Nuo Chen
  • XuÿenĀ Tu

The final presentation slide deck and datasets can be found in this GitHub repo. Please contact the team with any questions!

spotify-analysis's People

Contributors

juanpi19 avatar

Watchers

 avatar

Forkers

farhansikder09

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.