Question

In: Math

Instructions This assignment is to be typed up in the supplied R-Script. You need to show...

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.

Solutions

Expert Solution

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


Related Solutions

Instructions This assignment is to be typed up in the supplied R-Script. You need to show...
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...
Writing Assignment #1 Instructions The following assignment should be typed and printed or handwritten and turned...
Writing Assignment #1 Instructions The following assignment should be typed and printed or handwritten and turned in to the CA office in room​ 201 TMCB.​ If there is no one in the CA Office, you can slip your assignment through the slot in the door. You must follow the instructions below or you will not receive credit.​ You can turn in the assignment up until 5:00 PM on the due date. Important Notices: If you do not staple multiple pages,...
PLEASE READ ALL OF THESE INSTRUCTIONS BEFORE BEGINNING THIS ASSIGNMENT. For this assignment, you need to...
PLEASE READ ALL OF THESE INSTRUCTIONS BEFORE BEGINNING THIS ASSIGNMENT. For this assignment, you need to analyze the information below from BOTH the management AND the employee perspective. This information pertains to a labor union in a simulated/made up/not real firm in Glen Ellyn. The first part of your information relates to Management – the second part relates to the Labor Union employees. I have provided you with information from the last union negotiations at the plant in 2016. It...
Instructions: 1. This is a short essay assignment in which you need to write a critical...
Instructions: 1. This is a short essay assignment in which you need to write a critical response that is analytical and insightful. 2. The question: In chapter 9, we have discussed major economic crimes including: Fraud, Bribery, Forgery, Credit Crimes, Financial Market Crimes, and Money Laundering Crime. Examine only one of the above economic crimes by providing a definition of the crime, some legal features, and a discussion of the effects of the crime on the economy.
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL R commands you used to reach your answers in a word or pdf document. Also, report everything you are asked to do so. Problem 3 : In lab lecture notes and demo code, I simulated random samples from Exp(1) to verify classical central limit theorem numerically. I also stressed that no matter what type of random samples you use, the standardized partial sum Sn...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL R commands you used to reach your answers in a word or pdf document. Also, report everything you are asked to do so. Problem 1 : Consider a binomial random variable X ∼ Bin(100, 0.01). 1. Report P(X = 7), P(X = 8), P(X = 9), try to use one ONE R command to return all these three values. 2. Find the probability P(0...
Write a R-script to (and show the outputs of your code) (a) Create a sequence of...
Write a R-script to (and show the outputs of your code) (a) Create a sequence of numbers starting at 3.5 and ending at 10.7 with increments of 0.79. Find the variance and mean of those numbers. And finally sort the vector in a decreasing manner (b) Create a 3 different 3 by 3 matrices such that each of the numbers 1,2,...,9 appear exactly once (Sudoku style) in each of the matrices.
I need this computer typed so I can read it, and please show work. thanks! You...
I need this computer typed so I can read it, and please show work. thanks! You purchase an ABC 10%, 30 Year bond with a $100 face value for 109.72 What is the yield to maturity of the bond? What is the current yield on the bond? What is the duration of the bond? If you bought the bond today and sold it after 1 year at a YTM of 10% what is your cash flow yield? What is your...
I need a ten minute presentation typed up or powerpoint on the Financial Analysis of the...
I need a ten minute presentation typed up or powerpoint on the Financial Analysis of the company Johnson & Johnson for 2017. Financial Data for 2017 can be found on Johnson & Johnson's website.
You will need to use R to compute the final probabilities, but show all of the...
You will need to use R to compute the final probabilities, but show all of the work up to that point and write down the R code that you ran to compute your final answer. Problems should be done in the order listed, and should be clear and complete for full marks. 1. The tensile strength of plastic used to make grocery bags is an important quality characteristic. It is known that the strength is normally distributed with mean, μ...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT