Generation

generate functionTue, 07 Mar 2023

A sA doctor is interested in how exercise affects sleep, so she conducts an experiment. 30 healthy individuals are randomly assigned to three groups: light exercise, moderate exercise, and heavy exercise. To collect her data, she has the light exercise group come into her facility in the morning to perform the routine. Then she has the moderate exercise group perform the routine after lunch. Finally, the heavy exercise group performs their routine in the late afternoon. She records the number of hours each participant sleeps that night. a) What is/are the factor(s) in this experiment? than $90 000. State the null and alternative hypotheses and identify the appropriate test.

#Using the Salary data set, test whether there is a difference in salaries between males and females. #H0: μ1 - μ2 = 0 #H1: μ1 - μ2 != 0 # # t.test(salary ~ sex) # # Welch Two Sample t-test # # # # data: salary by sex # # t = -0.9397, df = 251.4, p-value = 0.3489 # # alternative hypothesis: true difference in means is not equal to 0 # # 95 percent confidence interval: # # -2400.9750 1107.6960 # # sample estimates: # # mean in group F mean in group M # # 46992.869 48625.963

Questions about programming?Chat with your personal AI assistant