<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tejal Desai on Medium]]></title>
        <description><![CDATA[Stories by Tejal Desai on Medium]]></description>
        <link>https://medium.com/@tejaldesai?source=rss-5f07526755ac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Tejal Desai on Medium</title>
            <link>https://medium.com/@tejaldesai?source=rss-5f07526755ac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 21:27:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tejaldesai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Predicting the Influence of Weather on Traffic Collisions in Seattle]]></title>
            <link>https://medium.com/@tejaldesai/predicting-the-influence-of-weather-on-traffic-collisions-in-seattle-b4361f37f953?source=rss-5f07526755ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4361f37f953</guid>
            <dc:creator><![CDATA[Tejal Desai]]></dc:creator>
            <pubDate>Fri, 04 Sep 2020 23:22:16 GMT</pubDate>
            <atom:updated>2020-09-04T23:22:16.217Z</atom:updated>
            <content:encoded><![CDATA[<p>Coursera Data Science Final Project</p><p>By Tejal Desai</p><p>September 4, 2020</p><h3>Weather &amp; Traffic Collisions: How Are They Related?</h3><p><strong>1. Introduction:</strong></p><p>Today’s drivers in Seattle are inundated with several distractions on the road, including changing weather conditions, more drivers being present, city planning, smart phones, and more. With more drivers being on the road today, it is critical for drivers to better understand the various factors that may increase the chance that a driver meets with a severe accident. What I specifically want to understand is the severity of accidents that occur when the weather indicates it was raining, specifically looking at injury collision.</p><p>Audience:</p><p>The audience for this analysis will be drivers as well as driving trainers; by having more of this information at hand, drivers can be more cautious and safe given the influence of various factors on driving conditions.</p><p><strong>2. Data</strong></p><p>The data I will be using to execute this data will be from this link, illustrating various intersections in Seattle, weather conditions, types of accidents, locations, and more. This data is dated from 2020 and has been pulled from 20 years’ of collision records from the Seattle Police Department. This will, I hope, help us understand the impact that weather may have on drivers collisions today: <a href="https://s3.us.cloud-object-storage.appdomain.cloud/cf-courses-data/CognitiveClass/DP0701EN/version-2/Data-Collisions.csv">https://s3.us.cloud-object-storage.appdomain.cloud/cf-courses-data/CognitiveClass/DP0701EN/version-2/Data-Collisions.csv</a></p><p>I am using a Jupyter notebook on my IBM Cloud for my analysis, and using Github as my main external repository to illustrate my analysis I will be performing. I am using various Python libraries for my analysis.</p><p><strong>3. Methodology<br></strong>This section represents the main component of this report; here, I will describe any exploratory data analysis I performed and why I did such analysis.</p><p>First, I uploaded the CSV file to my Jupyter notebook. I spent time cleaning the data, since there were duplicates and missing data fields in the spreadsheet. I then wanted to list the types of data to identify the types of data listed in the CSV using dtypes. Since I wanted to understand the number of accidents and probability of accidents that took place with rainy weather, I chose to focus on data fields: SEVERITYDESC, WEATHER, and ROADCOND (assuming rain = wet road conditions).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*NChomxW_N0FH9tp8" /></figure><p>I think wanted to count the number of weather types from the data (see below) in a new dataset:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*tULqXaZKqEqSbudL" /></figure><p>This helped illustrate that over 33,000 records of collisions were during rainy weather; now that I understood the numbers, I wanted to see whether my prediction was accurate. I wanted to run the similar data county for the types of severity (Property Damage vs Injury) to understand the degree to which these data were correlated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/0*FXRJfy5qFxzJ1Dqm" /></figure><p>Unfortunately, I tried to run a linear regression between these but did not receive an output from my code. I was wondering whether this was an issue with my code or my notebook. When I refreshed my notebook, my outputs and visualizations disappeared. Here are the data to show the direction that I was trying to move in:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/0*JOvYTlRrVGiPTo6j" /></figure><p><strong>4. Results</strong></p><p>I found that my analysis did not yield a strong connection between weather and the severity description (specifically, the correlation or connection between raining and injury collision damange. Since I decided to analyze whether rainy weather might correlate with greater instances of injury collision, I stuck with these variables, while also testing for road conditions (assuming rainy = wet road conditions) and location. However, I found that adding in more variables complicated my model and ended up focusing on severity code and weather. For some reason, although I tried to calculate correlation, develop a matplot around the data, my notebook could not process the data. I was stumped. I then created a dataframe around severity cde and weather, finding that there was more connection between severity code 2 and rainy weather. I wanted to go back and change all my variables to test sensitivity, but found that it is best to stay focused on limited data points to find the most accuracy.</p><h3>5. Discussion</h3><p>Here I will discuss any observations I noted and any recommendations I can make based on the results. I find that rainy weather does have an impact on severity of accidents and the probability of getting into an injurious accident. I would use these findings to recommend to reporters informing drivers of traffic conditions that rain means increased accident probability; that drivers should be extra cognizant when driving in rainy conditions.</p><p><strong>6. Conclusion</strong></p><p>In conclusion, although rainy weather can have an impact on the possibility of drivers getting into injurious accidents, there may be other factors — — such as specific parts of the city, blind spots, lightning conditions, and more, that may impact the probability of getting into an accident. Given Seattle’s rainy climate, and the increasing population of the city, more accidents could be on the horizon; it may be wise for the city to change speed limits or create more awareness for drivers to understand hazardous driving conditions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4361f37f953" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>