Professional Documents
Culture Documents
and 𝑎0 = 𝑦̅ − 𝑎1 𝑥̅
∑ 𝑥𝑖 ∑ 𝑦𝑖
with 𝑥̅ = and 𝑦̅ = .
𝑛 𝑛
𝑛
∑ 𝑥𝑖 𝑦𝑖 = ∑ 𝑥𝑖 𝑦𝑖 = 𝑥1 𝑦1 + 𝑥2 𝑦2 + ⋯ + 𝑥𝑛 𝑦𝑛
𝑖=1
𝑛
∑ 𝑥𝑖 = ∑ 𝑥𝑖 = 𝑥1 + 𝑥2 + ⋯ + 𝑥𝑛
𝑖=1
𝑛
∑ 𝑦𝑖 = ∑ 𝑦𝑖 = 𝑦1 + 𝑦2 + ⋯ + 𝑦𝑛
𝑖=1
𝑛
Worked Example:
Two variables, 𝑥 and 𝑦 are linearly related. From experiment:
𝑥 1.1 2.2 2.9 3.4 5.4
𝑦 4.9 6.0 6.9 7.5 9.6
(a) Determine the equation of the line of best fit (place answers to 2 d.p.)
(b) Using the equation of the line of best, find
i. The value of 𝑦 when 𝑥 = 4.3
ii. The value of 𝑥 when 𝑦 = 4.3
(c) Compute the correlation coefficient, r.
(a) Determine the equation of the line of best fit (place answers to 2 d.p.)
𝑛 ∑ 𝑥𝑖 𝑦𝑖 − ∑ 𝑥𝑖 ∑ 𝑦𝑖 5(115.94) − (15)(34.9) 56.2
𝑎1 = 2 = = = 1.10 (𝑡𝑜 2 𝑑. 𝑝. )
𝑛 ∑ 𝑥𝑖2 − (∑ 𝑥𝑖 ) 5(55.18) − (15)2 50.9
∑ 𝑥𝑖 15
𝑥̅ = = =3
𝑛 5
∑ 𝑦𝑖 34.9
𝑦̅ = = = 6.98
𝑛 5
56.2
𝑎0 = 𝑦̅ − 𝑎1 𝑥̅ = 6.98 − ( × 3) = 3.67 (𝑡𝑜 2 𝑑. 𝑝. )
50.9
Equation of the line of best fit is 𝑦 = 3.67 + 1.10𝑥
11.24
= = 0.999
√10.18√12.428