Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Stack Overflow Trends Analysis

This project performs an in-depth analysis of programming language trends on Stack Overflow from 2008 onwards using R. It includes data cleaning, statistical testing, time series visualization, and exploration of language popularity over time.


πŸ” Overview

Stack Overflow is one of the largest Q&A communities for programmers. This analysis focuses on understanding how the popularity of different programming languages has evolved over the years by examining the number of questions posted for each language.


πŸ› οΈ Technologies & Libraries Used

  • R Language
  • Libraries:
    • tidyverse
    • lubridate
    • ggplot2
    • dplyr
    • forecast
    • readr

πŸ“ Dataset

The dataset used contains monthly counts of Stack Overflow questions for several programming languages from early 2008. The CSV file includes columns like Date, Python, JavaScript, PHP, SQL, Java, etc.


πŸ“ˆ Key Analyses Performed

1. Data Cleaning

  • Checked and removed missing values
  • Renamed and formatted date columns
  • Filtered data from 2008 onwards

2. Trend Visualization

  • Line plots showing trends of language popularity over time
  • Year-wise and month-wise breakdown of question frequency

3. Statistical Analysis

  • T-tests to assess the impact of specific timeframes (e.g., before/after June 2020)
  • Hypothesis testing for early years (2008 vs 2009)
  • Linear regression to detect trend direction for Python questions

4. Exploratory Data Analysis

  • Pie chart showing distribution of total questions per language
  • Bar chart comparing total question volume by language
  • Histogram and density plots for specific languages
  • Boxplots for cross-language comparison
  • Scatter plots and regression lines for correlation (e.g., Python vs JavaScript)

πŸ“Š Visualizations Included

  • πŸ“ˆ Time Series Plots
  • πŸ“Š Bar Charts
  • πŸ“¦ Boxplots
  • 🧠 T-Test & Hypothesis Testing Results
  • πŸ“‰ Linear Regression Summary
  • πŸ₯§ Pie Charts
  • πŸ“š Histograms & Density Plots
  • πŸ” Correlation Analysis via Scatter Plots

πŸ§ͺ Notable Insights

  • Python has consistently grown in popularity and leads in question volume.
  • JavaScript and SQL also maintain high levels of engagement.
  • Some older languages like Perl and Objective-C show decline over time.
  • Clear shift in question trends before and after 2020 (possibly due to ChatGPT or remote learning trends).

πŸš€ How to Run

  1. Clone the repository
  2. Ensure you have R installed with the listed libraries
  3. Update the path to the dataset in the file_path variable
  4. Run the script to generate all insights and visualizations

πŸ“¬ Contact

linkedin.com/in/ayesha-zahid-4a9046301/ For questions or feedback, feel free to reach out!

About

πŸ“ˆ Which programming languages are hot (or not)? Let’s find out using Stack Overflow trends!

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages