Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Are Flights Cheaper When Scheduled Earlier? Listed below are the costs (in dollars) of flights from New York (JFK) to Los Angeles (LAX). Use a 0.01 significance level to test the claim that flights scheduled one day in advance cost more than flights scheduled 30 days in advance. What strategy appears to be effective in saving money when flying?

Delta

Jet Blue

American

Virgin

Alaska

United

1 day in advance

501

634

633

646

633

642

30 days in advance

148

149

156

156

252

313

Short Answer

Expert verified

There is enough evidence to conclude that flights booked one day in advance are costlier than flights booked 30 days in advance.

The passengers must book their flights well in advance and plan their trips accordingly (a month before).

Step by step solution

01

Given information

The cost of 6 flights is tabulated corresponding to the two types of booking: one day in advance and 30 days in advance.

02

Hypotheses

It is claimed that the flights booked one day in advance are more expensive than flights booked 30 days in advance.

Null Hypothesis: The mean cost of flights booked one day in advance is more than the cost of flights booked 30 days in advance.

\({H_0}:{\mu _d} = 0\)

Alternative Hypothesis: The mean cost of flights booked one day in advance is more than the cost of flights booked 30 days in advance.

\({H_1}:{\mu _d} > 0\)

Here,\({\mu _d}\)is the population difference in the costs of the flights obtained by subtracting the cost of the flights booked 30 days in advance from the cost of the flights booked 1 day in advance.

The test is right-tailed.

03

Differences in the values of each matched pair

The following table shows the differences in the systolic blood pressure levels for each matched pair:

Delta

Jet Blue

American

Virgin

Alaska

United

1 day in advance

501

634

633

646

633

642

30 days in advance

148

149

156

156

252

313

Differences \(\left( {{d_i}} \right)\)

353

485

477

490

381

329

The number of pairs is equal to\(n = 6\).

The mean value of the differences is computed below:

\(\begin{aligned} \bar d &= \frac{{\sum\limits_{i = 1}^n {{d_i}} }}{n}\\ &= \frac{{353 + 485 + ...... + 329}}{6}\\ &= 419.17\end{aligned}\)

The standard deviation of the differences is computed below:

\(\begin{aligned}{c}{s_d} &= \sqrt {\frac{{\sum\limits_{i = 1}^n {{{({d_i} - \bar d)}^2}} }}{{n - 1}}} \\ &= \sqrt {\frac{{{{\left( {353 - 419.17} \right)}^2} + {{\left( {485 - 419.17} \right)}^2} + ....... + {{\left( {329 - 419.17} \right)}^2}}}{{6 - 1}}} \\ &= 73.02\end{aligned}\)

The mean value of the differences for the population of matched pairs \(\left( {{\mu _d}} \right)\) is considered to be equal to 0.

04

Compute the test statistic, critical value and the p-value

The value of the test statistic is computed as shown:

\(\begin{aligned} t &= \frac{{\bar d - {\mu _d}}}{{\frac{{{s_d}}}{{\sqrt n }}}}\\ &= \frac{{419.17 - 0}}{{\frac{{73.02}}{{\sqrt 6 }}}}\\ &= 14.06\end{aligned}\)

The degrees of freedom are computed below:

\(\begin{aligned} df &= n - 1\\ &= 6 - 1\\ &= 5\end{aligned}\)

Refer to t-table:

The critical value of t at\(\alpha = 0.01\)and degrees of freedom equal to 5 for a right-tailed test is equal to 3.3649.

The p-value obtained using the test statistic value is equal to 0.00002.

Since the absolute value of the test statistic (14.06) is greater than the critical value and the p-value is less than 0.01, the null hypothesis is rejected.

05

Conclusion

There is enough evidence to conclude that flights booked one day in advance are costlier than flights booked 30 days in advance.

In order to save money, the passengers must plan their trips a month in advance and book their flights well in advance rather than going for flights just a day before the trip

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

Determining Sample Size The sample size needed to estimate the difference between two population proportions to within a margin of error E with a confidence level of 1 - a can be found by using the following expression:

\({\bf{E = }}{{\bf{z}}_{\frac{{\bf{\alpha }}}{{\bf{2}}}}}\sqrt {\frac{{{{\bf{p}}_{\bf{1}}}{{\bf{q}}_{\bf{1}}}}}{{{{\bf{n}}_{\bf{1}}}}}{\bf{ + }}\frac{{{{\bf{p}}_{\bf{2}}}{{\bf{q}}_{\bf{2}}}}}{{{{\bf{n}}_{\bf{2}}}}}} \)

Replace \({{\bf{n}}_{\bf{1}}}\;{\bf{and}}\;{{\bf{n}}_{\bf{2}}}\) by n in the preceding formula (assuming that both samples have the same size) and replace each of \({{\bf{p}}_{\bf{1}}}{\bf{,}}{{\bf{q}}_{\bf{1}}}{\bf{,}}{{\bf{p}}_{\bf{2}}}\;{\bf{and}}\;{{\bf{q}}_{\bf{2}}}\)by 0.5 (because their values are not known). Solving for n results in this expression:

\({\bf{n = }}\frac{{{\bf{z}}_{\frac{{\bf{\alpha }}}{{\bf{2}}}}^{\bf{2}}}}{{{\bf{2}}{{\bf{E}}^{\bf{2}}}}}\)

Use this expression to find the size of each sample if you want to estimate the difference between the proportions of men and women who own smartphones. Assume that you want 95% confidence that your error is no more than 0.03.

Testing Claims About Proportions. In Exercises 7โ€“22, test the given claim. Identify the null hypothesis, alternative hypothesis, test statistic, P-value or critical value(s), then state the conclusion about the null hypothesis, as well as the final conclusion that addresses the original claim.

Bednets to Reduce Malaria In a randomized controlled trial in Kenya, insecticide-treated bednets were tested as a way to reduce malaria. Among 343 infants using bednets, 15 developed malaria. Among 294 infants not using bednets, 27 developed malaria (based on data from โ€œSustainability of Reductions in Malaria Transmission and Infant Mortality in Western Kenya with Use of Insecticide-Treated Bednets,โ€ by Lindblade et al., Journal of the American Medical Association, Vol. 291, No. 21). We want to use a 0.01 significance level to test the claim that the incidence of malaria is lower for infants using bednets.

a. Test the claim using a hypothesis test.

b. Test the claim by constructing an appropriate confidence interval.

c. Based on the results, do the bednets appear to be effective?

Degrees of Freedom

For Example 1 on page 431, we used df\( = \)smaller of\({n_1} - 1\)and\({n_2} - 1\), we got\(df = 11\), and the corresponding critical values are\(t = \pm 2.201.\)If we calculate df using Formula 9-1, we get\(df = 19.063\), and the corresponding critical values are\( \pm 2.093\). How is using the critical values of\(t = \pm 2.201\)more โ€œconservativeโ€ than using the critical values of\( \pm 2.093\).

Testing Claims About Proportions. In Exercises 7โ€“22, test the given claim. Identify the null hypothesis, alternative hypothesis, test statistic, P-value or critical value(s), then state the conclusion about the null hypothesis, as well as the final conclusion that addresses the original claim

Question:Headache Treatment In a study of treatments for very painful โ€œclusterโ€ headaches, 150 patients were treated with oxygen and 148 other patients were given a placebo consisting of ordinary air. Among the 150 patients in the oxygen treatment group, 116 were free from head- aches 15 minutes after treatment. Among the 148 patients given the placebo, 29 were free from headaches 15 minutes after treatment (based on data from โ€œHigh-Flow Oxygen for Treatment of Cluster Headache,โ€ by Cohen, Burns, and Goads by, Journal of the American Medical Association, Vol. 302, No. 22). We want to use a 0.01 significance level to test the claim that the oxygen treatment is effective.

a. Test the claim using a hypothesis test.

b. Test the claim by constructing an appropriate confidence interval.

c. Based on the results, is the oxygen treatment effective?

Using Confidence Intervals

a. Assume that we want to use a 0.05 significance level to test the claim that p1 < p2. Which is better: A hypothesis test or a confidence interval?

b. In general, when dealing with inferences for two population proportions, which two of the following are equivalent: confidence interval method; P-value method; critical value method?

c. If we want to use a 0.05 significance level to test the claim that p1 < p2, what confidence level should we use?

d. If we test the claim in part (c) using the sample data in Exercise 1, we get this confidence interval: -0.000508 < p1 - p2 < - 0.000309. What does this confidence interval suggest about the claim?

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