Built with datascienceportfol.io

Bike-sharing-demand-analysis

Project photo

Project links

Skills

About this project

Bike Sharing Demand Analysis & Hypothesis Testing

Project Overview

This project analyzes the Bike Sharing dataset (day.csv) to understand how external factors such as seasonality, weather, and holidays impact daily rental demand. The study applies exploratory data analysis (EDA), statistical hypothesis testing, and data visualization techniques to uncover patterns in user behavior and validate statistical assumptions.

Using Python, I performed data cleaning, descriptive statistics, hypothesis testing (T-tests, ANOVA, Chi-Square), correlation analysis, and visualizations to identify significant drivers of demand and provide actionable business recommendations.

Key Responsibilities

Data Preparation & Cleaning

  • Imported daily bike rental data (731 records, 16 features).

  • Inspected data using .info(), .describe(), and handled missing values.

  • Standardized categorical variables such as season, holiday, and weather.

  • Created subsets of data (holiday vs. non-holiday, seasonal groups) for statistical testing.

Exploratory Data Analysis (EDA)

  • Generated descriptive statistics: mean, median, variance, skewness, and kurtosis.

  • Identified distribution characteristics with histograms, density plots, and boxplots.

  • Analyzed correlations between numerical variables using scatterplots and heatmaps.

Hypothesis Testing

  • Independent T-Test: Compared average demand between holiday and non-holiday days.

  • ANOVA: Tested differences in mean demand across four seasons.

  • Chi-Square Test: Examined association between weather conditions and season.

  • Correlation Analysis: Evaluated relationships between demand, temperature, humidity, and windspeed.

Business Insights & Recommendations

  • Seasonal demand patterns suggest higher rentals in summer and fall, requiring fleet scaling.

  • Holiday demand differences were not statistically significant — promotions could improve usage.

  • Poor weather strongly impacted rentals; interventions such as rain-gear incentives may help.

  • Temperature showed strong positive correlation with demand, suggesting potential for dynamic pricing.

Key Results

  • Significant seasonal effects on demand confirmed by ANOVA (p < 0.05).

  • No significant difference in rentals between holidays and non-holidays (T-test p > 0.05).

  • Strong correlation between temperature and demand (+0.62).

  • Chi-Square test indicated a significant association between season and weather conditions.

  • Heatmaps and scatterplots visually confirmed relationships among variables.

Challenges Addressed

  • Managing a dataset with both categorical and continuous variables.

  • Ensuring statistical assumptions (normality, variance equality) before hypothesis testing.

  • Avoiding misinterpretation of correlations and statistical significance.

  • Translating statistical outputs into business recommendations.

Future Scope

  • Build predictive models (Linear Regression, Random Forest) to forecast demand.

  • Incorporate time-series analysis for trend forecasting.

  • Extend analysis with external data (public holidays, weather APIs).

  • Deploy as a dashboard (Streamlit/Power BI) for real-time monitoring.

Skills Demonstrated

Python, Pandas, NumPy, Matplotlib, Seaborn, Data Cleaning, Exploratory Data Analysis, Data Visualization, Descriptive Statistics, Hypothesis Testing (T-Test, ANOVA, Chi-Square), Correlation & Covariance Analysis, Statistical Modeling, Business Insights, Jupyter Notebook, Git & GitHub, Portfolio Building