Professional Documents
Culture Documents
Assignment 1 Linear and Angular Measurements: Due Date: 19 February, 2019
Assignment 1 Linear and Angular Measurements: Due Date: 19 February, 2019
• An example
(xn,yn)
(x2,y2)
E1=y1-(mx1+b)
(x1,y1)
(0, b)
X
𝑺𝒒𝒖𝒂𝒓𝒆𝒅 𝒆𝒓𝒓𝒐𝒓 𝑺𝑬 𝒍𝒊𝒏𝒆 = 𝒚𝟏 − (𝒎𝒙𝟏 + 𝒃 )𝟐 + 𝒚𝟐 − (𝒎𝒙𝟐 + 𝒃 )𝟐 + … + 𝒚𝒏 − (𝒎𝒙𝒏 + 𝒃 )𝟐
𝜕(𝑆𝐸) 𝜕(𝑆𝐸)
= 0 𝑎𝑛𝑑 =0
𝜕𝑚 𝜕𝑏
𝜕(𝑆𝐸) yields
=−𝟐𝒏𝒙𝒚+𝟐𝒎𝒏𝒙𝟐 +𝟐𝒃𝒏ഥ
𝒙=0 𝒎𝒙𝟐 + 𝒃ഥ
𝒙 = 𝒙𝒚
𝜕𝑚
𝜕(𝑆𝐸) yields 𝒎ഥ
𝒙+b=ഥ
𝒚
= 𝒚+𝟐𝒎𝒏ഥ
-𝟐𝒏ഥ 𝒙+2nb=0
𝜕𝑏
𝒎𝒙𝟐 + 𝒃ഥ
𝒙 = 𝒙𝒚 𝒎ഥ ഥ
𝒙+𝒃=𝒚
𝒎ഥ
𝒙+b=ഥ
𝒚 𝒙𝟐 𝒙𝒚
𝒎 +𝒃=
ഥ
𝒙 ഥ
𝒙
Subtracting
𝒙𝟐 𝒙𝒚
ഥ−
𝒎 𝒙 ഥ−
= 𝒚
ഥ
𝒙 ഥ
𝒙
𝒙𝒚 𝒙𝟐
𝒎= 𝒚ഥ− ഥ−
÷ 𝒙
ഥ
𝒙 ഥ
𝒙
ഥ ഥ𝒚 − 𝒙𝒚
𝒙
𝒎=
ഥ𝟐 − 𝒙𝟐
𝒙
Examples: obtain fit parameters
3.5
Chart Title
3
4, 3
2.5
2
1, 2
1.5
1
2, 1
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5
Ans: y=0.4286x+1
GOODNESS OF FIT?
Y En=yn-(mxn+b) A= residual/unexplained
C=total variation
(xn,yn) B=explained variation
(x2,y2)
X
A=𝑺𝒒𝒖𝒂𝒓𝒆𝒅 𝒆𝒓𝒓𝒐𝒓 𝑺𝑬 𝒍𝒊𝒏𝒆 = 𝒚𝟏 − (𝒎𝒙𝟏 + 𝒃 )𝟐 + 𝒚𝟐 − (𝒎𝒙𝟐 + 𝒃 )𝟐 + … + 𝒚𝒏 − (𝒎𝒙𝒏 + 𝒃 )𝟐
𝑺𝒒𝒖𝒂𝒓𝒆𝒅 𝒆𝒓𝒓𝒐𝒓 𝑺𝑬 𝒍𝒊𝒏𝒆 = 𝒚𝟏 − (𝒎𝒙𝟏 + 𝒃 )𝟐 + 𝒚𝟐 − (𝒎𝒙𝟐 + 𝒃 )𝟐 + … + 𝒚𝒏 − (𝒎𝒙𝒏 + 𝒃 )𝟐
Chart Title
4
3
4, 3
2
1, 2
1
0
-3 -2 -1 0 1 2 3 4 5
-1, -1
-1
-2
-2, -3 -3
-4
b) A factory is producing and stockpiling metal sheets to be shipped to an automobile
manufacturing plant. The factory ships only when there is a minimum of 2,050 sheets in stock
at the beginning of that day. The table shows the day, x, and the number of sheets in stock, f
(x), at the beginning of that day.
i. Write a linear regression equation for this set of data and regression coefficient, rounding
coefficients to four decimal places.
Use this equation to determine the day the sheets will be shipped.
Day 1 2 3 4 5 6 7 8
Sheets in 860 930 1000 1150 1200 1360 1440 1600
stock