At Westonci.ca, we provide reliable answers to your questions from a community of experts. Start exploring today! Experience the convenience of getting reliable answers to your questions from a vast network of knowledgeable experts. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.

### QUESTION 1
Test whether the average gas prices in the states of Missouri, Iowa, and Illinois are equal against the alternative that not all the average prices are equal (use [tex]$\alpha=5\%$[/tex]). A business analyst provided the following information about each random sample taken from each state:

\begin{tabular}{|c|c|c|}
\hline
\multicolumn{3}{|c|}{Gas Price/Gallon} \\
\hline
& Iowa & Illinois \\
\hline
Missouri & [tex]$\bar{x}_2=3.2$[/tex] & [tex]$\bar{x}_3=3.5$[/tex] \\
\hline
[tex]$\bar{x}_1=3.0$[/tex] & [tex]$S_2^2=3$[/tex] & [tex]$S_3^2=1$[/tex] \\
\hline
[tex]$S_1^2=2$[/tex] & [tex]$n_2=5$[/tex] & [tex]$n_3=10$[/tex] \\
\hline
[tex]$n_1=5$[/tex] & & \\
\hline
\end{tabular}

### QUESTION 2
A regional transit authority is concerned about the number of riders on one of its bus routes. In setting up the route, the assumption is that the number of riders is the same on every day from Monday through Friday. A random sample of 90 riders yielded the following results:

\begin{tabular}{|l|c|}
\hline
Day & Number of Riders \\
\hline
Monday & 13 \\
\hline
Tuesday & 16 \\
\hline
Wednesday & 28 \\
\hline
Thursday & 17 \\
\hline
Friday & 16 \\
\hline
\end{tabular}

Using [tex]$\alpha=5\%$[/tex], determine whether the transit authority's assumption is correct.

Hint: If the null hypothesis is true, then the number of riders is the same on every day from Monday through Friday. So, the proportions of riders on Mondays, on Tuesdays, on Wednesdays, on Thursdays, or on Fridays will be the same. Let [tex]$P_1, P_2, P_3, P_4,$[/tex] and [tex]$P_5$[/tex] be the proportions of riders on Mondays, on Tuesdays, on Wednesdays, on Thursdays, or on Fridays, respectively. Because there are five alternatives (Mondays, Tuesdays, Wednesdays, Thursdays, and Fridays), it follows that [tex]$P_1=P_2=P_3=P_4=P_5=\frac{1}{5}=0.20$[/tex].


Sagot :

### Question 2: Hypothesis Test for Number of Riders

Objective:
We want to test whether the number of riders on a bus route is the same for each day from Monday through Friday. The null hypothesis is that the number of riders per day is the same.

Given Data:
- Number of riders on:
- Monday: 13
- Tuesday: 16
- Wednesday: 28
- Thursday: 17
- Friday: 16

Total Riders: 90

Proportions Under Null Hypothesis:
- Since there are five days, the expected proportion for each day is 0.20 (i.e., 20% of the total riders should be on each day if the null hypothesis is true).

Expected Frequencies:
- For each day, given the total number of riders (90), the expected frequency is:
[tex]\[ \text{Expected Riders per Day} = 90 \times 0.20 = 18 \][/tex]

So, the expected number of riders for each day is:
- Monday: 18
- Tuesday: 18
- Wednesday: 18
- Thursday: 18
- Friday: 18

Observed Frequencies:
- Monday: 13
- Tuesday: 16
- Wednesday: 28
- Thursday: 17
- Friday: 16

Chi-Square Test Statistic:

The chi-square test statistic is given by:
[tex]\[ \chi^2 = \sum \frac{(O_i - E_i)^2}{E_i} \][/tex]
where [tex]\(O_i\)[/tex] is the observed frequency and [tex]\(E_i\)[/tex] is the expected frequency.

Computing this for each day:
[tex]\[ \begin{aligned} \chi^2 &= \frac{(13 - 18)^2}{18} + \frac{(16 - 18)^2}{18} + \frac{(28 - 18)^2}{18} + \frac{(17 - 18)^2}{18} + \frac{(16 - 18)^2}{18} \\ &= \frac{(-5)^2}{18} + \frac{(-2)^2}{18} + \frac{(10)^2}{18} + \frac{(-1)^2}{18} + \frac{(-2)^2}{18} \\ &= \frac{25}{18} + \frac{4}{18} + \frac{100}{18} + \frac{1}{18} + \frac{4}{18} \\ &= 1.389 + 0.222 + 5.556 + 0.056 + 0.222 \\ &= 7.444 \end{aligned} \][/tex]

So, [tex]\(\chi^2 \approx 7.44\)[/tex].

Degrees of Freedom:
The degrees of freedom for this test is given by the number of categories minus 1:
[tex]\[ \text{Degrees of Freedom} = 5 - 1 = 4 \][/tex]

p-value:
Using the chi-square distribution table or a chi-square calculator, with 4 degrees of freedom and [tex]\(\chi^2 \approx 7.44\)[/tex]:
[tex]\[ p \approx 0.114 \][/tex]

Conclusion:
- Compare the p-value to the significance level [tex]\(\alpha = 0.05\)[/tex]. If [tex]\(p > \alpha\)[/tex], we fail to reject the null hypothesis.
- Here, [tex]\(p \approx 0.114\)[/tex], which is greater than 0.05.

Therefore, we fail to reject the null hypothesis. There is not enough evidence at the 5% significance level to conclude that the number of riders is different on different days. The transit authority's assumption that the number of riders is the same on every day from Monday through Friday is not contradicted by the sample data.