North Carolina Traffic Stops

Project Summary

In this Data Expedition, Duke undergraduates were introduced to a real world traffic citation data set. Provided by Dr. Frank R. Baumgartner, a political scientist at UNC, the data consist of 15 years of traffic stops, with over 18 million observations of 53 variables.

Themes and Categories
Year
Contact
Paul Bendich
bendich@math.duke.edu

Graduate student: Derek Owens-Oas

Faculty instructor: David Banks

Course: STA 111 - Probability and Statistical Inference

  • Introduced Duke undergraduates to a real world data set.
  • Explored 15 years of traffic stop data, with 18 million observations of 53 variables.
  • Students collaborated to answer relevant research questions using probability and statistics.
  • Used statistical software to create pie charts, histograms, scatter plots, and other informative graphics.

Summary

Students collaborated to explore the data and answer relevant research questions using probability and statistics. Furthermore, STATA, a statistical software package, was used to create pie charts, histograms, scatter plots, and other informative graphics. 

Procedures

In particular, data were stored in 17 large .dta files, each containing a sizable number of stops from years spanning 2000 to 2014. Each file corresponds either to one of 14 counties in North Carolina, Highway Patrol, DMV (Division of Motor Vehicles), SHP Motor Carriers (State Highway Patrol), or Other. Using STATA, students navigated the .dta files, selecting one county to focus on for deeper analysis.

Each traffic stop within a .dta file consists of 53 variables, including details such as the age, race, and sex of the driver; the city in which the stop occurred; and whether a search occurred. However, some of the variables are irrelevant to many of the stops. For instance, one variable, ounces, tells the number of ounces of illicit contraband found in the vehicle. For most traditional stops this is not applicable. This naturally exposes the concept of conditional probability, so that information can be extracted from relevant subsets of data. 

To guide exploration, students were prompted by a variety of questions, some very open ended. A few sample questions are provided below:

  • For what proportion of all stops was information collected about whether the vehicle was searched? Of those for which information is available, what proportion involved vehicle searches?
  • Make a histogram of the month variable and the year variable. Carefully explain what these plots show. Do you notice any apparent trends in number of tickets throughout the year or over the years?
  • Among all stops in which a driver was arrested, make a pie chart displaying proportion breakdown by race. Do you think this finding is indicative of racism? Why or why not? 
  • Give another theoretical example of officer prejudice and describe how basic statistics, probability, or data visualization (in STATA) could be used to investigate whether there is supporting evidence.

In summary, the questions required students to utilize basic probability and statistics, to visualize and explore data graphically, and to think critically about potential real-world problems that can be investigated. 

Related Projects

KC and Patrick led two hands-on data workshops for ENVIRON 335: Drones in Marine Biology, Ecology, and Conservation. These labs were intended to introduce students to examples of how drones are currently being used as a remote sensing tool to monitor marine megafauna and their environments, and how machine learning can be used to efficiently analyze remote sensing datasets. The first lab specifically focused on how drones are being used to collect aerial images of whales to measure changes in body condition to help monitor populations. Students were introduced to the methods for making accurate measurements and then received an opportunity to measure whales themselves. The second lab then introduced analysis methods using computer vision and deep neural networks to detect, count, and measure objects of interest in remote sensing data. This work provided students in the environmental sciences an introduction to new techniques in machine learning and remote sensing that can be powerful multipliers of effort when analyzing large environmental datasets.

This two-week teaching module in an introductory-level undergraduate course invites students to explore the power of Twitter in shaping public discourse. The project supplements the close-reading methods that are central to the humanities with large-scale social media analysis. This exercise challenges students to consider how applying visualization techniques to a dataset too vast for manual apprehension might enable them to identify for granular inspection smaller subsets of data and individual tweets—as well as to determine what factors do not lend themselves to close-reading at all. Employing an original dataset of almost one million tweets focused on the contested 2018 Florida midterm elections, students develop skills in using visualization software, generating research questions, and creating novel visualizations to answer those questions. They then evaluate and compare the affordances of large-scale data analytics with investigation of individual tweets, and draw on their findings to debate the role of social media in shaping public conversations surrounding major national events. This project was developed as a collaboration among the English Department (Emma Davenport and Astrid Giugni), Math Department (Hubert Bray), Duke University Library (Eric Monson), and Trinity Technology Services (Brian Norberg).

Understanding how to generate, analyze, and work with datasets in the humanities is often a difficult task without learning how to code or program. In humanities centered courses, we often privilege close reading or qualitative analysis over other methods of knowing, but by learning some new quantitative techniques we better prepare the students to tackle new forms of reading. This class will work with the data from the HathiTrust to develop ideas for thinking about how large groups and different discourse communities thought of queens of antiquity like Cleopatra and Dido.

Please refer to https://sites.duke.edu/queensofantiquity/ for more information.