題目
Problem
Let
f(β)=i=1∑n(yi−1−βxi+2xi)2.
Suppose that ∑i=1nxi=−5, ∑i=1nyi=5, ∑i=1nxi2=15, and ∑i=1nxiyi=10. Find β that corresponds to the minimum of f.
(a) 2/3
(b) 4/3
(c) 8/3
(d) 7/3
(e) None of the above.
解答
解法一
思路
展開
- 將平方和對參數 β 微分,再代入已知四個求和數值。
答題過程
展開
令 ri=yi−1−(β−2)xi。極小值須滿足
i=1∑nxiri=0.
所以
10−(−5)−(β−2)15=0.
解得 β=3;此值不在 (a)–(d),故答案為
(e).