Question

In: Statistics and Probability

A Bloomberg Businessweek subscriber study asked, “in the past 12 months, when traveling for business, what...

A Bloomberg Businessweek subscriber study asked, “in the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?” A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table.

Type of Ticket

Domestic Flight

International Flight

First class

29

22

Business class

95

121

Economy class

518

135

The study wants to test whether the type of ticket is independent of the type of flight. Clearly state the null and alternative hypotheses.

Compute the test statistic.

Please copy your R code and the result and paste them here.

At 5% significance level, compute the critical value for the test statistic and the p value for the test. Draw your conclusion.

Please copy your R code and the result and paste them here.

Use the function chisq.test() in R to run the test directly to confirm your results above are correct.

Solutions

Expert Solution

A Bloomberg Businessweek subscriber study asked, “in the past 12 months, when travelling for business. The type of airline ticket purchase most often was International Flight. The type of airline ticket purchased most often was for domestic travel.

The null and alternative hypotheses:

Null hypothesis: The type of ticket is independent of the type of flight.

Alternative hypothesis: The type of ticket is dependent of the type of flight.

## R code

Input =("
Injection.area Domestic_Flight International_Flight
First 29 22
Business 95 121
Economy 518 135
")

Matrix = as.matrix(read.table(textConnection(Input),
header=TRUE,
row.names=1))

Matrix

### Chi-square test
chisq.test(Matrix)

## Output

> Input =("
+ Injection.area Domestic_Flight International_Flight
+ First 29 22
+ Business 95 121
+ Economy 518 135
+ ")
>
> Matrix = as.matrix(read.table(textConnection(Input),
+ header=TRUE,
+ row.names=1))
>
> Matrix
Domestic_Flight International_Flight
First 29 22
Business 95 121
Economy 518 135
>
> ### Chi-square test
> chisq.test(Matrix)

Pearson's Chi-squared test

data: Matrix
X-squared = 100.43, df = 2, p-value < 2.2e-16

Conclusion: The estimated p-value is less than 0.05 level of significance. Hence, we reject the null hypothesis and conclude that the type of ticket is dependent on the type of flight at 0.05 level of significance.


Related Solutions

A Bloomberg BusinessWeek subscriber study asked, "In the past 12 months, when traveling for business, what...
A Bloomberg BusinessWeek subscriber study asked, "In the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?" A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table. Type of Flight Type of Ticket Domestic International First Class 26 23 Business Class 96 129 Economy Class 513 134 a. Using a .05 level of significance,...
A Bloomberg Businessweek subscriber study asked, “in the past 12 months, when traveling for business, what...
A Bloomberg Businessweek subscriber study asked, “in the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?” A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table. Type of Ticket Domestic Flight International Flight First class 29 22 Business class 95 121 Economy class 518 135 A) The study wants to test whether the...
A Bloomberg BusinessWeek subscriber study asked, "In the past 12 months, when traveling for business, what...
A Bloomberg BusinessWeek subscriber study asked, "In the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?" A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table. Type of Flight Type of Ticket Domestic International First Class 22 26 Business Class 125 94 Economy Class 131 513 a. Using a .05 level of significance,...
A Bloomberg Businessweek subscriber study asked, "In the past 12 months, when traveling for business, what...
A Bloomberg Businessweek subscriber study asked, "In the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?" A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table. Compute the value of the test statistic (to 2 decimals). Type of Flight Type of Ticket Domestic International First Class 26 22 Business Class 95 121 Economy...
A Bloomberg BusinessWeek subscriber study asked, "In the past 12 months, when traveling for business, what...
A Bloomberg BusinessWeek subscriber study asked, "In the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?" A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table. Type of Flight Type of Ticket Domestic International First Class 21 28 Business Class 122 92 Economy Class 131 515 Compute the value of the  2 test statistic...
A Bloomberg BusinessWeek subscriber study asked, "In the past 12 months, when traveling for business, what...
A Bloomberg BusinessWeek subscriber study asked, "In the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?" A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table. Type of Flight Type of Ticket Domestic International First Class 26 23 Business Class 99 123 Economy Class 518 132 a. Using a .05 level of significance,...
A Bloomberg BusinessWeek subscriber study asked, "In the past 12 months, when traveling for business, what...
A Bloomberg BusinessWeek subscriber study asked, "In the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?" A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table. Type of Flight Type of Ticket Domestic International First Class 24 29 Business Class 121 98 Economy Class 131 517 a. Using a .05 level of significance,...
A Bloomberg Busines sweek subscriber study asked, "In the past 12 months, when traveling for business,...
A Bloomberg Busines sweek subscriber study asked, "In the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?" A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table. Type of Flight Type of Ticket Domestic International First Class 26 21 Business Class 98 122 Economy Class 512 131 a. Using a.05 level of significance,...
A magazine subscriber study asked, "In the past 12 months, when traveling for business, what type...
A magazine subscriber study asked, "In the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?" A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table. Type of Ticket Type of Flight Domestic International First class 31 24 Business class 93 119 Economy class 518 135 A) Using a 0.05 level of significance, is...
A magazine subscriber study asked, "In the past 12 months, when traveling for business, what type...
A magazine subscriber study asked, "In the past 12 months, when traveling for business, what type of airline ticket did you purchase most often?" A second question asked if the type of airline ticket purchased most often was for domestic or international travel. Sample data obtained are shown in the following table. Type of Ticket Type of Flight Domestic International First class 26 19 Business class 98 124 Economy class 518 135 (a) Using a 0.05 level of significance, is...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT