I NEED ANSWER JUST FOR PART C
I NEED ANSWER JUST FOR PART C
Problem 2 Recently, Ralphie has been feeling sluggish during her regular "Running With Ralphie" event. She knows there are things that she could potentially improve her responsiveness, such as drinking coffee or taking a nap, but she wants to be sure. Being the Data Scientist that she is, she decides to create a experiment to test whether the different situations actually improve her reaction time. For each method, she does as the method requires, and a few hours later she has her handlers record her reaction time. These values are recorded in the nap and coffee variables. She tested the coffee method 10 times and the nap method 12 times. Ralphie also knows, from her supreme buffalo intuition, that her average reaction time is 490 units and that her reaction time measurements are normally distributed. # Sample size of each test n.coffee = 10 n. nap = 12 # The reaction time data for each method coffee = c(485.77, 490.86, 460.79, 528.74, 483.47, 526.24, 504.78, 460.7, 587.08, 484.13) nap = c(598.15, 518.69, 601.49, 598.62, 555.73, 458, 488.57, 520.26, 534.71, 655.23, 573.18, 495.05) Part A) Determine, at the a = 0.05 significance level, if drinking coffee improved Ralphie's reaction time. For this, you will need to calculate an appropriate test statistic. Store this value as p2.a.stat and round the value to two decimal places. Then calculate the p-value for this test statistic. Store this value in p2.a.p and round it to two decimal places. p2.a.stat = NA p2.a.p = NA # your code here p2.a.stat = 0.94 p2.a. p = 0.19 # Hidden Test Cell Part B) Based on your answers to Part A, does drinking coffee improve Ralphie's reaction time at the a = 0.05 significance level? Your answer should be the boolean TRUE if coffee improves her reaction time, and FALSE if it does not. Save your answer into variable p2.b. p2.b = NA # your code here p2.b = FALSE # Hidden Test Cell Part C) Determine if there sufficient evidence, at the a = 0.05 significance level, to conclude that taking a nap promotes faster reaction time than drinking coffee. Again, calculate an appropriate test statistic and save into variable p2.c.stat. Round this value to two decimal places. Then calculate the p-value for this test statistic and save it into variable p2.c.p. Round this value to three decimal places. p2.c.stat = NA p2.c.p = NA # your code here
I NEED ANSWER JUST FOR PART C I NEED ANSWER JUST FOR PART C
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
I NEED ANSWER JUST FOR PART C I NEED ANSWER JUST FOR PART C
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!