题目
Problem
A manager at a large estate agency believes that the type of property affects the time taken
to sell it.
A random sample of 125 properties sold is shown in the table.
| Type of property | Bungalow | Flat | House | Total |
|---|
| Sold within three months | 7 | 29 | 46 | 82 |
| Sold in more than three months | 9 | 19 | 15 | 43 |
| Total | 16 | 48 | 61 | 125 |
Test, at the 5% level of significance, whether there is evidence for an association between
the type of property and the time taken to sell it.
You should state your hypotheses, expected frequencies, test statistic and the critical value
used for this test.
(10)
(Total 10 marks)
题目中文翻译
一家大型房产中介的经理认为,房产类型会影响出售所需时间。
下表给出随机抽取的 125 套已售房产样本。
| 房产类型 | 平房 | 公寓 | 独立屋 | 合计 |
|---|
| 在三个月内售出 | 7 | 29 | 46 | 82 |
| 超过三个月才售出 | 9 | 19 | 15 | 43 |
| 合计 | 16 | 48 | 61 | 125 |
在 5% 显著性水平下检验:房产类型与出售所需时间之间是否存在关联。
你应写出原假设、期望频数、检验统计量和该检验所用的临界值。
解答
解法一
思路
展开
这是 2×3 列联表的卡方独立性检验。先写“房产类型”与“售出时间”是否独立的假设,再用行总计乘列总计除以总数求六个期望频数,计算检验统计量,并与自由度为 (2−1)(3−1)=2 的临界值比较。
答题过程
展开
The hypotheses are
H0:H1: Property type and time taken to sell are independent, Property type and time taken to sell are associated.
Each expected frequency is calculated using
E=grand totalrow total×column total.
For example,
Ewithin 3 months, bungalow=12582(16)=10.496.
The expected frequencies are
| Bungalow | Flat | House | Total |
|---|
| Sold within three months | 10.496 | 31.488 | 40.016 | 82 |
| Sold after three months | 5.504 | 16.512 | 20.984 | 43 |
| Total | 16 | 48 | 61 | 125 |
Therefore,
χ2===≈∑E(O−E)210.496(7−10.496)2+31.488(29−31.488)2+40.016(46−40.016)2+5.504(9−5.504)2+16.512(19−16.512)2+20.984(15−20.984)26.55779…6.56.
The number of degrees of freedom is
ν=(2−1)(3−1)=2.
At the 5% significance level, the critical value is
χ22(0.05)=5.991.
Since
6.55779…>5.991,
the test statistic lies in the critical region, so H0 is rejected. There is sufficient evidence at the 5% significance level to suggest an association between property type and the time taken to sell the property.