Please solve these subparts of the attached image question manually and using R-studio code, not an excel output. Thanks so much! a) We want to test if there is a difference in the mean heart rates for the three groups. Give the null hypothesis of this test. b) Does the data suggest that there is a difference among the three groups? Use α = 0.05. c) If there seems to be a difference, complete a Bonferroni pairwise test to determine which or if all the means are different from each other.

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

Please solve these subparts of the attached image question manually and using R-studio code, not an excel output. Thanks so much!

a) We want to test if there is a difference in the mean heart rates for the three groups. Give the null hypothesis
of this test.

b) Does the data suggest that there is a difference among the three groups? Use α = 0.05.
c) If there seems to be a difference, complete a Bonferroni pairwise test to determine which or if all the means
are different from each other.

### Study on the Effect of Pets in Stressful Situations

A study was conducted to examine the effect of pets on stress. Fifteen subjects were randomly assigned to each of three groups to do a stressful task alone (the control group), with a good friend present, or with their dog present. The subject’s mean heart rate (in beats per minute) during the task is one measure of the effect of stress. The data includes mean heart rates during stress with a pet (P), with a friend (F), and for the control group (C).

#### Data Table:

| Control | Friend | Pet   |
|---------|--------|-------|
| 80.369  | 99.692 | 69.169|
| 87.446  | 83.4   | 70.169|
| 90.015  | 102.154| 75.985|
| 99.046  | 80.277 | 86.446|
| 75.477  | 88.015 | 68.862|
| 87.231  | 92.492 | 64.169|
| 91.754  | 91.354 | 97.538|
| 87.785  | 100.877| 85    |
| 77.8    | 101.062| 72.262|
| 62.646  | 81.6   | 58.692|
| 84.738  | 89.815 | 79.662|
| 84.877  | 98.2   | 69.231|
| 73.277  | 76.908 | 69.538|
| 84.523  | 86.985 | 70.077|
| 70.877  | 97.046 | 65.446|

#### Analysis:

- **Control Group:** This group shows a range of heart rates with some reaching as high as 99.046 bpm.
- **Friend Group:** Heart rates in this group seem to vary widely, with some rates above 100 bpm.
- **Pet Group:** This group generally shows lower heart rates, suggesting a potential calming effect of having a pet present during stressful tasks.

This dataset provides insights into how the presence of different companions can affect physiological responses such as heart rate during stress.
Transcribed Image Text:### Study on the Effect of Pets in Stressful Situations A study was conducted to examine the effect of pets on stress. Fifteen subjects were randomly assigned to each of three groups to do a stressful task alone (the control group), with a good friend present, or with their dog present. The subject’s mean heart rate (in beats per minute) during the task is one measure of the effect of stress. The data includes mean heart rates during stress with a pet (P), with a friend (F), and for the control group (C). #### Data Table: | Control | Friend | Pet | |---------|--------|-------| | 80.369 | 99.692 | 69.169| | 87.446 | 83.4 | 70.169| | 90.015 | 102.154| 75.985| | 99.046 | 80.277 | 86.446| | 75.477 | 88.015 | 68.862| | 87.231 | 92.492 | 64.169| | 91.754 | 91.354 | 97.538| | 87.785 | 100.877| 85 | | 77.8 | 101.062| 72.262| | 62.646 | 81.6 | 58.692| | 84.738 | 89.815 | 79.662| | 84.877 | 98.2 | 69.231| | 73.277 | 76.908 | 69.538| | 84.523 | 86.985 | 70.077| | 70.877 | 97.046 | 65.446| #### Analysis: - **Control Group:** This group shows a range of heart rates with some reaching as high as 99.046 bpm. - **Friend Group:** Heart rates in this group seem to vary widely, with some rates above 100 bpm. - **Pet Group:** This group generally shows lower heart rates, suggesting a potential calming effect of having a pet present during stressful tasks. This dataset provides insights into how the presence of different companions can affect physiological responses such as heart rate during stress.
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman