Regression Modeling / Bike-Sharing Demand

Seoul Bike Regression

A statistical regression project for modeling Seoul bike-sharing demand using weather, seasonal, calendar, and operational variables. The workflow includes exploratory analysis, linear regression, AIC-based model selection, residual diagnostics, and multicollinearity checks.

Project Type

Academic Data Analysis

Dataset

Seoul Bike Sharing

Methods

Linear Regression / AIC

Tools

R / Statistics

Project Overview

This project analyzes Seoul bike-sharing demand with a regression-based workflow. The goal is to understand how rental bike demand changes with temperature, humidity, wind speed, visibility, season, holidays, working days, and other contextual variables.

The project focuses on interpretable statistical modeling rather than black-box prediction. It demonstrates the full modeling process from exploratory analysis to model specification, variable selection, diagnostics, and interpretation.

Regression AIC VIF Residual Diagnostics R

Dataset and Variables

The dataset contains hourly bike rental counts in Seoul together with weather and calendar variables. These variables are useful for studying mobility patterns and estimating demand under different environmental and temporal conditions.

Variable Group Examples Role in Analysis
Target variable Rented Bike Count Response variable for regression modeling
Weather variables Temperature, humidity, wind speed, visibility, solar radiation, rainfall, snowfall Explain environmental impact on demand
Calendar variables Hour, season, holiday, functioning day Capture daily, seasonal, and operational demand patterns
Categorical variables Season, Holiday, Functioning Day Used as factor variables in the regression model

Analysis Objectives

  • Explore the relationship between rental bike count and weather/calendar features.
  • Build interpretable linear regression models for demand analysis.
  • Use model selection methods such as AIC to identify relevant predictors.
  • Check regression assumptions using residual plots and diagnostic measures.
  • Evaluate multicollinearity using VIF analysis.
  • Summarize the main drivers of bike-sharing demand in a clear statistical report.

Methods

The project applies classical statistical modeling methods. These methods are useful because they provide interpretable coefficients and allow the analyst to understand how each variable contributes to the expected rental count.

Method Purpose
Exploratory Data Analysis Understand distributions, missing values, relationships, and feature patterns
Linear Regression Estimate the relationship between predictors and rented bike count
AIC-Based Selection Compare candidate models and select a parsimonious model
Residual Diagnostics Check linearity, constant variance, outliers, and model fit
VIF Analysis Assess multicollinearity between explanatory variables

Workflow

  1. Loaded and inspected the Seoul bike-sharing dataset.
  2. Cleaned variable names and prepared numerical and categorical features.
  3. Explored demand patterns by weather, season, holiday, and functioning day.
  4. Fitted baseline and extended linear regression models.
  5. Applied AIC-based variable selection to refine the model.
  6. Analyzed residuals and diagnostic plots to evaluate model assumptions.
  7. Checked multicollinearity using variance inflation factors.
  8. Interpreted the final model in terms of demand-driving variables.

Main Findings

The analysis showed that bike demand is strongly related to temperature, time-related variables, seasonality, and operational conditions. Demand generally increases under favorable weather conditions and changes substantially across seasons and hours.

The model also highlighted the importance of checking assumptions. Some patterns in the residuals indicate that bike demand is not perfectly linear and may require transformations, interaction terms, or more flexible models in a more advanced extension.

Temperature One of the most important demand-related variables.
Season and hour patterns Capture strong temporal and behavioral differences in bike usage.
Rainfall and snowfall Usually associated with lower bike rental demand.
Functioning day Important operational feature because no demand is expected when the service is not functioning.

Diagnostics and Model Quality

Regression diagnostics were used to assess whether the selected model provides a reasonable statistical explanation. Residual plots, fitted-value comparisons, and multicollinearity checks helped identify strengths and limitations of the linear model.

  • Residual diagnostics were used to inspect deviations from model assumptions.
  • VIF analysis helped detect correlated predictors.
  • AIC-based selection supported a more compact model specification.
  • The final model is interpretable but not necessarily optimal for pure prediction.

Limitations and Possible Extensions

  • A linear model may not fully capture nonlinear demand patterns.
  • Interactions between temperature, season, and hour could improve the model.
  • More advanced models such as random forests, gradient boosting, or time-series models could improve predictive performance.
  • The project is mainly a statistical modeling and interpretation exercise, not a production forecasting system.

Outcome

This project strengthened my ability to perform a complete regression analysis workflow, including exploratory analysis, model building, model selection, residual diagnostics, and statistical interpretation.

It is a useful portfolio project for demonstrating classical statistical modeling, analytical reasoning, and clear communication of data-driven findings.

Portfolio relevance: Regression modeling, statistical interpretation, model diagnostics, and analytical reporting.