Flour is packed in bags of 1.5 kg, as stated on the packaging, by two separate machines A and B in a factory. During a quality control inspection, the production manager selects a random sample of 40 bags filled by machine A for checking. The masses, x kg, of these 40 bags are recorded as follows. ∑x=60.32∑x2=90.993\sum x = 60.32 \quad \sum x^2 = 90.993

  1. (a)

    State what it means for a sample to be random in this context.

  2. (b)

    Find unbiased estimates of the population mean and variance of the mass of the filled bags.

  3. (c)

    Test, at the 5% level of significance, whether machine A produces overweight bags. You should state your hypotheses and define any symbols you use.

  4. (d)

    Explain in the context of the question, the meaning of 'p-value'.

  5. (e)

    The manager also wants to test whether the mean mass of the bags filled by machine B differs from 1.5 kg. It is known that the mass of the bags filled by machine B is normally distributed with variance 0.00198 kg^2. A sample of size n is randomly selected and its mean is found to be 1.489 kg. Find the range of values that n can take if there is sufficient evidence to conclude that the mean mass of the filled bags differs from 1.5 kg, at the 5% level of significance.

Work through it with AI →

It won't just hand you the answer — it asks where you're stuck.How the checker works

Worked solution

12(a)

1. State the definition of a random sample tailored to the specific context.

A random sample in this context means that every bag of flour filled by machine A has an equal chance of being chosen for the inspection.

Answer

It means that every bag of flour filled by machine A has an equal chance of being selected.

12(b)

1. Calculate the unbiased estimate of the population mean.

xˉ=∑xn\bar{x} = \frac{\sum x}{n}
xˉ=60.3240=1.508\bar{x} = \frac{60.32}{40} = 1.508

2. Calculate the unbiased estimate of the population variance.

s2=1n−1(∑x2−(∑x)2n)s^2 = \frac{1}{n-1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right)
s2=139(90.993−(60.32)240)s^2 = \frac{1}{39} \left( 90.993 - \frac{(60.32)^2}{40} \right)
s2=139(90.993−90.96256)s^2 = \frac{1}{39} (90.993 - 90.96256)
s2=0.0304439≈0.000781 (to 3 s.f.)s^2 = \frac{0.03044}{39} \approx 0.000781 \text{ (to 3 s.f.)}

Answer

Mean =1.508= 1.508, Variance =0.000781= 0.000781 (to 3 s.f.)

12(c)

1. Calculate the sample mean and unbiased estimate of the population variance (required from part b).

Sample mean, xˉ=∑xn=60.3240=1.508\bar{x} = \frac{\sum x}{n} = \frac{60.32}{40} = 1.508

Unbiased estimate of variance, s2=1n−1(∑x2−(∑x)2n)s^2 = \frac{1}{n-1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right)
s2=139(90.993−60.32240)=0.0304439≈0.00078051s^2 = \frac{1}{39} \left( 90.993 - \frac{60.32^2}{40} \right) = \frac{0.03044}{39} \approx 0.00078051

2. State the hypotheses and define the population mean parameter.

Let μ\mu be the population mean mass (in kg) of the bags filled by machine A.

H0:μ=1.5H_0: \mu = 1.5
H1:μ>1.5H_1: \mu > 1.5

3. State the test statistic, invoking the Central Limit Theorem, and evaluate the $p$-value using the graphing calculator.

Since the sample size n=40≥30n = 40 \ge 30 is large, by the Central Limit Theorem, the sample mean Xˉ\bar{X} is approximately normally distributed.
We carry out a 1-tail ZZ-test at the 5%5\% level of significance.

Test statistic: Z=Xˉ−1.5s/n∼N(0,1)Z = \frac{\bar{X} - 1.5}{s/\sqrt{n}} \sim N(0, 1) approximately.

Using a graphing calculator with μ0=1.5\mu_0 = 1.5, xˉ=1.508\bar{x} = 1.508, s=0.00078051≈0.027938s = \sqrt{0.00078051} \approx 0.027938, and n=40n = 40:
z=1.8110≈1.81z = 1.8110 \approx 1.81
p-value=0.03506≈0.0351p\text{-value} = 0.03506 \approx 0.0351

4. Conclude the hypothesis test in the context of the question.

Since p-value=0.0351<0.05p\text{-value} = 0.0351 < 0.05, we reject H0H_0.
There is sufficient evidence at the 5%5\% level of significance to conclude that machine A produces overweight bags.

Answer

Reject H0H_0; there is sufficient evidence at the 5% level of significance to conclude that machine A produces overweight bags.

12(d)

1. State the contextual meaning of the $p$-value.

The pp-value is the probability of obtaining a sample mean mass as extreme as or more extreme than the observed value (xˉ=60.3240=1.508 kg\bar{x} = \frac{60.32}{40} = 1.508\text{ kg}), assuming the null hypothesis (μ=1.5 kg\mu = 1.5\text{ kg}) is true.

In context: It is the probability of obtaining a sample mean mass of 1.508 kg1.508\text{ kg} or more, assuming that the true population mean mass of the bags filled by machine A is 1.5 kg1.5\text{ kg}.

Answer

It is the probability of obtaining a sample mean mass of 1.508 kg1.508\text{ kg} or more, assuming that the true population mean mass of the bags filled by machine A is 1.5 kg1.5\text{ kg}.

12(e)

1. State the hypotheses and the critical region for a two-tailed test at the $5\%$ significance level.

Let μ\mu be the population mean mass of the bags in kg.
H0:μ=1.5H_0: \mu = 1.5
H1:μ≠1.5H_1: \mu \neq 1.5

For a two-tailed test at the 5%5\% level of significance, we reject H0H_0 if the test statistic z≤−1.960z \le -1.960 or z≥1.960z \ge 1.960.

2. Express the test statistic in terms of $n$ and set up the rejection inequality.

Under H0H_0, Z=Xˉ−μσ/n∼N(0,1)Z = \frac{\bar{X} - \mu}{\sigma / \sqrt{n}} \sim \mathrm{N}(0, 1).

Given xˉ=1.489\bar{x} = 1.489, μ=1.5\mu = 1.5, and σ2=0.00198\sigma^2 = 0.00198:
z=1.489−1.50.00198/n=−0.011n0.00198z = \frac{1.489 - 1.5}{\sqrt{0.00198/n}} = \frac{-0.011\sqrt{n}}{\sqrt{0.00198}}

Since xˉ<1.5\bar{x} < 1.5, we require z≤−1.960z \le -1.960 for there to be sufficient evidence to reject H0H_0:
−0.011n0.00198≤−1.960\frac{-0.011\sqrt{n}}{\sqrt{0.00198}} \le -1.960

3. Solve the inequality for $n$.

n≥1.9600.001980.011\sqrt{n} \ge \frac{1.960 \sqrt{0.00198}}{0.011}
n≥7.9286\sqrt{n} \ge 7.9286
n≥62.86n \ge 62.86

Since the sample size nn must be an integer, n≥63n \ge 63.

Answer

n≥63n \ge 63

AI analysis — may contain mistakes.

Worked this one out on paper? Snap your steps and Gigle's AI math checker will circle the step where it went wrong.

More questions on this topic

  1. 1The organisers of a conference wish to conduct a survey on 80 participants to gather feedback about their conference exp…
  2. 2Section B: Statistics [60 marks] A company has 1500 employees. 35% of employees are in the 21-40 age group, 50% are in t…
  3. 3A company comprises 150 programmers, 15 secretaries and 15 section heads. The owner of the company wants to gather feedb…
  4. 4Section B: Statistics [60 marks] A company wants to find out the transportation habits of their employees. On one partic…
  5. 5In a social club with 1000 members, the executive committee would like to survey the members' opinion on the activities…