Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

students at a major university believe they can save money buying textb…

Question

students at a major university believe they can save money buying textbooks online rather than at the local bookstores. in order to test this theory, they randomly sampled 25 textbooks on the shelves of the local bookstores. the students then found the best available price for the same textbooks via online retailers. the prices for the textbooks are listed in the following table. based on the data, is it less expensive for the students to purchase textbooks from the online retailers than from local bookstores? use α = 0.05. let prices at local bookstores represent population 1 and prices at online retailers represent population 2.

textbook prices (dollars)

textbookbookstoreonline retailertextbookbookstoreonline retailer
2149162157068
3605216121118
4987617108110
5937018115107
6144142197857
712714120140145
86064216958
914914622150126
109310523148158
11109105248670
12148123256566
1393106

Explanation:

Step 1: Define the Difference

Let \( d = \text{Population 1 (Bookstore)} - \text{Population 2 (Online Retailer)} \). We want to test \( H_0: \mu_d \leq 0 \) vs \( H_1: \mu_d > 0 \) (or equivalently, test if \( \mu_1 > \mu_2 \), so \( \mu_d = \mu_1 - \mu_2 \), and we test if \( \mu_d > 0 \) to see if bookstore is more expensive, i.e., online is cheaper). First, calculate the differences \( d_i \) for each textbook:

For Textbook 1: \( 130 - 123 = 7 \)

Textbook 2: \( 149 - 162 = -13 \)

Textbook 3: \( 60 - 52 = 8 \)

Textbook 4: \( 98 - 76 = 22 \)

Textbook 5: \( 93 - 70 = 23 \)

Textbook 6: \( 144 - 142 = 2 \)

Textbook 7: \( 127 - 141 = -14 \)

Textbook 8: \( 60 - 64 = -4 \)

Textbook 9: \( 149 - 146 = 3 \)

Textbook 10: \( 93 - 105 = -12 \)

Textbook 11: \( 109 - 105 = 4 \)

Textbook 12: \( 148 - 123 = 25 \)

Textbook 13: \( 93 - 106 = -13 \)

Textbook 14: \( 128 - 140 = -12 \)

Textbook 15: \( 70 - 68 = 2 \)

Textbook 16: \( 121 - 118 = 3 \)

Textbook 17: \( 108 - 110 = -2 \)

Textbook 18: \( 115 - 107 = 8 \)

Textbook 19: \( 78 - 57 = 21 \)

Textbook 20: \( 140 - 145 = -5 \)

Textbook 21: \( 69 - 58 = 11 \)

Textbook 22: \( 150 - 126 = 24 \)

Textbook 23: \( 148 - 158 = -10 \)

Textbook 24: \( 86 - 70 = 16 \)

Textbook 25: \( 65 - 66 = -1 \)

Step 2: Calculate Sample Mean of Differences (\(\bar{d}\))

First, sum all \( d_i \):

\( 7 -13 +8 +22 +23 +2 -14 -4 +3 -12 +4 +25 -13 -12 +2 +3 -2 +8 +21 -5 +11 +24 -10 +16 -1 \)

Let's compute step by step:

Positive terms: \( 7 +8 +22 +23 +2 +3 +4 +25 +2 +3 +8 +21 +11 +24 +16 = 7+8=15; 15+22=37; 37+23=60; 60+2=62; 62+3=65; 65+4=69; 69+25=94; 94+2=96; 96+3=99; 99+8=107; 107+21=128; 128+11=139; 139+24=163; 163+16=179 \)

Negative terms: \( -13 -14 -4 -12 -13 -12 -2 -5 -10 -1 = -(13+14+4+12+13+12+2+5+10+1) = -(13+14=27; 27+4=31; 31+12=43; 43+13=56; 56+12=68; 68+2=70; 70+5=75; 75+10=85; 85+1=86) = -86 \)

Total sum: \( 179 - 86 = 93 \)

Sample size \( n = 25 \), so \( \bar{d} = \frac{93}{25} = 3.72 \)

Step 3: Calculate Sample Standard Deviation of Differences (\(s_d\))

First, compute \( (d_i - \bar{d})^2 \) for each \( d_i \):

For \( d_1 = 7 \): \( (7 - 3.72)^2 = (3.28)^2 = 10.7584 \)

\( d_2 = -13 \): \( (-13 - 3.72)^2 = (-16.72)^2 = 279.5584 \)

\( d_3 = 8 \): \( (8 - 3.72)^2 = (4.28)^2 = 18.3184 \)

\( d_4 = 22 \): \( (22 - 3.72)^2 = (18.28)^2 = 334.1584 \)

\( d_5 = 23 \): \( (23 - 3.72)^2 = (19.28)^2 = 371.7184 \)

\( d_6 = 2 \): \( (2 - 3.72)^2 = (-1.72)^2 = 2.9584 \)

\( d_7 = -14 \): \( (-14 - 3.72)^2 = (-17.72)^2 = 314.0084 \)

\( d_8 = -4 \): \( (-4 - 3.72)^2 = (-7.72)^2 = 59.5984 \)

\( d_9 = 3 \): \( (3 - 3.72)^2 = (-0.72)^2 = 0.5184 \)

\( d_{10} = -12 \): \( (-12 - 3.72)^2 = (-15.72)^2 = 247.1184 \)

\( d_{11} = 4 \): \( (4 - 3.72)^2 = (0.28)^2 = 0.0784 \)

\( d_{12} = 25 \): \( (25 - 3.72)^2 = (21.28)^2 = 452.8384 \)

\( d_{13} = -13 \): \( (-13 - 3.72)^2 = (-16.72)^2 = 279.5584 \)

\( d_{14} = -12 \): \( (-12 - 3.72)^2 = (-15.72)^2 = 247.1184 \)

\( d_{15} = 2 \): \( (2 - 3.72)^2 = (-1.72)^2 = 2.9584 \)

\( d_{16} = 3 \): \( (3 - 3.72)^2 = (-0.72)^2 = 0.5184 \)

\( d_{17} = -2 \): \( (-2 - 3.72)^2 = (-5.72)^2 = 32.7184 \)

\( d_{18} = 8 \): \( (8 - 3.72)^2 = (4.28)^2 = 18.3184 \)

\( d_{19} = 21 \): \( (21 - 3.72)^2 = (17.28)^2 = 298.5984 \)

\( d_{20} = -5 \): \( (-5 - 3.72)^2 = (-8.72)^2 = 76.0384 \)

\( d_{21} = 11 \): \( (11 - 3.72)^2 = (7.28)^2 = 52.9984 \)

\( d_{22} = 24 \): \( (24 - 3.72)^2 = (20.28)^2 = 411.2784 \)

\( d_{23} = -10 \): \( (-10 - 3.72)^2 = (-13.72)^2 = 188.2384 \)

\( d_{24} = 16 \): \( (16 - 3.72)^2 = (12.28)^2 = 150.7984 \)

\( d_{25} = -1…

Answer:

Step 1: Define the Difference

Let \( d = \text{Population 1 (Bookstore)} - \text{Population 2 (Online Retailer)} \). We want to test \( H_0: \mu_d \leq 0 \) vs \( H_1: \mu_d > 0 \) (or equivalently, test if \( \mu_1 > \mu_2 \), so \( \mu_d = \mu_1 - \mu_2 \), and we test if \( \mu_d > 0 \) to see if bookstore is more expensive, i.e., online is cheaper). First, calculate the differences \( d_i \) for each textbook:

For Textbook 1: \( 130 - 123 = 7 \)

Textbook 2: \( 149 - 162 = -13 \)

Textbook 3: \( 60 - 52 = 8 \)

Textbook 4: \( 98 - 76 = 22 \)

Textbook 5: \( 93 - 70 = 23 \)

Textbook 6: \( 144 - 142 = 2 \)

Textbook 7: \( 127 - 141 = -14 \)

Textbook 8: \( 60 - 64 = -4 \)

Textbook 9: \( 149 - 146 = 3 \)

Textbook 10: \( 93 - 105 = -12 \)

Textbook 11: \( 109 - 105 = 4 \)

Textbook 12: \( 148 - 123 = 25 \)

Textbook 13: \( 93 - 106 = -13 \)

Textbook 14: \( 128 - 140 = -12 \)

Textbook 15: \( 70 - 68 = 2 \)

Textbook 16: \( 121 - 118 = 3 \)

Textbook 17: \( 108 - 110 = -2 \)

Textbook 18: \( 115 - 107 = 8 \)

Textbook 19: \( 78 - 57 = 21 \)

Textbook 20: \( 140 - 145 = -5 \)

Textbook 21: \( 69 - 58 = 11 \)

Textbook 22: \( 150 - 126 = 24 \)

Textbook 23: \( 148 - 158 = -10 \)

Textbook 24: \( 86 - 70 = 16 \)

Textbook 25: \( 65 - 66 = -1 \)

Step 2: Calculate Sample Mean of Differences (\(\bar{d}\))

First, sum all \( d_i \):

\( 7 -13 +8 +22 +23 +2 -14 -4 +3 -12 +4 +25 -13 -12 +2 +3 -2 +8 +21 -5 +11 +24 -10 +16 -1 \)

Let's compute step by step:

Positive terms: \( 7 +8 +22 +23 +2 +3 +4 +25 +2 +3 +8 +21 +11 +24 +16 = 7+8=15; 15+22=37; 37+23=60; 60+2=62; 62+3=65; 65+4=69; 69+25=94; 94+2=96; 96+3=99; 99+8=107; 107+21=128; 128+11=139; 139+24=163; 163+16=179 \)

Negative terms: \( -13 -14 -4 -12 -13 -12 -2 -5 -10 -1 = -(13+14+4+12+13+12+2+5+10+1) = -(13+14=27; 27+4=31; 31+12=43; 43+13=56; 56+12=68; 68+2=70; 70+5=75; 75+10=85; 85+1=86) = -86 \)

Total sum: \( 179 - 86 = 93 \)

Sample size \( n = 25 \), so \( \bar{d} = \frac{93}{25} = 3.72 \)

Step 3: Calculate Sample Standard Deviation of Differences (\(s_d\))

First, compute \( (d_i - \bar{d})^2 \) for each \( d_i \):

For \( d_1 = 7 \): \( (7 - 3.72)^2 = (3.28)^2 = 10.7584 \)

\( d_2 = -13 \): \( (-13 - 3.72)^2 = (-16.72)^2 = 279.5584 \)

\( d_3 = 8 \): \( (8 - 3.72)^2 = (4.28)^2 = 18.3184 \)

\( d_4 = 22 \): \( (22 - 3.72)^2 = (18.28)^2 = 334.1584 \)

\( d_5 = 23 \): \( (23 - 3.72)^2 = (19.28)^2 = 371.7184 \)

\( d_6 = 2 \): \( (2 - 3.72)^2 = (-1.72)^2 = 2.9584 \)

\( d_7 = -14 \): \( (-14 - 3.72)^2 = (-17.72)^2 = 314.0084 \)

\( d_8 = -4 \): \( (-4 - 3.72)^2 = (-7.72)^2 = 59.5984 \)

\( d_9 = 3 \): \( (3 - 3.72)^2 = (-0.72)^2 = 0.5184 \)

\( d_{10} = -12 \): \( (-12 - 3.72)^2 = (-15.72)^2 = 247.1184 \)

\( d_{11} = 4 \): \( (4 - 3.72)^2 = (0.28)^2 = 0.0784 \)

\( d_{12} = 25 \): \( (25 - 3.72)^2 = (21.28)^2 = 452.8384 \)

\( d_{13} = -13 \): \( (-13 - 3.72)^2 = (-16.72)^2 = 279.5584 \)

\( d_{14} = -12 \): \( (-12 - 3.72)^2 = (-15.72)^2 = 247.1184 \)

\( d_{15} = 2 \): \( (2 - 3.72)^2 = (-1.72)^2 = 2.9584 \)

\( d_{16} = 3 \): \( (3 - 3.72)^2 = (-0.72)^2 = 0.5184 \)

\( d_{17} = -2 \): \( (-2 - 3.72)^2 = (-5.72)^2 = 32.7184 \)

\( d_{18} = 8 \): \( (8 - 3.72)^2 = (4.28)^2 = 18.3184 \)

\( d_{19} = 21 \): \( (21 - 3.72)^2 = (17.28)^2 = 298.5984 \)

\( d_{20} = -5 \): \( (-5 - 3.72)^2 = (-8.72)^2 = 76.0384 \)

\( d_{21} = 11 \): \( (11 - 3.72)^2 = (7.28)^2 = 52.9984 \)

\( d_{22} = 24 \): \( (24 - 3.72)^2 = (20.28)^2 = 411.2784 \)

\( d_{23} = -10 \): \( (-10 - 3.72)^2 = (-13.72)^2 = 188.2384 \)

\( d_{24} = 16 \): \( (16 - 3.72)^2 = (12.28)^2 = 150.7984 \)

\( d_{25} = -1 \): \( (-1 - 3.72)^2 = (-4.72)^2 = 22.2784 \)

Now sum all these squared differences:

Let's group them:

10.7584 + 279.5584 = 290.3168

+18.3184 = 308.6352

+334.1584 = 642.7936

+371.7184 = 1014.512

+2.9584 = 1017.4704

+314.0084 = 1331.4788

+59.5984 = 1391.0772

+0.5184 = 1391.5956

+247.1184 = 1638.714

+0.0784 = 1638.7924

+452.8384 = 2091.6308

+279.5584 = 2371.1892

+247.1184 = 2618.3076

+2.9584 = 2621.266

+0.5184 = 2621.7844

+32.7184 = 2654.5028

+18.3184 = 2672.8212

+298.5984 = 2971.4196

+76.0384 = 3047.458

+52.9984 = 3100.4564

+411.2784 = 3511.7348

+188.2384 = 3699.9732

+150.7984 = 3850.7716

+22.2784 = 3873.05

Now, sample variance \( s_d^2 = \frac{\sum (d_i - \bar{d})^2}{n - 1} = \frac{3873.05}{24} \approx 161.3771 \)

Sample standard deviation \( s_d = \sqrt{161.3771} \approx 12.703 \)

Step 4: Calculate t-Statistic

The t-statistic for paired t-test is \( t = \frac{\bar{d} - \mu_d}{s_d / \sqrt{n}} \). Under \( H_0 \), \( \mu_d = 0 \), so:

\( t = \frac{3.72 - 0}{12.703 / \sqrt{25}} = \frac{3.72}{12.703 / 5} = \frac{3.72}{2.5406} \approx 1.464 \)

Step 5: Determine Critical Value and Decision

Degrees of freedom \( df = n - 1 = 24 \). For a one-tailed test with \( \alpha = 0.05 \), the critical value \( t_{\alpha, df} = t_{0.05, 24} \approx 1.711 \) (from t-table).

Since the calculated t-statistic (1.464) is less than the critical value (1.711), we fail to reject \( H_0 \). Wait, but let's check the alternative hypothesis. Wait, we set \( H_0: \mu_d \leq 0 \) (bookstore price - online price ≤ 0, i.e., online is not cheaper) and \( H_1: \mu_d > 0 \) (bookstore is more expensive, online is cheaper). Since t = 1.464 < 1.711, we do not have sufficient evidence at \( \alpha = 0.05 \) to conclude that online retailers are less expensive than local bookstores. Wait, but maybe I made a mistake in the direction. Wait, if we test \( H_0: \mu_1 = \mu_2 \) vs \( H_1: \mu_1 > \mu_2 \) (bookstore more expensive), then the p-value: using t-distribution with df=24, t=1.464, one-tailed p-value is \( P(T > 1.464) \). Using calculator, t=1.464, df=24, p-value ≈ 0.077, which is greater than 0.05, so we fail to reject \( H_0 \).

Wait, but let's recheck the difference calculation. Maybe I messed up the sign. Wait, the problem says "is it less expensive for the students to purchase textbooks from the online retailers than from local bookstores?" So we want to test if \( \mu_2 < \mu_1 \), i.e., \( \mu_1 - \mu_2 > 0 \), so \( H_0: \mu_1 - \mu_2 \leq 0 \), \( H_1: \mu_1 - \mu_2 > 0 \). So the differences are \( d = \mu_1 - \mu_2 \), so positive d means bookstore is more expensive. Our sample mean of d is 3.72, which is positive, but the t-statistic is 1.464, p-value ~0.077 > 0.05, so we can't conclude at 0.05 that online is cheaper.

Wait, maybe I made a mistake in the sum of differences. Let's recalculate the sum of d_i:

List of d_i:

7, -13, 8, 22, 23, 2, -14, -4, 3, -12, 4, 25, -13, -12, 2, 3, -2, 8, 21, -5, 11, 24, -10, 16, -1

Let's add them in order:

7 -13 = -6

-6 +8 = 2

2 +22 = 24

24 +23 = 47

47 +2 = 49

49 -14 = 35

35 -4 = 31

31 +3 = 34

34 -12 = 22

22 +4 = 26

26 +25 = 51

51 -13 = 38

38 -12 = 26

26 +2 = 28

28 +3 = 31

31 -2 = 29

29 +8 = 37

37 +21 = 58

58 -5 = 53

53 +11 = 64

64 +24 = 88

88 -10 = 78

78 +16 = 94

94 -1 = 93. Yes, sum is 93. So \( \bar{d} = 93/25 = 3.72 \). Correct.

Sum of squared differences: Let's check a few:

For d=-13: (-13 - 3.72)^2 = (-16.72)^2 = 279.5584. Correct.

d=22: (22-3.72)=18.