Test comparing the means of 2 water samples

  • Thread starter Thread starter toothpaste666
  • Start date Start date
  • Tags Tags
    Means Test Water
Click For Summary
SUMMARY

The discussion focuses on a statistical analysis comparing chlorine levels in water samples from a city lake in 2010 and 2012. The mean chlorine content decreased from 18.3 in 2010 to 17.8 in 2012, with standard deviations of 1.2 and 1.8, respectively. A Z-test was conducted with a significance level of α = 0.05, leading to the rejection of the null hypothesis (H0: μ1 - μ2 = 0) and concluding that there is strong evidence of a reduction in chlorine levels. Additionally, the analysis identified a Type I error scenario if the average chlorine level remained unchanged.

PREREQUISITES
  • Understanding of Z-tests for comparing means
  • Knowledge of hypothesis testing terminology (null hypothesis, alternative hypothesis)
  • Familiarity with confidence intervals and their construction
  • Basic statistics concepts including mean and standard deviation
NEXT STEPS
  • Learn about Type I and Type II errors in hypothesis testing
  • Study the construction of confidence intervals for population means
  • Explore the implications of sample size on statistical tests
  • Investigate the use of software tools for statistical analysis (e.g., R, Python's SciPy library)
USEFUL FOR

Statisticians, environmental scientists, and students studying statistics who are interested in hypothesis testing and analyzing environmental data trends.

toothpaste666
Messages
516
Reaction score
20

Homework Statement


In June 2010, chemical analyses were made of 85 water samples (each of unit volume) taken from various parts of a city lake, and the measurements of chlorine content were recorded. During the next two winters, the use of road salt was substantially reduced in the catchment areas of the lake. In June 2012, 110 water samples were analyzed and their chlorine contents were recorded. Calculation of the mean and the standard deviation for the two sets of the data gives:

Chlorine Content
2010 2012
Mean 18.3 17.8
Standard Deviation 1.2 1.8

Do the data provide strong evidence that there is a reduction of average chlorine level in the lake water in 2012 compared to the level in 2010?
(a) Test with α = 0.05.
(b) Suppose that a further study establishes that, in fact, the average chlorine level in the lake water didn’t change from 2010 to 2012. Referring back to part (a), did your analysis lead to a
(i) Type I error, (ii) Type II error or (iii) correct decision?
(c) Construct a 95% confidence interval for the difference of the population means.

The Attempt at a Solution


a)
let μ1 represent the 2010 mean and μ2 the 2012
X is the mean of the 2010 sample and Y is the mean of the 2012 sample
since the sample sizes n1 = 85 > 30 and n2 = 110 > 30 we use the Z test
H0: μ1-μ2=0
H1: μ1-μ2>0

we reject H0 if Z>zα = z.05 = 1.645
Z > 1.645

Z = [(X - Y) - 0]/[sqrt(s1^2/n1 + s2^2/n2)] = (18.3 - 17.8)/sqrt((1.2)^2/85 + (1.8)^2/110) = .5/.2154 = 2.32
Z = 2.32 > 1.645, so we reject H0 and say that the data provides evidence that there was a reduction in chlorine level

b) type 1 error (rejection of H0 when H0 is true)

c) large sample (n>30) so
X-Y ± zα/2 sqrt(s1^2/n1 + s2^2/n2)
18.3 - 17.8 ± (1.96)sqrt((1.2)^2/85 + (1.8)^2/110)
.5 ± (1.96)(.2154)
.5 ± .422

.078 < μ1 - μ2 < .922

Am I doing this correctly?
 
Physics news on Phys.org
The approach is right, I didn't check every number as calculators can do that.

Asking for "strong evidence" and then using α = 0.05 in the problem statement is self-contradictory, but that's a different topic.
 
  • Like
Likes   Reactions: toothpaste666
thank you
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
45K