10/11/2020 Assignment 6 - Linear regression
Assignment 6 - Linear regression
Click on a question number to see how your answers were marked and, where
available, full solutions.
Question Number Score
Question 1 9 / 15
Question 2 14 / 21
Total 23 / 36 (63%)
Performance Summary
Exam Name: Assignment 6 - Linear regression
Session ID: 13625490507
Student's Name: K (Katarina) Djordjevic (011cdd57506642ec949f60ac53aa58da)
Exam Start: Tue Nov 10 2020 19:07:21
Exam Stop: Tue Nov 10 2020 20:25:40
Time Spent: 1:18:16
Question 1
To monitor its sta appraisal methods, the personnel department of Thri forth's compares
the results of the tests carried out on employees at their first appraisal with an assessment
score of the same individuals two years later. The resulting data are as follows:
Employee A B C D E F G H
First Test (𝑥) 70 67 74 55 72 56 76 47
Later Score (𝑦) 49 49 53 36 44 39 52 34
Answer all the following questions, and unless otherwise stated, round your answer to
THREE (3) decimal values.
a)
https://numbas.up.ac.za/run_attempt/116835?resource_link_id=_2061298_1 1/10
, 10/11/2020 Assignment 6 - Linear regression
Manually fit the best-fitting regression line:
𝑦̂ = 𝑏0 + 𝑏1 𝑥
by clicking on and dragging the points marked I and J in the figure below. The
objective is to minimise the sum of the residuals squared (SSE), which is shown below
the figure for your fitted line.
Expected answer: 2.4128528145
𝑏0 = -3.323 , 𝑏1 =
Expected answer: 0.651251794
0.740
SSE for interactive line:
60
J
C
G
50
B A
E
40
F
D
H
I
30
20
10
10 20 30 40 50 60 70 80
Gap 0
Your answer is incorrect.
Gap 1
https://numbas.up.ac.za/run_attempt/116835?resource_link_id=_2061298_1 2/10
Assignment 6 - Linear regression
Click on a question number to see how your answers were marked and, where
available, full solutions.
Question Number Score
Question 1 9 / 15
Question 2 14 / 21
Total 23 / 36 (63%)
Performance Summary
Exam Name: Assignment 6 - Linear regression
Session ID: 13625490507
Student's Name: K (Katarina) Djordjevic (011cdd57506642ec949f60ac53aa58da)
Exam Start: Tue Nov 10 2020 19:07:21
Exam Stop: Tue Nov 10 2020 20:25:40
Time Spent: 1:18:16
Question 1
To monitor its sta appraisal methods, the personnel department of Thri forth's compares
the results of the tests carried out on employees at their first appraisal with an assessment
score of the same individuals two years later. The resulting data are as follows:
Employee A B C D E F G H
First Test (𝑥) 70 67 74 55 72 56 76 47
Later Score (𝑦) 49 49 53 36 44 39 52 34
Answer all the following questions, and unless otherwise stated, round your answer to
THREE (3) decimal values.
a)
https://numbas.up.ac.za/run_attempt/116835?resource_link_id=_2061298_1 1/10
, 10/11/2020 Assignment 6 - Linear regression
Manually fit the best-fitting regression line:
𝑦̂ = 𝑏0 + 𝑏1 𝑥
by clicking on and dragging the points marked I and J in the figure below. The
objective is to minimise the sum of the residuals squared (SSE), which is shown below
the figure for your fitted line.
Expected answer: 2.4128528145
𝑏0 = -3.323 , 𝑏1 =
Expected answer: 0.651251794
0.740
SSE for interactive line:
60
J
C
G
50
B A
E
40
F
D
H
I
30
20
10
10 20 30 40 50 60 70 80
Gap 0
Your answer is incorrect.
Gap 1
https://numbas.up.ac.za/run_attempt/116835?resource_link_id=_2061298_1 2/10