MAT 5335 Project 10 1. Read Ch 5 WMD by Mon 10 Apr due Wed 12 Apr 2. Monte Carlo Simulation Handout You want to determine if it is worth it to purchase the 2 year warranty that costs $200. a. Given the exponential and normal distributions, generate random sample of the repairs during a two year period and corresponding repair costs. Do this n=100, 1000, 10000 times. b. Then construct a histogram of the total cost; include the median and the mean. c. Also determine the mean number of repairs during the first two years. d. Would you buy the warranty? Explain. 3. You will need the 2008-2016 file which has already been downloaded in the virtual desktop or can be found here: https://github.com/tonmcg/County_Level_Election_Results_12-16/blob/master/US_County_Level_Presidential_Results_08-16.csv For all parts below, you want to do this for the 2008, 2012, and 2016 presidential election. We will look at counties in Illinois (or pick your favorite state). Be sure to specify who the colors correspond to. a. Color the counties in two different colors depending on who voted for dem and who voted for gop. b. Color the counties in two different colors but shading varies with percentage. c. Use one (or two) colors so that the colors gradually vary from one party to the other. 4. Do parts a,b,c for all counties in the United States. 5. Recall there is a dataset called crime, in the ggmap package, which consists of Houston crime from January to August 2010. Use ggmap to plot a map of Houston with circles of seven different sizes to represent the seven different crimes in the dataset. Use maptype="roadmap" within get_map.