Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 7, 2026. It is now read-only.

azrabano23/trafficanalysis_r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

πŸš— Data Analysis on Traffic Accidents

πŸ“Œ Dataset Information

  • πŸ“‚ Source: Kaggle
  • πŸ”— Link: Traffic Accidents Dataset
  • 🎯 Purpose: Analyze traffic accident trends and derive insights to inform public safety strategies and policy decisions.

❗ Problem Statement

Traffic accidents are a leading cause of death and injury worldwide, resulting in millions of lives lost or impacted each year.

πŸ“‰ According to the World Health Organization (2023), approximately 1.19 million people die each year due to road traffic crashes, and tens of millions more suffer non-fatal injuries, often with long-term consequences.
(Source: WHO Global Status Report on Road Safety, 2023)

In the U.S. alone, speeding, distracted driving, and adverse weather continue to be major contributors to fatal crashes. By analyzing patterns in accident data, we can uncover critical risk factors, high-risk timeframes, and environmental triggers β€” helping policymakers, urban planners, and law enforcement develop more effective prevention strategies.


πŸ“– Table of Contents

  • πŸ† Event Participation
  • πŸ“Š Analysis Objectives
  • πŸ› οΈ Methodology
  • πŸ”‘ Key Findings
  • 🚦 Preventive Measures
  • 🏁 Conclusion
  • πŸ“œ License

πŸ† Event Participation

  • πŸ›οΈ Competition: Spring 2025 Datathon hosted by Bits
  • πŸ₯‰ Achievement: Honorable Mention (3rd Place)
  • πŸ‘₯ Team Members: Preet Patel, Azra Bano, Avani Kadlaskar, and Prisha Barot

πŸ“Š Analysis Objectives

  • πŸ” Identify Common Causes: Environmental, human, and vehicular factors contributing to accidents
  • ⏳ Determine High-Risk Timeframes: Analyze time-of-day, day-of-week, and seasonal trends
  • πŸ™οΈ Compare Urban vs. Rural Patterns
  • 🌧️ Study Weather Impact on Severity

πŸ› οΈ Methodology

πŸ–₯️ Tools Used

  • R Programming Language
    • For data cleaning, wrangling, visualization, and statistical analysis

πŸ“Š Exploratory Data Analysis (EDA)

  • πŸ“Œ Accident frequency by hour/day/month
  • 🌦️ Correlation between weather (rain, fog, snow) and accident severity
  • πŸš₯ Location-based comparisons (urban vs. rural)
  • πŸ‘€ Behavioral indicators like speeding or distracted driving

πŸ”¬ Example R Code for Data Import

# Load dataset
traffic_data <- read.csv("accidents.csv")
# Quick summary
summary(traffic_data)

πŸ”‘ Key Findings

  • ⏱️ Peak Accident Hours: Higher occurrences during rush hours (7–9AM, 4–7PM) and late nights (11PM–2AM)
  • 🌧️ Weather Impact: Rain and fog correlate with a significant increase in accident rates
  • πŸ™οΈ Urban vs. Rural: Urban areas have more frequent accidents, while rural crashes tend to be more severe
  • πŸš— Human Factors: Distracted driving and speeding remain top behavioral risks

🚦 Preventive Measures

πŸ“œ Policy Recommendations:

  • πŸ›‚ Enhanced traffic monitoring using sensors and cameras in high-risk zones
  • 🚦 Stricter speed regulation enforcement during peak accident times
  • πŸ“± Awareness campaigns targeting distracted driving and impaired driving

🏁 Conclusion

The data reveals that traffic safety is deeply influenced by time, weather, and human behavior. With these insights, stakeholders β€” from local governments to national agencies β€” can adopt data-driven strategies to reduce accidents, save lives, and create safer roads for everyone.


πŸ“œ License

This project is open-source and available for educational and research use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • R 100.0%

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /