Skip to content

Statistical analysis of Spotify's top-streamed songs in 2023 with interactive visualizations, feature correlations, and temporal trends. Includes personal insights and product recommendations based on audio features, BPM, energy, and valence. Fully reproducible workflow in RMarkdown.

License

Notifications You must be signed in to change notification settings

ShiriCodes/spotify-2023-data-analysis

Repository files navigation

Spotify 2023 Streaming Analysis

Author: ShiriCodes
Live Report: View Online


📌 Overview

This project presents a statistical analysis of Spotify’s top-streamed songs in 2023, exploring:

  • Danceability, energy, valence, BPM, and musical mode
  • Temporal trends and correlations
  • Streaming success patterns

The project also includes personal insights and product recommendations derived from the analysis, highlighting trends and patterns in Spotify's top-streamed songs. All analysis was performed in R and organized using RMarkdown, producing an interactive HTML report.


🛠 Tools & Methods

  • R packages: ggplot2, dplyr, e1071, knitr
  • Statistical methods:
    • Descriptive stats (mean, median, std, skewness)
    • t-tests (e.g., before vs after 2020, major vs minor mode)
    • Bootstrap confidence intervals
    • Correlation analysis & multiple testing corrections

🌟 HTML Report Features

  • Interactive Table of Contents – Navigate easily
  • Responsive Design – Works on desktop & mobile
  • Dark Mode Support – Follows system preference
  • Expandable Code Blocks – Click SHOW to view underlying R code

🔹 Repository Contents

File Description
Spotify-2023-Analysis.R R script with all statistical calculations & plots
Spotify-2023-Analysis.Rmd Full RMarkdown report with narrative + code
index.html Knitted interactive HTML report
spotify-2023-clean.RData Cleaned dataset used for analysis
LICENSE MIT license

⚡ Explore the Project

  1. View the Live Report: Interactive HTML
  2. RMarkdown Workflow: Open Spotify-2023-Analysis.Rmd in RStudio
  3. Reproduce in R: Run Spotify-2023-Analysis.R with the dataset in your working directory

🔗 Portfolio

Explore more of my projects: ShiriCodes GitHub

About

Statistical analysis of Spotify's top-streamed songs in 2023 with interactive visualizations, feature correlations, and temporal trends. Includes personal insights and product recommendations based on audio features, BPM, energy, and valence. Fully reproducible workflow in RMarkdown.

Topics

Resources

License

Stars

Watchers

Forks