题目
A business accepts cash, bank cards or mobile apps as payment methods.
The manager wishes to test whether or not there is an association between the payment amount and the payment method used.
The manager takes a random sample of 240 payments and records the payment amount and the payment method used. The manager’s results are shown in the table.
| Payment method | Under £50 | £50 to £150 | Over £150 |
|---|---|---|---|
| Cash | 23 | 19 | 18 |
| Bank card | 21 | 32 | 31 |
| Mobile app | 16 | 39 | 41 |
(a) calculate the expected frequencies for the payment amount under £50 that (i) use cash (ii) use a bank card (iii) use a mobile app
Given that for the other 6 classes
to 4 decimal places,
(b) test, at the 5% level of significance, whether or not there is evidence for an association between the payment amount and the payment method used. You should state the hypotheses, the test statistic, the degrees of freedom and the critical value used for this test.
题目中文翻译
一家商家接受现金、银行卡或移动应用付款。
经理想检验付款金额与付款方式之间是否存在关联。
经理随机抽取了 240 笔付款,并记录付款金额和所使用的付款方式。 结果如下表所示。
| 付款方式 | 低于 £50 | £50 到 £150 | 高于 £150 |
|---|---|---|---|
| 现金 | 23 | 19 | 18 |
| 银行卡 | 21 | 32 | 31 |
| 移动应用 | 16 | 39 | 41 |
(a) 计算低于 £50 的付款金额对应的期望频数,分别是 (i) 使用现金 (ii) 使用银行卡 (iii) 使用移动应用
已知其余 6 个格子的
,精确到 4 位小数,
(b) 在 5% 显著性水平下,检验是否有证据表明付款金额与付款方式有关联。 你应写出原假设、检验统计量、自由度和临界值。
解答
(a)
解法一
思路
展开
独立性检验中,每个格子的期望频数为“所在行总数乘所在列总数,再除以总数”。先求三种付款方式的行总数,以及低于 £50 这一列的总数。
答题过程
展开
The row totals for cash, bank card and mobile app are respectively
and the column total for payments under £50 is . Therefore,
(b)
解法一
思路
展开
使用卡方独立性检验。先把 (a) 中三个格子对检验统计量的贡献与题目给出的其余六格贡献相加,再根据 列联表求自由度并与 临界值比较。
答题过程
展开
The hypotheses are:
For the three classes corresponding to payments under £50, the contributions to the test statistic are
Hence
The number of degrees of freedom is
At the significance level, the critical value is
Since , the test statistic does not lie in the critical region, so is not rejected. There is insufficient evidence at the significance level of an association between the payment amount and the payment method used.