Professional Documents
Culture Documents
Instructions: Use calculator for computations. You can use the formula provided at the end.
1. Based on interviews of couples seeking divorces, a social worker compiles the following
data related to the period of acquaintanceship before marriage and the duration of mar-
riage. Perform a test to determine if the data substantiate an association between the
stability of a marriage and the period of acquaintanceship prior to marriage. (3+5)
Duration of Marriage
Acquaintanceship before Marriage ≤ 4 years > 4 years Total
< 6 months 11 8 19
6 − 18 months 28 24 52
> 18 months 21 19 40
Total 60 51 111
2. To examine the quality of a random number generator, frequency counts of the integers
are recorded from an output of 500 integers. The concept of randomness implies that
the integers 0, 1, ..., 9 are equally likely. Based on the observed frequency counts, would
you suspect any bias of the random number generator? (3+5)
Integer 0 1 2 3 4 5 6 7 8 9 Total
Frequency 41 58 51 61 39 56 45 35 62 52 500
3. An antibiotic for pneumonia was injected into 100 patients with kidney malfunctions
(called uremic patients) and 100 patients with no kidney malfunctions (called normal
patients). Some allergic reaction developed in 38 of the uremic patients and 21 of the
normal patients. (4+4)
(a) Do the data provide strong evidence that the rate of incidence of allergic reaction to
the antibiotic is higher in uremic patients than normal patients? Test at 5% level.
(b) Construct a 95% confidence interval for the difference between the rate of incidence
and draw your conclusions.
4. A sample of river water is divided into two specimens. One is randomly selected to be
sent to Lab A and the other is sent to Lab B. This is repeated for a total of nine times.
1
The measurement of suspended solids at Lab B is subtracted from that of Lab A to
obtain the differences
12 10 15 42 11 −4 − 2 10 −7
(a) Is there strong evidence that the mean difference is not zero? Test at 5% level.
(b) Construct 95% confidence interval for the mean difference of the suspended solids
measurements and draw your conclusions. (4+4)
5 Students can bike to a park on the other side of a lake by going around one side of
the lake or the other. After much discussion about which was faster, they decided to
perform an experiment. Among the 12 students available, 6 were randomly selected to
follow Path A on one side of the lake and the rest followed Path B on the other side.
They all went on different days so the conclusion would apply to a variety of conditions.
Path A 10 12 15 11 16 11
Path B 12 15 17 13 18 16
(a) Is there a significant difference (at 5% level) between the mean travel times between
the two paths? State the assumptions you have made in performing the test.
(b) Construct 95% confidence interval for the mean difference between the travel times
and draw your conclusions. (4+4)
2
Some Necessary Formulae
(symbols have their usual interpretation)
3
Test for goodness of fit
Test statistic for H0 that the observed and expected counts match
where k represents the number of categories to compare. In case of parameter estimation, the
degrees of freedom will be reduced further, by the number of parameters estimated.
Test for association
Test statistic for H0 that there is no association
X (Observed count - Expected count)2 H0 2
T = ∼ χ(I−1)(J−1)
Expected count
where I and J denote the number of categories present in the two categorical variables under
comparison.
One-way ANOVA
Computational steps
TSS = ki=1 nj=1 x2ij − n × x̄2G , where x̄G denotes the grand mean
P P i
Pk
SSB = i=1 (x̄i − x̄G )2 × ni , where x̄i denotes the sample mean of the i’th group
SSW = ki=1 (ni − 1) × Si2 , where Si2 denotes sample variance of the i’th group
P
TSS = SSC + SSR + RSS, RSS being the residual sum of squares
Test statistics
SSC/(k − 1) H0
F1 = ∼ Fk−1,(b−1)(k−1)
RSS/(b − 1)(k − 1)
under the null hypothesis that the k column means are equal.
SSR/(b − 1) H0
F2 = ∼ Fb−1,(b−1)(k−1)
RSS/(b − 1)(k − 1)
under the null hypothesis that the b row/block means are equal.