Pizza and the Subway The “pizza 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 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

Nominal Data. In Exercises 9–12, use the sign test for the claim involving nominal data.

Births A random sample of 860 births in New York State included 426 boys and 434 girls. Use a 0.05 significance level to test the claim that when babies are born, boys and girls are equally likely.

Radiation in Baby Teeth Listed below are amounts of strontium-90 (in millibecquerels, or mBq, per gram of calcium) in a simple random sample of baby teeth obtained from Pennsylvania residents and New York residents born after 1979 (based on data from “An Unexpected Rise in Strontium-90 in U.S. Deciduous Teeth in the 1990s,” by Mangano et al., Science of the Total Environment). Use a 0.05 significance level to test the claim that the median amount of strontium-90 from Pennsylvania residents is the same as the median from New York residents.

Pennsylvania

155

142

149

130

151

163

151

142

156

133

138

161

New York

133

140

142

131

134

129

128

140

140

140

137

143

In Exercises 1–3, use the data listed below. The values are departure delay times (minutes) for American Airlines flights from New York to Los Angeles. Negative values correspond to flights that departed early.

Flight 1(min)

-2

-1

-2

2

-2

0

-2

-3

Flight 19 (min)

19

-4

-5

-1

-4

73

0

1

Flight 21(min)

18

60

142

-1

-11

-1

47

13

Flight Departure Delays Compare the three samples using means, medians, and standard deviations.

Runs Test with Large Samples. In Exercises 9–12, use the runs test with a significance level of\(\alpha \)= 0.05. (All data are listed in order by row.)

Baseball World Series Victories Test the claim that the sequence of World Series wins by American League and National League teams is random. Given on the next page are recent results, with A = American League and N = National League.

A

N

A

N

N

N

A

A

A

A

N

A

A

A

A

N

A

N

N

A

A

N

N

A

A

A

A

N

A

N

N

A

A

A

A

A

N

A

N

A

N

A

N

A

A

A

A

A

A

A

N

N

A

N

A

N

N

A

A

N

N

N

A

N

A

N

A

N

A

A

A

N

N

A

A

N

N

N

N

A

A

A

N

A

N

A

N

A

A

A

N

A

N

A

A

A

N

A

N

A

A

N

A

N

A

N

N

N

A

N











Matched Pairs.In Exercises 5–8, use the sign test for the data consisting of matched pairs.

Speed Dating: Attractiveness Listed below are “attractiveness” ratings (1 = not attractive; 10 = extremely attractive) made by couples participating in a speed dating session. The listed ratings are from Data Set 18 “Speed Dating”. Use a 0.05 significance level to test the claim that there is a difference between female attractiveness ratings and male attractiveness ratings.

Rating of Male by Female

4

8

7

7

6

8

6

4

2

5

9.5

7

Rating of Female by Male

6

8

7

9

5

7

5

4

6

8

6

5

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