Question: Could you please provide the R code Q6. [10 pts] Consider the study about the effectiveness of aerobic conditioning on subjects' ability to tolerate stress.
Could you please provide the R code
![Could you please provide the R code Q6. [10 pts] Consider the](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66ef5199c55e8_02566ef51998cbb6.jpg)
Q6. [10 pts] Consider the study about the effectiveness of aerobic conditioning on subjects' ability to tolerate stress. 20 independent subjects are randomly assigned to an experimental condition and a control condition. The experimental subjects exercise three times a week for 10 weeks. During each workout, they walk a treadmill for 20 minutes while their heart rate is maintained between 160 and 180 beats per minute. The control subjects do not exercise during the 10-week period. After 10 weeks, all subjects are brought into the lab and asked to solve mental arithmetic problems under the threat of electric shock for poor performance. The measure of stress is the subjects' heart rate during the task. Here are the data of the subjects' heart rate in the two different groups: Aerobic 83 72 69 83 88 77 78 79 82 78 Training Control 87 94 73 84 84 95 90 81 81 80 The experimental hypothesis is that, during stress, the aerobic group will have a lower mean heart rate than the control group. Denote by X and Y the respective random variables for aerobic and control groups. Assume that both of them follow normal distributions. Use a significance level of 0.05 for all tests in this question. Write down the null and alternative hypotheses and your full procedure how to solve this question clearly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
