Answer to Question #269595 in Statistics and Probability for lok

Question #269595

The average mark scored by 32 boys is 72 with a standard deviation of 8, while that for 36 girls is 70 with a standard deviation of 6. Write down the R programming code to test whether the boys are performing better than girls on the basis of average mark at 5 % level of significance.


1
Expert's answer
2021-11-22T20:17:03-0500
x=rnorm(32, mean = 72, sd = 8)      \\ variable for boys scores
y=rnorm(36, mean = 70, sd = 6)        \\ variable for girls scores
t.test(x,y,var.equal = FALSE,alternative = "greater",conf.level = 0.95)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS