题目
Problem
Statistical models are a cheap and quick way to make predictions about real-world situations.
(a) Give one other reason why statistical models are used.
(1)
Madison wants to develop a model to describe the relationship between the average daily temperature, t ∘ C t\,^\circ\text{C} t ∘ C , and a household’s daily gas consumption, d m 3 d\,\text{m}^3 d m 3 , in winter.
Madison takes a random sample of 12 12 12 days in winter and codes the daily gas consumption so that w = 11.5 d w=11.5d w = 11.5 d .
These data are summarised as follows
S t t = 26.43 , S t w = − 91.55 , ∑ w = 339.25 , ∑ t = 9.1 , ∑ w 2 = 10 036.45. \begin{align*}
S_{tt}=&\,26.43,\\
S_{tw}=&\,-91.55,\\
\sum w=&\,339.25,\\
\sum t=&\,9.1,\\
\sum w^2=&\,10\,036.45.
\end{align*} S tt = S tw = ∑ w = ∑ t = ∑ w 2 = 26.43 , − 91.55 , 339.25 , 9.1 , 10 036.45.
(b) Show that S w w = 445.57 S_{ww}=445.57 S w w = 445.57 to 2 2 2 decimal places.
(1)
(c) Find the value of S t d S_{td} S t d and the value of S d d S_{dd} S dd .
(3)
(d) Find the product moment correlation coefficient between d d d and t t t .
(2)
(e) Give an interpretation, in context, of your product moment correlation coefficient.
(1)
(f) Show that the equation of the regression line of w w w on t t t is
w = − 3.46 t + 30.9 w=-3.46t+30.9 w = − 3.46 t + 30.9
where the values of the intercept and the gradient are given to 3 3 3 significant figures.
(3)
(g) Write down an equation of the regression line of d d d on t t t .
(1)
(h) Using your equation in part (g)
(i) estimate the daily gas consumption in winter when the temperature is 2 ∘ C 2\,^\circ\text{C} 2 ∘ C
(ii) interpret the effect an increase of 1 ∘ C 1\,^\circ\text{C} 1 ∘ C in average daily temperature is expected to have on the daily gas consumption in winter.
(2)
题目中文翻译
统计模型是一种成本低、速度快的方式,用于预测现实世界中的情况。
(a) 给出使用统计模型的另一项理由。(1 分)
Madison 希望建立模型,描述冬季日平均气温 t ∘ C t\,^\circ\text{C} t ∘ C 与一个家庭每日燃气消耗量 d m 3 d\,\text{m}^3 d m 3 的关系。随机抽取冬季的 12 12 12 天,并将每日燃气消耗量编码为 w = 11.5 d w=11.5d w = 11.5 d 。汇总统计量如上所示。
(b) 证明 S w w = 445.57 S_{ww}=445.57 S w w = 445.57 ,精确到 2 位小数。(1 分)
(c) 求 S t d S_{td} S t d 和 S d d S_{dd} S dd 。(3 分)
(d) 求 d d d 与 t t t 的积矩相关系数。(2 分)
(e) 结合情境解释该积矩相关系数。(1 分)
(f) 证明 w w w 对 t t t 的回归直线方程为 w = − 3.46 t + 30.9 w=-3.46t+30.9 w = − 3.46 t + 30.9 ,其中截距与斜率均精确到 3 位有效数字。(3 分)
(g) 写出 d d d 对 t t t 的回归直线方程。(1 分)
(h) 使用 (g) 中的方程:
(i) 估计冬季气温为 2 ∘ C 2\,^\circ\text{C} 2 ∘ C 时的每日燃气消耗量;
(ii) 解释日平均气温增加 1 ∘ C 1\,^\circ\text{C} 1 ∘ C 对冬季每日燃气消耗量的预期影响。(共 2 分)
解答
(a)
解法一
思路
展开
题目已经说了 statistical models 可以 cheap、quick、make predictions,所以答案不能只重复这些。可以说模型帮助理解、简化真实世界,或展示变量之间的关系。
答题过程
展开
Statistical models can be used to show relationships between variables.
(b)
解法一
思路
展开
用
S w w = ∑ w 2 − ( ∑ w ) 2 n . \begin{align*}
S_{ww}=\sum w^2-\frac{(\sum w)^2}{n}.
\end{align*} S w w = ∑ w 2 − n ( ∑ w ) 2 .
题目给了 ∑ w 2 \sum w^2 ∑ w 2 、∑ w \sum w ∑ w 和 n = 12 n=12 n = 12 。
答题过程
展开
S w w = ∑ w 2 − ( ∑ w ) 2 n = 10036.45 − ( 339.25 ) 2 12 = 10036.45 − 9590.880208 … = 445.569791 … . \begin{align*}
S_{ww}
=&\,\sum w^2-\frac{(\sum w)^2}{n}\\
=&\,10036.45-\frac{(339.25)^2}{12}\\
=&\,10036.45-9590.880208\ldots\\
=&\,445.569791\ldots.
\end{align*} S w w = = = = ∑ w 2 − n ( ∑ w ) 2 10036.45 − 12 ( 339.25 ) 2 10036.45 − 9590.880208 … 445.569791 … .
So
S w w = 445.57 \begin{align*}
S_{ww}=445.57
\end{align*} S w w = 445.57
to 2 2 2 decimal places.
(c)
解法一
思路
展开
因为 w = 11.5 d w=11.5d w = 11.5 d ,所以 d = w 11.5 d=\dfrac{w}{11.5} d = 11.5 w 。协方差型的 S S S 会随其中一个变量除以 11.5 11.5 11.5 而除以 11.5 11.5 11.5 ;方差型的 S S S 会随变量除以 11.5 11.5 11.5 而除以 11.5 2 11.5^2 11. 5 2 。
答题过程
展开
Since
w = 11.5 d , \begin{align*}
w=11.5d,
\end{align*} w = 11.5 d ,
we have
d = w 11.5 . \begin{align*}
d=\frac{w}{11.5}.
\end{align*} d = 11.5 w .
Therefore
S t d = S t w 11.5 = − 91.55 11.5 = − 7.9608 … . \begin{align*}
S_{td}
=&\,\frac{S_{tw}}{11.5}\\
=&\,\frac{-91.55}{11.5}\\
=&\,-7.9608\ldots.
\end{align*} S t d = = = 11.5 S tw 11.5 − 91.55 − 7.9608 … .
Also,
S d d = S w w ( 11.5 ) 2 = 445.569791 … 132.25 = 3.3691 … . \begin{align*}
S_{dd}
=&\,\frac{S_{ww}}{(11.5)^2}\\
=&\,\frac{445.569791\ldots}{132.25}\\
=&\,3.3691\ldots.
\end{align*} S dd = = = ( 11.5 ) 2 S w w 132.25 445.569791 … 3.3691 … .
So
S t d = − 7.96 , S d d = 3.37 \begin{align*}
S_{td}=-7.96,\qquad S_{dd}=3.37
\end{align*} S t d = − 7.96 , S dd = 3.37
to 3 3 3 significant figures.
解法二
思路
展开
将汇总统计量解码后,直接用 S t d = ∑ t d − ∑ t ∑ d / n S_{td}=\sum td-\sum t\sum d/n S t d = ∑ t d − ∑ t ∑ d / n 与 S d d = ∑ d 2 − ( ∑ d ) 2 / n S_{dd}=\sum d^2-(\sum d)^2/n S dd = ∑ d 2 − ( ∑ d ) 2 / n 。由已给的 S t w S_{tw} S tw 先还原 ∑ t w \sum tw ∑ tw 。
答题过程
展开
Since d = w / 11.5 d=w/11.5 d = w /11.5 ,
∑ d = 339.25 11.5 = 29.5 , ∑ d 2 = 10036.45 11.5 2 = 75.89 … . \begin{align*}
\sum d=&\,\frac{339.25}{11.5}=29.5,\\
\sum d^2=&\,\frac{10036.45}{11.5^2}=75.89\ldots.
\end{align*} ∑ d = ∑ d 2 = 11.5 339.25 = 29.5 , 11. 5 2 10036.45 = 75.89 … .
Also,
∑ t w = S t w + ∑ t ∑ w 12 = − 91.55 + 9.1 ( 339.25 ) 12 = 165.714583 … , ∑ t d = 165.714583 … 11.5 = 14.409963 … . \begin{align*}
\sum tw=&\,S_{tw}+\frac{\sum t\sum w}{12}\\
=&\,-91.55+\frac{9.1(339.25)}{12}\\
=&\,165.714583\ldots,\\
\sum td=&\,\frac{165.714583\ldots}{11.5}\\
=&\,14.409963\ldots.
\end{align*} ∑ tw = = = ∑ t d = = S tw + 12 ∑ t ∑ w − 91.55 + 12 9.1 ( 339.25 ) 165.714583 … , 11.5 165.714583 … 14.409963 … .
Using unrounded values,
S t d = ∑ t d − 9.1 ( 29.5 ) 12 = − 7.960869 … = − 7.96 ( 3 s.f. ) , S d d = ∑ d 2 − 29.5 2 12 = 3.369147 … = 3.37 ( 3 s.f. ) . \begin{align*}
S_{td}=&\,\sum td-\frac{9.1(29.5)}{12}\\
=&\,-7.960869\ldots\\
=&\,-7.96\quad(3\text{ s.f.}),\\
S_{dd}=&\,\sum d^2-\frac{29.5^2}{12}\\
=&\,3.369147\ldots\\
=&\,3.37\quad(3\text{ s.f.}).
\end{align*} S t d = = = S dd = = = ∑ t d − 12 9.1 ( 29.5 ) − 7.960869 … − 7.96 ( 3 s.f. ) , ∑ d 2 − 12 29. 5 2 3.369147 … 3.37 ( 3 s.f. ) .
(d)
解法一
思路
展开
PMCC 公式是
r = S t d S t t S d d . \begin{align*}
r=\frac{S_{td}}{\sqrt{S_{tt}S_{dd}}}.
\end{align*} r = S tt S dd S t d .
用上一小题的 S t d S_{td} S t d 和 S d d S_{dd} S dd ,以及题目给的 S t t = 26.43 S_{tt}=26.43 S tt = 26.43 。
答题过程
展开
r = S t d S t t S d d = − 7.9608 … 26.43 ( 3.3691 … ) = − 0.8436 … . \begin{align*}
r
=&\,\frac{S_{td}}{\sqrt{S_{tt}S_{dd}}}\\
=&\,\frac{-7.9608\ldots}{\sqrt{26.43(3.3691\ldots)}}\\
=&\,-0.8436\ldots.
\end{align*} r = = = S tt S dd S t d 26.43 ( 3.3691 … ) − 7.9608 … − 0.8436 … .
Therefore
r = − 0.844 \begin{align*}
r=-0.844
\end{align*} r = − 0.844
to 3 3 3 significant figures.
解法二
思路
展开
正比例编码不改变相关系数,可直接用 t t t 、w w w 的汇总统计量。
答题过程
展开
Since w = 11.5 d w=11.5d w = 11.5 d and 11.5 > 0 11.5>0 11.5 > 0 , r t d = r t w r_{td}=r_{tw} r t d = r tw .
r t d = S t w S t t S w w = − 91.55 26.43 ( 445.569791 … ) = − 0.843629 … = − 0.844 ( 3 s.f. ) . \begin{align*}
r_{td}=&\,\frac{S_{tw}}{\sqrt{S_{tt}S_{ww}}}\\
=&\,\frac{-91.55}{\sqrt{26.43(445.569791\ldots)}}\\
=&\,-0.843629\ldots\\
=&\,-0.844\quad(3\text{ s.f.}).
\end{align*} r t d = = = = S tt S w w S tw 26.43 ( 445.569791 … ) − 91.55 − 0.843629 … − 0.844 ( 3 s.f. ) .
(e)
解法一
思路
展开
r r r 是负数,而且接近 − 1 -1 − 1 ,表示较强的负相关。结合题目语境:温度越高,冬天每天的 gas consumption 越低。
答题过程
展开
There is a strong negative correlation.
As the average daily temperature increases, the daily gas consumption in winter tends to decrease.
(f)
解法一
思路
展开
回归线 w w w on t t t 的斜率是
b = S t w S t t . \begin{align*}
b=\frac{S_{tw}}{S_{tt}}.
\end{align*} b = S tt S tw .
截距用
a = w ˉ − b t ˉ . \begin{align*}
a=\bar{w}-b\bar{t}.
\end{align*} a = w ˉ − b t ˉ .
其中 w ˉ = ∑ w 12 \bar{w}=\dfrac{\sum w}{12} w ˉ = 12 ∑ w ,t ˉ = ∑ t 12 \bar{t}=\dfrac{\sum t}{12} t ˉ = 12 ∑ t 。
答题过程
展开
The gradient is
b = S t w S t t = − 91.55 26.43 = − 3.463866 … . \begin{align*}
b
=&\,\frac{S_{tw}}{S_{tt}}\\
=&\,\frac{-91.55}{26.43}\\
=&\,-3.463866\ldots.
\end{align*} b = = = S tt S tw 26.43 − 91.55 − 3.463866 … .
Also,
w ˉ = 339.25 12 , t ˉ = 9.1 12 . \begin{align*}
\bar{w}=&\,\frac{339.25}{12},\\
\bar{t}=&\,\frac{9.1}{12}.
\end{align*} w ˉ = t ˉ = 12 339.25 , 12 9.1 .
So the intercept is
a = w ˉ − b t ˉ = 339.25 12 − ( − 3.463866 … ) 9.1 12 = 30.897 … . \begin{align*}
a
=&\,\bar{w}-b\bar{t}\\
=&\,\frac{339.25}{12}
-(-3.463866\ldots)\frac{9.1}{12}\\
=&\,30.897\ldots.
\end{align*} a = = = w ˉ − b t ˉ 12 339.25 − ( − 3.463866 … ) 12 9.1 30.897 … .
Therefore the regression line is
w = − 3.463866 … t + 30.897 … = − 3.46 t + 30.9 \begin{align*}
w=&\,-3.463866\ldots t+30.897\ldots\\
=&\,-3.46t+30.9
\end{align*} w = = − 3.463866 … t + 30.897 … − 3.46 t + 30.9
to 3 3 3 significant figures.
(g)
解法一
思路
展开
因为 w = 11.5 d w=11.5d w = 11.5 d ,所以 d = w 11.5 d=\dfrac{w}{11.5} d = 11.5 w 。把上一小题的回归方程整体除以 11.5 11.5 11.5 即可。
答题过程
展开
Since
w = 11.5 d , \begin{align*}
w=11.5d,
\end{align*} w = 11.5 d ,
we divide the regression equation by 11.5 11.5 11.5 :
d = − 3.46 t + 30.9 11.5 = − 0.301 t + 2.69. \begin{align*}
d
=&\,\frac{-3.46t+30.9}{11.5}\\
=&\,-0.301t+2.69.
\end{align*} d = = 11.5 − 3.46 t + 30.9 − 0.301 t + 2.69.
An equation of the regression line of d d d on t t t is
d = − 0.301 t + 2.69. \begin{align*}
d=-0.301t+2.69.
\end{align*} d = − 0.301 t + 2.69.
解法二
思路
展开
公式基本计算法。不通过 w w w on t t t 的回归方程做代数转换,而是直接利用 (c) 中计算得到的 S t d S_{td} S t d ,以及回归方程参数公式:
b d = S t d S t t , a d = d ˉ − b d t ˉ \begin{align*}
b_d = \frac{S_{td}}{S_{tt}},\qquad a_d = \bar{d} - b_d\bar{t}
\end{align*} b d = S tt S t d , a d = d ˉ − b d t ˉ
重新从头计算回归系数的斜率与截距,并验证结果。
答题过程
展开
Calculate the gradient b d b_d b d of the regression line of d d d on t t t :
b d = S t d S t t = − 7.9608 … 26.43 = − 0.3012 … \begin{align*}
b_d =&\, \frac{S_{td}}{S_{tt}}\\
=&\, \frac{-7.9608\ldots}{26.43}\\
=&\, -0.3012\ldots
\end{align*} b d = = = S tt S t d 26.43 − 7.9608 … − 0.3012 …
Calculate the sample means of d d d and t t t :
d ˉ = 339.25 12 ( 11.5 ) = 2.458333 … . \begin{align*}
\bar{d} =&\,\frac{339.25}{12(11.5)}\\
=&\,2.458333\ldots.
\end{align*} d ˉ = = 12 ( 11.5 ) 339.25 2.458333 … .
t ˉ = 9.1 12 ≈ 0.7583 … \begin{align*}
\bar{t} = \frac{9.1}{12} \approx 0.7583\ldots
\end{align*} t ˉ = 12 9.1 ≈ 0.7583 …
Calculate the intercept a d a_d a d :
a d = d ˉ − b d t ˉ = 2.4583 … − ( − 0.3012 … ) ( 0.7583 … ) = 2.4583 … + 0.2284 … = 2.6867 … \begin{align*}
a_d =&\, \bar{d} - b_d\bar{t}\\
=&\, 2.4583\ldots - (-0.3012\ldots)(0.7583\ldots)\\
=&\, 2.4583\ldots + 0.2284\ldots\\
=&\, 2.6867\ldots
\end{align*} a d = = = = d ˉ − b d t ˉ 2.4583 … − ( − 0.3012 … ) ( 0.7583 … ) 2.4583 … + 0.2284 … 2.6867 …
So the regression line equation is:
d = − 0.3012 … t + 2.6867 … = − 0.301 t + 2.69 \begin{align*}
d =&\, -0.3012\ldots t + 2.6867\ldots\\
=&\, -0.301t + 2.69
\end{align*} d = = − 0.3012 … t + 2.6867 … − 0.301 t + 2.69
to 3 3 3 significant figures.
(h)(i)
解法一
思路
展开
把 t = 2 t=2 t = 2 代入 (g) 的回归方程。答案单位是 m 3 \text{m}^3 m 3 。
答题过程
展开
Using
d = − 0.301 t + 2.69 , \begin{align*}
d=-0.301t+2.69,
\end{align*} d = − 0.301 t + 2.69 ,
when t = 2 t=2 t = 2 ,
d = − 0.301 ( 2 ) + 2.69 = 2.088. \begin{align*}
d
=&\,-0.301(2)+2.69\\
=&\,2.088.
\end{align*} d = = − 0.301 ( 2 ) + 2.69 2.088.
The estimated daily gas consumption is
2.09 m 3 . \begin{align*}
2.09\text{ m}^3.
\end{align*} 2.09 m 3 .
(h)(ii)
解法一
思路
展开
回归线斜率约为 − 0.301 -0.301 − 0.301 。这表示温度每增加 1 ∘ C 1\,^\circ\text{C} 1 ∘ C ,预测的 daily gas consumption 减少约 0.301 m 3 0.301\text{ m}^3 0.301 m 3 。
答题过程
展开
For each increase of 1 ∘ C 1\,^\circ\text{C} 1 ∘ C in average daily temperature, the daily gas consumption is expected to decrease by about
0.301 m 3 . \begin{align*}
0.301\text{ m}^3.
\end{align*} 0.301 m 3 .