Question: STAT 118: Assignment 1 TYPE YOUR NAME HERE # Load any R Packages you may need library(mosaic) Exercise 1 The state of Arizona records the
STAT 118: Assignment 1 TYPE YOUR NAME HERE # Load any R Packages you may need library(mosaic) Exercise 1 The state of Arizona records the number of automobile two years ago in each of the state's 14 counties: 30, 15, 183, 9, 7, 39, 28, 30, 76, 13, 21, 18, 323, 3 (a) Using R, enter these data into a variable called autodths. # Type your code here (b) What is the mean number of deaths per county? What is the median number of deaths per county? Can you explain why these two measures are so different? # Type your code here TYPE YOUR ANSWER HERE (c) What is the range of the numbers of deaths? # Type your code here Exercise 2 In a survey of STAT 118 students several years ago, one question asked for each student's political preference (Democrat (D), Independent (I), or Republican (R)). Here are the 14 responses: D, I, I, D, I, D, I, I, I, D, I, R, D, D (a) Using R, enter these data into a variable called polpref. # Type your code here (b) Use the tally() function to determine the most popular choice of political preference. #
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
