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.

A study was conducted to examine the effect of pets in stressful situations. 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 minutes) during the task is one measure of
the effect of stress. The data has is the mean heart rates during stress with a pet (P), with a friend (F) and for the
control group (C).
Friend
Control
80.369 99.692
83.4
87.446
90.015 102.154
99.046 80.277
75.477 88.015
87.231 92.492
91.754 91.354
87.785 100.877
77.8 101.062
Pet
69.169
70.169
75.985
86.446
68.862
64.169
97.538
85
72.262
58.692
79.662
69.231
62.646
81.6
84.738 89.815
84.877
98.2
73.277 76.908
69.538
84.523 86.985
70.077
70.877 97.046 65.446
Transcribed Image Text:A study was conducted to examine the effect of pets in stressful situations. 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 minutes) during the task is one measure of the effect of stress. The data has is the mean heart rates during stress with a pet (P), with a friend (F) and for the control group (C). Friend Control 80.369 99.692 83.4 87.446 90.015 102.154 99.046 80.277 75.477 88.015 87.231 92.492 91.754 91.354 87.785 100.877 77.8 101.062 Pet 69.169 70.169 75.985 86.446 68.862 64.169 97.538 85 72.262 58.692 79.662 69.231 62.646 81.6 84.738 89.815 84.877 98.2 73.277 76.908 69.538 84.523 86.985 70.077 70.877 97.046 65.446
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