Question

In: Statistics and Probability

Use R for this problem(Code in R). A firm’s personnel officer sampled 36 male and 24...

Use R for this problem(Code in R). A firm’s personnel officer sampled 36 male and 24 female employees investigate allegations that the men in the organization tend to receive hire annual bonuses than the women. Their bonuses (as percentages of their annual salaries) are below.

Men

10.4 8.9 11.7 12.0 8.7 9.4 9.8 9.0 9.2 9.7
9.1 8.8 7.9 9.9 10.0 10.1 9.0 11.4 8.7 9.6
9.2 9.7 8.9 9.3 10.4 11.9 9.0 12.0 9.6 9.2
9.9 9.0 9.2 9.4 9.7 8.9

Women

8.4 9.0 9.0 7.7 9.6 8.4 9.1 9.2 8.7 9.1
9.3 8.4 6.7 9.9 8.0 9.2 7.7 11.9 6.2 8.4
9.0 6.9 7.6 7.4


a) Check all necessary assumptions for running a t-test for the difference between the two populations of bonus percentages. If you need to, check normality with boxplots, normal probability plots, ad.test(), and shapiro.test().
b) Can you pool in this situation Why or why not
c) Write down the hypotheses to test given the personnel officer wants to know if there is evidence to conclude the men receive higher bonus percentages. Use R to run a t-test using the t.test() function. Provide your code, output, and conclusion based on the p-value.

Question!

I tested the Anderson-Darling and Shapiro tests. According to the two tests, in case of men, we reject to the null hypothesis since the p-value is too small. So, the population of men don't follow the normal distribution. However, the answers from this website are saying the men is normal distribution. And, do you think is can not be pooled? They are almost same standard deviation. I don't want to get same answer that is from here.

Solutions

Expert Solution


Related Solutions

Use R for this problem(Code in R). A firm’s personnel officer sampled 36 male and 24...
Use R for this problem(Code in R). A firm’s personnel officer sampled 36 male and 24 female employees investigate allegations that the men in the organization tend to receive hire annual bonuses than the women. Their bonuses (as percentages of their annual salaries) are below. Men 10.4 8.9 11.7 12.0 8.7 9.4 9.8 9.0 9.2 9.7 9.1 8.8 7.9 9.9 10.0 10.1 9.0 11.4 8.7 9.6 9.2 9.7 8.9 9.3 10.4 11.9 9.0 12.0 9.6 9.2 9.9 9.0 9.2 9.4...
APPLIED STATISTICS 2 USE R CODE! SHOW R CODE Use data file RecordMath2526.txt, to produce a...
APPLIED STATISTICS 2 USE R CODE! SHOW R CODE Use data file RecordMath2526.txt, to produce a plot graph with Exam1 as x, Exam2 as y, use Gender as color, and Hw1 as pch. RecordMath2526 information Index Gender Hw1 Hw2 Hw3 Exam1 Hw4 Exam2 Hw5 Hw6 Hw7 Final 1 F 9 6 8 60 7 82 10 10 9 69 2 M 10 10 10 94 9 98 10 10 8 91 3 M 9 10 8 79 9 55 10...
USE R CODING! Pleaseee I need the code With R coding Obs: it supposed to use...
USE R CODING! Pleaseee I need the code With R coding Obs: it supposed to use probability density function like X ~ Binomial( n ,p ) dbinom(X=?, n, prob) pbinom(X=?, n, prob) rbinmo(幾個符合二項分配的X, n, prob) X~Poisson (lamda) dpois(X=?, lamda) ppois (X=?, lamda) rpois (X, lamda) **Suppose the random variable X obeys the binomial allocation B (n=100, p=0.1) (a) Use X as the binomial allocation to calculate P(12≤X≤14) (b) In practice, when np ≥ 5 and n(1-p) ≥ 5, X will...
***This problem must be done using R so please provide the R code used to find...
***This problem must be done using R so please provide the R code used to find the solution. I have provided the data in data-wtLoss.txt below the question. I will also give "thumbs-up for correct R code" Thanks in advance.*** The file “data-wtLoss.txt” contains data on weight loss and self esteem evaluation at three time points over a period of three months for 34 individuals who are randomly selected from a residential area. These individuals are randomly assigned to one...
***This problem must be done using R so please provide the R code used to find...
***This problem must be done using R so please provide the R code used to find the solution. I have provided the data in data-wtLoss.txt below the question. I will also give "thumbs-up for correct R code" Thanks in advance.*** The file “data-wtLoss.txt” contains data on weight loss and self esteem evaluation at three time points over a period of three months for 34 individuals who are randomly selected from a residential area. These individuals are randomly assigned to one...
1. Use R Studio: Include R Code A survey is taken of 250 students, and a...
1. Use R Studio: Include R Code A survey is taken of 250 students, and a phat of 0.48 is found. The same survey is repeated with 1000 students, and the same phat value is found. Compare the two 95% confidence intervals. What is the relationship between them? Is the margin of error for the second one four times smaller? If not, how much smaller is it?
Refer to the Kelson Sporting Equipment problem (Chapter 7, Problem 24). Letting R number of regular...
Refer to the Kelson Sporting Equipment problem (Chapter 7, Problem 24). Letting R number of regular gloves C number of catcher’s mitts leads to the following formulation: The sensitivity report is shown in Figure 8.14. a. What is the optimal solution, and what is the value of the total profit contribution? b. Which constraints are binding? c. What are the shadow prices for the resources? Interpret each. d. If overtime can be scheduled in one of the departments, where would...
Q1. The following is some R code followed by output. > set.seed(24); y1 = rnorm(30, 10,...
Q1. The following is some R code followed by output. > set.seed(24); y1 = rnorm(30, 10, 5) > set.seed(34); y2 = rnorm(25, 11, 5) > t.test(y1,y2, var.equal = TRUE, mu =0, conf.level = 0.90) Two Sample t-test data: y1 and y2 t = ? , df = ?, p-value = ? alternative hypothesis: true difference in means is not equal to 0 90 percent confidence interval: -3.6460449 0.2757534 sample estimates: mean of x mean of y 9.154402 10.839548 What is...
1. Basic use of R/R Studio. Solve the following problem in R and print out the...
1. Basic use of R/R Studio. Solve the following problem in R and print out the commands and outputs. (a) Create a vector of the positive odd integers less than 100; Remove the values greater than 60 and less than 80; Find the variance of the remaining set of values (b) What’s the difference in output between the commands 2*1:5 and (2*1):5? Why is there a difference? (c) If you wanted to enter the odd numbers from 1 to 19...
pl use R code to do that and show me the program Use a linear regression...
pl use R code to do that and show me the program Use a linear regression of Y~log(X) using the labtestdata.csv data to predict Y (2dp) when x = 250 on the unlogged scale? Calculate the F-value (1 dp) from an ANOVA on the regression of Y~log(X) using the data contained in labtestdata.csv abtestdata.csv y x 1.018746 1 1.508895 2 0.727282 3 1.787127 4 2.903983 5 3.181554 6 1.737834 7 2.715766 8 1.570552 9 3.046107 10 4.499675 11 4.240688 12...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT