work with a particular set of data prepared by the Department of Justice: the Na

work with a particular set of data prepared by the Department of Justice: the National Prisoner Statistics. This dataset is the result of forty years of data collection on persons incarcerated in the US in state and federal prisons. Today, the National Prisoner Statistics provide a thorough enumeration on key characteristics of the US prison population and allows us to draw a detailed picture of the incarceration system. Looking at these data, we can conclude the US has the most incarcerated people in the world, both in absolute and relative terms. The incarceration rate in the US has increased by approximately 500% in the last 40 years, in part as a result of the increasingly severe punishment of drug-related offenses. This dramatic situation has not affected all people equally though: Black men in the US are six times as likely to be incarcerated as White men and Latinos are 2.5 times as likely. For Black men in their thirties, about 1 in every 12 is in prison or jail on any given day. For more information on the US incarceration system and the possibility of reform, I recommend visiting the website of The Sentencing Project (Links to an external site.).
Your goal in this project is to build an application to visualize incarceration data on a state-by-state level as well as the national level over a period of several decades. You will do this through a graphical user interface (GUI) that will allow the user to input a desired year and a specific incarceration metric to get a detailed map of the United States showing all states colored by the chosen metric. The GUI must also show the historical trend of incarceration for the same metric at the national level and highlight the chosen year. The GUI must work continuously, which means the user must be able to continue to enter different years and/or incarceration metrics and get correct results without re-launching the application from scratch.
1. Read the incarceration data provided and store the information in a MATLAB data structure. Given the functions that will be used in this project, I strongly suggest you use the table data structure.
2. Create a GUI that contains an US map with states colored according to the incarceration data, a 2D plot of national-level incarcerations over time, some objects (textbox, dropdown menu, etc.) for the user to input their chosen year and metric, and a plot button.
3. Update the GUI whenever the user inputs a year and/or metric and pushes the plot button to show all states with their corresponding color in the given year. The plot of national-level incarcerations over time must also be updated every time to highlight the year chosen by the user. I strongly recommend using the geoshow function to plot incarceration data on the US map.
4. Label all figures, buttons, axes, and plots to provide necessary information. This includes a color legend for the US map data as shown in the video.
5. A checkbox or other interactive object allowing the user to switch from raw incarceration data (absolute numbers) to data per thousand people (relative numbers). To do this, I have provided a separate data file with the population of each state (and the national total) for every year considered.

Leave a Reply

Your email address will not be published.