What straight line best fits the data.....?

2015-12-07 9:09 pm
x = 1,1,3,4
y = 0,1,1,2

in the least squares sense?

回答 (3)

2015-12-07 9:25 pm
✔ 最佳答案
X = [1 1;1 1; 3 1; 4 1], A = {a; b} = ?; Y = [0; 1; 1; 2]

A = (X^t * X)^-1 * X^t * Y = {4/9 0}

y(x) = 4x/9 + 0 = 4x/9
2015-12-07 11:01 pm
Given:
x: 1 1 3 4
y: 0 1 1 2
=>
the best fit of the straight line is
y=0.44444x
2015-12-07 9:21 pm
0.444444 x


收錄日期: 2021-04-30 20:05:02
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20151207130906AApMJh2

檢視 Wayback Machine 備份