8.9 A travel agency wanted to compare the noncorporate prices charged by two major motel chains for a standard-quality single room at major airport locations around the country. A random sample of five Best Eastern motels and an independent sample of six Travelers' Inn motels all located at major airports, gave the approximate current total costs of a standard single room as shown below. Find a 95% confidence intery estigate of the difference between median escla at Best Exstom Travelers motels. Best Eastern: $68, 75, 92, 79, 95 Travelers' Inn: $69, 76, 81, 72, 75, 80 1. (60/100) Refer to statements of Problem 8.9 (p. 308 in NSI). (1) (10/60) write the null and alternative hypotheses (2) (17/60) compare the difference in medians by permutation test; report p-value and its 95% confidence interval if random-sample permutation is performed (3) (16/60) compare the difference in medians by Wilcoxon-Mann-Whitney test (4) (17/60) construct a 95% 2-sided exact confidence interval for the group difference and calculate the achieved confidence level. Do (3) and (4) "by hand" (Table J and/or R/SAS codes) and check your results with what you obtain from proc npar1way or wilcox.test(). Please use R.

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
None
8.9 A travel agency wanted to compare the noncorporate prices charged by
two major motel chains for a standard-quality single room at major
airport locations around the country. A random sample of five Best
Eastern motels and an independent sample of six Travelers' Inn motels
all located at major airports, gave the approximate current total costs of
a standard single room as shown below. Find a 95% confidence intery
estigate of the difference between median escla at Best Exstom
Travelers motels.
Best Eastern: $68, 75, 92, 79, 95
Travelers' Inn: $69, 76, 81, 72, 75, 80
1. (60/100) Refer to statements of Problem 8.9 (p. 308 in NSI).
(1) (10/60) write the null and alternative hypotheses
(2) (17/60) compare the difference in medians by permutation test; report p-value and its 95%
confidence interval if random-sample permutation is performed
(3) (16/60) compare the difference in medians by Wilcoxon-Mann-Whitney test
(4) (17/60) construct a 95% 2-sided exact confidence interval for the group difference and
calculate the achieved confidence level.
Do (3) and (4) "by hand" (Table J and/or R/SAS codes) and check your results with what you
obtain from proc npar1way or wilcox.test().
Please use R.
Transcribed Image Text:8.9 A travel agency wanted to compare the noncorporate prices charged by two major motel chains for a standard-quality single room at major airport locations around the country. A random sample of five Best Eastern motels and an independent sample of six Travelers' Inn motels all located at major airports, gave the approximate current total costs of a standard single room as shown below. Find a 95% confidence intery estigate of the difference between median escla at Best Exstom Travelers motels. Best Eastern: $68, 75, 92, 79, 95 Travelers' Inn: $69, 76, 81, 72, 75, 80 1. (60/100) Refer to statements of Problem 8.9 (p. 308 in NSI). (1) (10/60) write the null and alternative hypotheses (2) (17/60) compare the difference in medians by permutation test; report p-value and its 95% confidence interval if random-sample permutation is performed (3) (16/60) compare the difference in medians by Wilcoxon-Mann-Whitney test (4) (17/60) construct a 95% 2-sided exact confidence interval for the group difference and calculate the achieved confidence level. Do (3) and (4) "by hand" (Table J and/or R/SAS codes) and check your results with what you obtain from proc npar1way or wilcox.test(). Please use R.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
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