Math Problem

2012-06-09 1:26 am
Q2.Find the simple regression line of y on x, where
all i below are from 1 to 100
sum(x(i))=180, sum(y(i))=30, sum((x^2)(i))=1000, sum((y^2)(i))=750,
sum(x(i)y(i))=-150
Thanks indeed.

回答 (1)

2012-06-09 7:04 am
✔ 最佳答案
最小平方直線為 y-y'=m(x-x')
x'=mean of x= 1.8,
y'=mean of y= 0.3,
m=∑(xi-x')(yi-y') / ∑(xi-x')²
=[∑(xi yi) - nx' y' ]/[∑xi² - nx'² ]
=( -150 -100x 1.8x 0.3)/( 1000- 100x1.8²)
= -204/676 = -51/169
故得 y- 0.3 =(-51/169) (x- 1.8)
or y=0.3 - (51/169)(x-1.8)


收錄日期: 2021-04-13 18:43:50
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20120608000051KK00402

檢視 Wayback Machine 備份