Skip to content

officialbubies/traffic_accidents-officialbubies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Nashville Traffic Accidents

For this exercise, you have been provided a dataset of traffic accidents that occurred in Davidson County which was retrieved from https://data.nashville.gov/Police/Traffic-Accidents/6v6w-hpcw.

This spreadsheet has been divided into the following sheets:

Use formulas to answer each question. Unless otherwise stated, fill in your answers in the "Analysis" tab.

  1. How many total accidents are contained in this dataset?

  2. What are the earliest and latest records that appear in this dataset?

  3. a. Create a new column to the right of the "Number of Motor Vehicles" column called "Single or Multiple". This column should contain "Single" if the number of vehicles is 1 and "Multiple" if it involved more than one vehicle.
    b. Are there any rows that involved zero vehicles? How many? Make sure that your formula accounts for these cases.
    c. Investigate the rows that have zero vehicles using the FILTER function in the "Zero Car Crashes" sheet. What do you find?
    d. What percentage of crashes are single-car?

  4. How many accidents occurred which are hit and run and had at least one injury?

  5. a. What is the overall average number of injuries?
    b. Go to the "Collision Types" sheet and fill in the table to find the total number of crashes, average number of injuries, and total number of injuries per collision type. For each calculation, write a single formula and copy it down the table. What do you find? (Hint: If you're not sure how to answer this question, revisit the "Conditional functions and lookups" chapter of Data Analysis in Spreadsheets.)

  6. a. Add three new columns, Month, Year, and Hour to the right of the Date and Time column. Use the TEXT function to extract out the Month, Year, and Hour from the "Date and Time" column.
    b. Add one more new column, Weekday, and use the WEEKDAY function to extract out the day of the week from the Date and Time column. Use the TEXT function in combination with the WEEKDAY function to display the result as the name of the weekday (eg. Monday).

  7. Fill in the Hour table in the Analysis spreadsheet to find the number of accidents that occurred for each hour of the day. Again, write a single formula and copy it down the table. Do you see anything unusual? What might be the explanation for this?

  8. Do the same for the year and day of the week. What stands out?

  9. Add a column to the right of the Collision Type Code called "Collision Type". Use the table contained in the Collision Types sheet to fill in this column.

  10. Which interstate has the most accidents between I-24, I-40, I-65, and I-440? Answer this by counting the number of accidents that contain the strings "I 24", "I 40", "I 65", or "I 440" in their Street Address. Hint: You may need to make use of wildcards in combination with the CONCAT function to answer this. Then do the same but search for "I24", "I40", "I65", and "I440" and then "I-24", "I-40", "I-65", and "I-440". Sum the results to get a total count. Bonus: Rather than doing three separate counts and adding, get the total count using a single formula for each interstate.

About

traffic_accidents-officialbubies created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •