/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q9BSC Pizza and the Subway The 鈥減izz... [FREE SOLUTION] | 91影视

91影视

Pizza and the Subway The 鈥減izza connection鈥 is the principle that the price of a slice of pizza in New York City is always about the same as the subway fare. Use the data listed below to determine whether there is a correlation between the cost of a slice of pizza and the subway fare.

Year

1960

1973

1986

1995

2002

2003

2009

2013

2015

Pizza Cost

0.15

0.35

1.00

1.25

1.75

2.00

2.25

2.3

2.75

Subway Fare

0.15

0.35

1.00

1.35

1.5

2.00

2.25

2.5

2.75

CPI

30.2

48.3

112.3

162.2

191.9

197.8

214.5

233

237.2

Short Answer

Expert verified

The rank correlation coefficient between the cost of a pizza and the subway fare is equal to 1.

There is enough evidence to conclude that there is a significant correlation between the cost of a pizza slice and the subway fare.

Step by step solution

01

Given information

Data are given on the samples of the cost of pizza and subway fare.

Year

1960

1973

1986

1995

2002

2003

2009

2013

2015

Pizza Cost

0.15

0.35

1.00

1.25

1.75

2.00

2.25

2.3

2.75

Subway Fare

0.15

0.35

1.00

1.35

1.5

2.00

2.25

2.5

2.75

The sample size (n) is 9.

The significance level is 0.05.

02

Define rank correlation test and frame the statistical hypothesis

Rank correlation coefficient is used to test the significance of the correlation between two variables of ordinal nature.

The null hypothesis is set up as follows:

There is no correlation between the cost of a pizza slice and the subway fare.

\({\rho _s} = 0\)

The alternative hypothesis is set up as follows:

There is a significant correlation between thecost of a pizza slice and the subway fare.

\({\rho _s} \ne 0\)

The test is two tailed.

03

Assign ranks

Compute the ranks of each of the two samples as the data is not provided in the form of ranks.

Sort the data in ascending order for both samples. After that, assign ranks to both samples

In case some of the values are the same in the sample, the mean of the ranks is assigned to each of the observations.

The following table shows the ranks of the two samples:

Year

1960

1973

1986

1995

2002

2003

2009

2013

2015

Pizza Cost

0.15

0.35

1.00

1.25

1.75

2.00

2.25

2.3

2.75

Subway Fare

0.15

0.35

1.00

1.35

1.5

2.00

2.25

2.5

2.75

Ranks of Cost of Pizza

1

2

3

4

5

6

7

8

9

Ranks of Subway Fare

1

2

3

4

5

6

7

8

9

04

Calculate the Spearman rank correlation coefficient

Since there are no ties present, the following formula is used to compute the rank correlation coefficient:

\({r_s} = 1 - \frac{{6\sum {{d^2}} }}{{n\left( {{n^2} - 1} \right)}}\)

The following table shows the differences between the ranks of the two values for every pair:

Ranks of Cost of Pizza

1

2

3

4

5

6

7

8

9

Ranks of Subway Fare

1

2

3

4

5

6

7

8

9

Difference (d)

0

0

0

0

0

0

0

0

0

\({d^2}\)

0

0

0

0

0

0

0

0

0

Substituting the differences in the formula, the value of\({r_s}\)is obtained as follows:

\(\begin{array}{c}{r_s} = 1 - \frac{{6\sum {{d^2}} }}{{n\left( {{n^2} - 1} \right)}}\\ = 1 - \frac{{6\left( 0 \right)}}{{9\left( {{9^2} - 1} \right)}}\\ = 1\end{array}\)

Therefore, the value of the Spearman rank correlation coefficient is equal to 1.

05

Determine the critical value and conclusion of the test

The critical values of the rank correlation coefficient for n=9 and\(\alpha = 0.05\)are -0.700 and 0.700.

Since the value of the rank correlation coefficient does not fallin the interval bounded by the critical values, the null hypothesis is rejected.

There is enough evidence to conclude that there is a correlation between the cost of pizza and the subway fare.

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 91影视!

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

Wilcoxon Signed-Ranks Test for Body Temperatures The table below lists body temperatures of seven subjects at 8 AM and at 12 AM (from Data Set 3 鈥淏ody Temperatures in Appendix B). The data are matched pairs because each pair of temperatures is measured from the same person. Assume that we plan to use the Wilcoxon signed-ranks test to test the claim of no difference between body temperatures at 8 AM and 12 AM.

a. What requirements must be satisfied for this test?

b. Is there any requirement that the samples must be from populations having a normal distribution or any other specific distribution?

c. In what sense is this sign test a 鈥渄istribution-free 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.

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


Crickets and Temperature The association between the temperature and the number of times a cricket chirps in 1 min was studied. Listed below are the numbers of chirps in 1 min and the corresponding temperatures in degrees Fahrenheit (based on data from The Song of Insects by George W. Pierce, Harvard University Press). Is there sufficient evidence to conclude that there is a relationship between the number of chirps in 1 min and the temperature?

Chirps in 1 min

882

1188

1104

864

1200

1032

960

900

Temperature\(\left( {^ \circ F} \right)\)

69.7

93.3

84.3

76.3

88.6

82.6

71.6

79.6

In Exercises 1鈥4, use the following sequence of political party affiliations of recent presidents of the United States, where R represents Republican and D represents Democrat.

R R RR D R D R RR D R RR D D R D D R R D R R D R D

Testing for Bias Can the runs test be used to show the proportion of Republicans is significantly greater than the proportion of Democrats?

Odd and Even Digits in Pi A New York Times article about the calculation of decimal places of\(\pi \)noted that 鈥渕athematicians are pretty sure that the digits of\(\pi \)are indistinguishable from any random sequence.鈥 Given below are the first 25 decimal places of\(\pi \). Test for randomness in the way that odd (O) and even (E) digits occur in the sequence. Based on the result, does the statement from the New York Times appear to be accurate?

1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3

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.