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.

Solutions

Expert Solution

a) Assumptions that satisfies in the above data to run t-test:

1) Data is from normal population, known by using boxplot( code is included in Rscript code):

2) Sample 1 does not dependent on sample 2, known as the males bonus are not dependent on females bonus.

3) Population variance are equal.

R Script code:

Result:


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...
Use R.  Provide Solution and R Code within each problem. For this section use the dataset “PlantGrowth”,...
Use R.  Provide Solution and R Code within each problem. For this section use the dataset “PlantGrowth”, available in base R (you do not need to download any packages). a.Construct a 95% confidence interval for the true mean weight. b.Interpret the confidence interval in 1. in the context of the problem. c.Write down the null and alternative hypothesis to determine if the mean weight of the plants is less than 5. d.Conduct a statistical test to determine if the mean weight...
Use R.  Provide Solution and R Code within each problem. A study was conducted to determine the...
Use R.  Provide Solution and R Code within each problem. A study was conducted to determine the average weight of newborn babies. The distribution of the weight of newborn babies has a standard deviation of σ = 1.25lbs. A random sample of 100 newborn babies was taken and weights measured. The mean weight of the babies in the sample was 7.3 lbs. a. Construct a 95% confidence interval for the true mean weight of newborn babies. b. Interpret the confidence interval...
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...
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...
***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?
Use R to answer the following question. Copy and paste the code and answer from R...
Use R to answer the following question. Copy and paste the code and answer from R into your paper. On the average,five cars arrive at a particular car wash every hour. Let X count the number of cars that arrive from 10 AM to 11 AM. Then X ∼pois(lambda = 5). Also, μ = σ2 = 5.  What is the probability that no car arrives during this period?  Suppose the car wash above is in operation from 8AM...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT