Q1. Note the variable 'Total Crash Injuries' provide several injuries associated with every accident. In SAS Viya, prepare a histogram showing the distribution of
Q1. Note the variable 'Total Crash Injuries' provide several injuries associated with every accident. In SAS Viya, prepare a histogram showing the distribution of Total Crash Injuries. What can you say about the distribution of crash injuries? (2 points) Q2. Create a new custom category variable based on 'Total Crash Injuries' variable. This new custom category variable should contain two categories only. One category is injuries equal to zero, while the other category is for crashes with one or more injuries. (3 points). Visualise the frequency of the two new categories you just created on a bar chart. How many crashes report zero injuries? (3 points) Q3. In Q2, you created a new categorical variable with only two values (binary). Your task now is to develop two models that can predict the value this target variable takes, given other explanatory variables. In other words, you attempt to predict if a crash is going to result in injuries (or not) given other important variables. What are the two models (or techniques) you can use to predict this target variable? (2 points). Create one model to predict the target variable you created in Q2. Assess this model's accuracy. What are the most important variables in predicting this target variable? (6 points). Create the second model to predict the target variable. Assess this model's accuracy. What are the most important variables identified by the model to predict the target variable. (6 points). Compare the performance of the two model. Report and discuss the results of your comparison. Which model is the champion? (3 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started