In: Math
Instructions This assignment is to be typed up in the supplied R-Script. You need to show all of your work in R in the given script. Be sure and use # in front of any text that you type in. You are allowed to work with your peer group, but please site your sources! If you get help from anyone, you need to mention that in your write up. This assignment is worth 60 points (10 per problem) and you can use it to replace the online Midterm Quiz. That is, if you chose to, you can count it twice. 1. Data type and plots. We collected in the MTTH class a set of paired data on age and gender. The data set is given in the supplied R-Script and is repeated here: age = c(25, 20, 21, 21, 18, 18, 18, 18, 18, 18, 21, 21, 18, 18, 19 ,17 ,18, 18, 20, 18, 19, 17, 22, 19, 18, 18, 20, 17, 18, 18, 25) gend = c(”f”, ”m”, ”m”, ”m”, ”m”, ”f”, ”m”, ”f”, ”f”, ”m”, ”m”, ”f”, ”f”, ”f”, ”m”, ”m”, ”f”, ”m”, ”f”, ”f”, ”f”, ”m”, ”m”, ”m”, ”f”, ”m”, ”f”, ”f”, ”f”, ”m”, ”f”) (USING RSTUDIO)
(a) What type of variable is ”age”?
(b) What type of variable is ”gend”?
(c) What are the mean, median, standard deviation, and IQR for the ”age” data?
(d) Give a boxplot and histogram for the ”age” data. What is the shape of the distribution?
(e) Give a barplot for the ”gend” variable. Does is make sense to ask what the shape of this plot is? Why?
(f) Give a 98% confidence interval for the population proportion of females enrolled in Math 15 at College of the Redwoods.
Barplot of gender have no mean
Here 17 are females and 14 males
Shape of barplot is not good appear
Above first Image R code also the output is also in same image
Second image is of histogram and boxplot