题目
The manager of a village store is interested in the shopping habits of his customers. From previous records, the median number of items bought per customer was found to be . The manager believes the median number of items bought per customer has increased. He selects a random sample of customers and records the number of items each customer buys at his store. The results are shown in the stem-and-leaf diagram.
(a) Suggest a reason why using a Wilcoxon signed-rank test to examine the manager’s belief might not be appropriate in this situation.
(b) Use a sign test at the significance level to investigate the manager’s belief.
题目中文翻译
一家乡村商店的经理对顾客的购物习惯感兴趣。根据以往记录,每位顾客所购物品数量的中位数为 。经理认为,每位顾客所购物品数量的中位数已经增加。他随机抽取 位顾客,记录每位顾客在店内购买的物品数量。结果如茎叶图所示。
(a) 提出一个理由,说明在这种情况下,使用 Wilcoxon 符号秩检验来考察经理的看法可能不合适。
(b) 在 的显著性水平下,使用符号检验考察经理的看法。
原卷通用作答要求
Answer all questions. You should use a calculator where appropriate.
You must show all necessary working clearly; no marks will be given for unsupported answers from a calculator.
Give non-exact numerical answers correct to 3 significant figures, or 1 decimal place for angles in degrees, unless a different level of accuracy is specified in the question.
请回答所有题目。适当时应使用计算器。必须清楚展示所有必要的计算过程;仅给出计算器答案而没有过程,不予评分。除非题目另有精度要求,非精确数值答案保留 3 位有效数字,以度为单位的角度保留 1 位小数。
解答
(a)
解法一
思路
展开
查看茎叶图的尾部。符号秩检验要求总体关于其中位数对称。
答题过程
展开
The observations have a long upper tail, with large values such as and . This suggests a right-skewed population, so the symmetry assumption of the Wilcoxon signed-rank test may be inappropriate.
(b)
解法一
思路
展开
从茎叶图数出高于 的人数。用单侧精确二项概率检验是否有超过一半的顾客购买多于 件。
答题过程
展开
Let be the population median. Test against . From the diagram, observations exceed and are below it, with no observations equal to . Under the null hypothesis, the probability of exceeding is at most . The upper-tail probability is largest at the boundary , so we use for the test. The tail probability is
Since this is below , we reject . There is sufficient evidence at the level that the population median number of items bought per customer has increased.
解法二
思路
展开
把高于基准的个数近似为正态变量,作连续性修正后进行单侧检验。
答题过程
展开
Test against , where is the population median. There are observations above out of , with no ties. At the null boundary, , so its normal approximation has mean and variance .
For the upper tail , the continuity-corrected statistic is
Since , we reject at the level. There is sufficient evidence that the population median number of items bought per customer has increased.