How It WorksWritersEssay ExamplesSolved AssignmentsReviewsPricing

Statistics · Hypothesis test

Chi-Square Goodness of Fit: Are Coffee Sales Even Across Weekdays?

Testing whether observed daily sales differ from a uniform expectation

Chi-square testGoodness-of-fitHypothesis testingp-value interpretation
Difficulty 5/10~25 min to solveSolved Jun 2026Donated by students

A worked solution, solved by a subject specialist and checked by an editor. Study the method; never submit it as your own. Our honor code →

Problem & approach

Before you read the solution

A coffee shop manager wants to know whether daily sales are evenly distributed across the five weekdays (Monday through Friday) or whether some days are significantly busier than others. The shop tracked sales for one randomly selected week and recorded the following number of cups sold per day: Monday 110, Tuesday 95, Wednesday 105, Thursday 120, Friday 170. Test, at the 5% significance level, the claim that daily sales are uniformly distributed across the five weekdays.

Step 1 — State the hypotheses

The claim being tested is that sales are uniformly distributed across the five weekdays. That gives us:

  • H0H_0: Daily sales are uniformly distributed across the five weekdays.
  • HaH_a: At least one weekday has a different sales rate.

Significance level: α=0.05\alpha = 0.05.

Step 2 — Compute the expected counts

Total cups sold over the week:

n=110+95+105+120+170=600n = 110 + 95 + 105 + 120 + 170 = 600

Under H0H_0 (uniform distribution across k=5k = 5 weekdays), the expected count for each day is the total divided by the number of categories:

Ei=nk=6005=120 cups per dayE_i = \frac{n}{k} = \frac{600}{5} = 120 \text{ cups per day}

Step 3 — Compute the chi-square statistic

The test statistic is:

χ2=i=1k(OiEi)2Ei\chi^2 = \sum_{i=1}^{k} \frac{(O_i - E_i)^2}{E_i}

Plugging in each weekday:

DayOiO_iEiE_iOiEiO_i - E_i(OiEi)2(O_i - E_i)^2(OiEi)2/Ei(O_i - E_i)^2 / E_i
Monday110120−101000.833
Tuesday95120−256255.208
Wednesday105120−152251.875
Thursday120120000.000
Friday17012050250020.833
Sum28.749
χ2=28.749\chi^2 = 28.749

Step 4 — Determine the critical value

Degrees of freedom for a goodness-of-fit test:

df=k1=51=4df = k - 1 = 5 - 1 = 4

From a chi-square table at α=0.05\alpha = 0.05 and df=4df = 4:

χcritical2=9.488\chi^2_{\text{critical}} = 9.488

Step 5 — Decision and interpretation

Compare:

χ2=28.749>9.488=χcritical2\chi^2 = 28.749 > 9.488 = \chi^2_{\text{critical}}

Since the test statistic exceeds the critical value, reject H0H_0 at the 5% significance level.

Conclusion

The data provide strong evidence that daily coffee sales are not uniformly distributed across the five weekdays. The largest deviation comes from Friday (170 observed vs. 120 expected), which alone contributes 20.8 out of the 28.7 total chi-square statistic. The manager should investigate what makes Friday different — pricing, foot traffic, promotions — rather than assume weekdays are interchangeable for staffing or inventory planning.

Read with the expert
Difficulty 5/102 techniques4 to watch
DifficultyStandard intro chi-square problem. Catch is recognizing "uniformly distributed" means equal expected counts across categories.

Techniques used

  1. Chi-square goodness-of-fit test
    Use this when comparing observed categorical counts to a theoretical distribution. Here, observed vs. uniform expected.
  2. p-value interpretation
    After computing the statistic, compare to the critical value at df = k - 1 and α = 0.05 to decide whether to reject H0.

Watch for

  • Computing expected counts as 0.20 (the probability) instead of total/k (the count). The chi-square statistic uses counts, not proportions.

  • Using degrees of freedom = k instead of k - 1. For goodness-of-fit, df = number of categories minus one.

  • Stopping at the test statistic without comparing it to the critical value or computing a p-value. The test conclusion requires both.

Expert's notes

A problem like this due soon?

Hand us the dataset and the brief. We'll work it end to end and walk you through every step.

Get a custom solution
Was this solution helpful?

Editor's analysis

The techniques this solution gets right, and the mistakes it avoids.

Techniques used well

Chi-square goodness-of-fit test. Use this when comparing observed categorical counts to a theoretical distribution. Here, observed vs. uniform expected.
p-value interpretation. After computing the statistic, compare to the critical value at df = k - 1 and α = 0.05 to decide whether to reject H0.

Common mistakes it avoids

Computing expected counts as 0.20 (the probability) instead of total/k (the count). The chi-square statistic uses counts, not proportions.
Using degrees of freedom = k instead of k - 1. For goodness-of-fit, df = number of categories minus one.
Stopping at the test statistic without comparing it to the critical value or computing a p-value. The test conclusion requires both.
Forgetting to state the conclusion in context. 'Reject H0' is necessary but not sufficient — say what it means for the coffee shop.

Stuck on your own dataset? Get it solved.

Original work to your brief and deadline, solved by a specialist and editor-checked, with every step shown the way this one is.

Statistics · Regression analysis6/10

Linear Regression Analysis: NFL Team Current Value vs. Operating Income

A comprehensive regression project analyzing NFL team valuations and operating income. Includes population and sample descriptive statistics, correlation analysis, 95% confidence intervals, and simple linear regression with forecasting. Compares N=32 population to n=11 random sample.

Regression analysis~45 min

Honor code

Studying it is fair use. Submitting it as your own is not.

These samples are donated by past students and shared as a learning resource. They are not for submission. Copying any sample verbatim would fail Turnitin and violate your institution's academic integrity policy. Read them to understand structure, evidence, and argument, then write your own. See our honor code and DMCA policy for details.