Using Nonparametric Tests. In Exercises 1–10, use a 0.05 significance level with the indicated test. If no particular test is specified, use the appropriate nonparametric test from this chapter.

Airline Fares Refer to the same data from the preceding exercise. Use the Wilcoxon signed ranks test to test the claim that differences between fares for flights scheduled 1 day in advance and those scheduled 30 days in advance have a median equal to 0. What do the results suggest?

Short Answer

Expert verified

There is enough evidence to reject the claim that the differences between the costs of flights scheduled oneday in advance and those scheduled 30 days in advance have a median equal to 0.

Step by step solution

01

Given information

Twosamples show the airfares of eight different flights from New York to San Francisco.

It is claimed that the differences between the fares of flights scheduled oneday in advance and those scheduled 30 days in advance have a median equal to 0.

02

Identify the hypothesis of the test

The Wilcoxon signed-ranks test is used to test the claim that there is no difference in the cost between the flights scheduled oneday prior and the flights scheduled 30 days prior.

The null hypothesis is as follows:

The difference between the costs of flights scheduled oneday in advance and those scheduled 30 days in advance have a median equal to 0.

The alternative hypothesis is as follows:

The difference between the costs of flights scheduled oneday in advance and those scheduled 30 days in advance does not have a median equal to 0.

If the value of the test statistic is less than the critical value, the null hypothesis is rejected, else not.

03

Assign signed-ranks

Compute the differences of the values by subtracting the cost of the flights scheduled 30 days prior from the cost of thosescheduled oneday prior.

Compute the ranks of the absolute differences by assigning rank 1 to the smallest difference, rank 2 to the next smallest difference, and so on.

Mark the sign of the ranks corresponding to the sign of the difference.

The following table shows the signedranks:

Flights scheduled oneday prior

584

490

584

584

584

606

628

717

Flights scheduled 30 days prior

254

308

244

229

284

509

394

258

Differences (d)

330

182

340

355

300

97

234

459

Rank of |d|

5

2

6

7

4

1

3

8

Signed-Ranks

+5

+2

+6

+7

+4

+1

+3

+8

04

Calculate the test statistic

The total number of observations (n) is 8.

Since \(n < 30\), the value of the test statistic (T) needs to be determined.

Compute the sum of the positive ranks as shown:

\(\begin{array}{c}Su{m_{positive}} = 5 + 2 + .... + 8\\ = 36\end{array}\)

Since there are no negative ranks, \(Su{m_{negative}} = 0\).

T assumes a value corresponding to the smaller of the two sums.

Thus, \(T = 0\).

05

Determine the critical value and the conclusion of the test

The critical value of T for n=8 and \(\alpha = 0.05\) for a two-tailed test is equal to 4.

Since the value of the test statistic is less than the critical value, the null hypothesis is rejected.

There is enough evidence to conclude that the difference between the costs of flights scheduled one day in advance and those scheduled 30 days in advance does not have a median equal to 0.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Using the Runs Test for Randomness. In Exercises 5–10, use the runs test with a significance level of\(\alpha \)= 0.05. (All data are listed in order by row.) Law Enforcement Fatalities Listed below are numbers of law enforcement fatalities for 20 recent and consecutive years. First find the mean, identify each value as being above the mean (A) or below the mean (B), then test for randomness above and below the mean. Is there a trend?

183

140

172

171

144

162

241

159

150

165

163

156

192

148

125

161

171

126

107

117

Speed Dating Listed on the top of the next page are attribute ratings of males by females who participated in speed dating events (from Data Set 18 “Speed Dating” in Appendix B ). In using the Kruskal-Wallis test, we must rank all of the data combined, and then we must find the sum of the ranks for each sample. Find the sum of the ranks for each of the three samples.

Age 20-22

38

42

30

39

47

43

33

31

32

28

Age 23-26

39

31

36

35

41

45

36

23

36

20

Age 27-29

36

42

35.5

27

37

34

22

47

36

32

Using the Mann-Whitney U Test The Mann-Whitney U test is equivalent to the Wilcoxon rank-sum test for independent samples in the sense that they both apply to the same situations and always lead to the same conclusions. In the Mann-Whitney U test we calculate

\(z = \frac{{U - \frac{{{n_1}{n_2}}}{2}}}{{\sqrt {\frac{{{n_1}{n_2}\left( {{n_1} + {n_2} + 1} \right)}}{{12}}} }}\)

Where

\(U = {n_1}{n_2} + \frac{{{n_1}\left( {{n_1} + 1} \right)}}{2} - R\)

and R is the sum of the ranks for Sample 1. Use the student course evaluation ratings in Table 13-5 on page 621 to find the z test statistic for the Mann-Whitney U test. Compare this value to the z test statistic found using the Wilcoxon rank-sum test.

Using Nonparametric Tests. In Exercises 1–10, use a 0.05 significance level with the indicated test. If no particular test is specified, use the appropriate nonparametric test from this chapter.

Old Faithful Listed below are time intervals (min) between eruptions of the Old Faithful geyser. The “recent” times are within the past few years, and the “past” times are from 1995. Test the claim that the two samples are from populations with the same median. Does the conclusion change with a 0.01 significance level?

Recent

78

91

89

79

57

100

62

87

70

88

82

83

56

81

74

102

61

Past(1995)

89

88

97

98

64

85

85

96

87

95

90

95






Using Nonparametric Tests. In Exercises 1–10, use a 0.05 significance level with the indicated test. If no particular test is specified, use the appropriate nonparametric test from this chapter.

Presidents, Popes, Monarchs Listed below are numbers of years that U.S. presidents, popes, and British monarchs lived after their inauguration, election, or coronation, respectively. Assume that the data are samples randomly selected from larger populations. Test the claim that the three samples are from populations with the same median.

Presidents

10

29

26

28

15

23

17

25

0

20

4

1

24

16

12


4

10

17

16

0

7

24

12

4

18

21

11

2

9

36


12

28

3

16

9

25

23

32








Popes

2

9

21

3

6

10

18

11

6

25

23

6

2

15

32


25

11

8

17

19

5

15

0

26







Monarchs

17

6

13

12

13

33

59

10

7

63

9

25

36

15


See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free