Question

A researcher is interested to check the relationship between the salaries of workers involved in the production process of a company. To accomplish this, she/he has decided to develop a multiple regression model to predict their weekly salaries. For this purpose, he/she has selected a random sample of 50 workers involved in the production process. The information on their current monthly salaries in hundreds (Y), lengths of employment in months (X1), and job classifications (X2; 0 for technical job and 1 for clerical job) are summarised in the following table:

Employee Y X1 X2
1 495 74 1
2 406 51 0
3 567 130 1
4 523 25 1
5 575 178 1
6 437 42 0
7 664 242 1
8 491 57 1
9 472 72 0
10 407 129 1
11 378 17 1
12 725 318 1
13 600 296 0
14 440 39 0
15 662 280 1
16 523 116 1
17 428 19 1
18 535 94 1
19 533 193 0
20 528 49 1
21 446 26 0
22 528 40 1
23 498 51 1
24 478 48 1
25 507 32 0
26 478 24 1
27 645 234 1
28 577 281 0
29 554 335 1
30 654 336 1
31 566 77 1
32 433 90 0
33 466 89 1
34 365 30 0
35 677 225 0
36 473 36 1
37 644 305 1
38 685 316 1
39 356 11 0
40 444 23 1
41 478 94 0
42 408 81 0
43 456 58 0
44 409 22 0
45 691 359 0
46 463 69 0
47 436 93 0
48 413 16 1
49 734 412 0
50 463 69 0

i) Prepare a scatter plot to get an idea about the relationship among the variables.

ii) Fit a linear regression model and its related analysis at 1% level of significance.

iii) Does the fitted regression model satisfy the linearity and normality assumptions?

iv) Also, draw both fitted regression lines on the scatter plot.  

06 Feb 2021
Answer :
Word Count : 682

i) Scatter Plot:
Before diving into the statistical analysis, it's helpful to visualize the relationship among the variables using a scatter plot. In the plot below, the x-axis represents the lengths of employment (X1), the y-axis represents the current monthly salaries (Y), and the colors differentiate between technical (0) and clerical (1) job classifications.

```python
import matplotlib.pyplot as plt
import seaborn as sns

# Data
employee = list(range(1, 51))
salaries = [495, 406, 567, 523, 575, 437, 664, 491, 472, 407, 378, 725, 600, 440, 662, 523, 428, 535, 533, 528, 446, 528, 498, 478, 507, 478, 645, 577, 554, 654, 566, 433, 466, 365, 677, 473, 644, 685, 356, 444, 478, 408, 456, 409, 691, 463, 436, 413, 734, 463]
employment_lengths = [74, 51, 130, 25, 178, 42, 242, 57, 72, 129, 17, 318, 296, 39, 280, 116, 19, 94, 193, 49, 26, 40, 51, 48, 32, 24, 234, 281, 335, 336, 77, 90, 89, 30, 225, 36, 305, 316, 11, 23, 94, ________ ____ ____ ______ _______ ______.
_____ ___ ___ ____ ______ ________ ____.
_________ ___ __________ __________ ______ ________.
_____ _______ _______ ___ __________ ______ ______ ________ ________ _____ ______ _________.
________ ________ _________ _____ ____ ___ _______ ______ ______ ________ ____.
______ ________ ________ _____ ________ ______ ________ ______ _________ _________ ______ ____.
__________ __________ ________ ____ _____ _________.
__________ ____ ___ _____ _________ ________ __________.
_____ __________ ___ __________ ________ __________ _____ ___ _____ _________ ____ __________.
_____ ___ ______ ________ _____ _____ __________ _________ _____ ______ _______ _______.
________ _______ _______ ____ ___ _____ ___ _____ _____ _________ __________ _____.
______ ___ _____ ___ _____.
_____ ___ ________ ______ ________ _____ ________ ________ __________ ______ ________.
_____ ____ ______ ____ _________ ___ ________ ___ _______ ________.
___ ____ ________ ___ _________ ______ _____ ___ ___ _________ _________ ___.
______ ___ ________ _______ ________ ___ _________.
___ _______ ____ ____ ___ __________ ____ _____ __________ ____.
______ ________ _______ ________ ________ __________ ____ _________ _________.
_______ ___ __________ _________ _______ _______ ___ _______.
____ ____ _____ ________ _____ ______.
___ ___ __________ _________ _________ ____ ____ ________ ______ _________.
______ ____ __________ _________ _________ ____ __________ ______ _______ ________.
___ ________ ___ __________ __________ _________ _______ _______ ___ ____.
______ _______ _____ ___ _____ _______.
_________ _______ ____ _________ __________ _______ __________ _____ ____.
____ ______ _________ _________ ___ _____ __________ _______.
______ ________ ____ ______ _____ ________ _____ _________ __________.
_______ _________ ___ ___ ___.
__________ __________ ___ ___ _______ ___ _______ _____ _____ ___ ________ ___.
_____ ________ _________ ______ _________.
__________ ________ ___ ________ ______ _____.
____ ____ _________ _____ ___ _____ __________.
_________ _________ _______ _____ _______ __________.
__________ ____ __________ ____ ____ _____ ___ _________ ___ ____.
_______ __________ ___ _______ ____ ____ _________ ____.
______ ____ ________ __________ ____ ___ _________ _____ __________ __________ ___ _______.
__________ __________ _______ _________ ___ ______ ______.
________ ________ _______ __________ ______ ________ ___ _______ ___ ___.
________ ___ ________ __________ ____.
___ ________ __________ ________ _________ _____.
____ _______ ______ _________ _____ ________ __________ ____ ________ ________ ___ __________.
____ _________ _____ ________ ___ ________ __________ ________.
_______ __________ _________ _____ __________ ____ ______.
____ ________ _________ ___ ____ _______ ______ _______.
____ _______ _________ _______ ___ __________ __________ _______ ____.
__________ ___ ______ ____ ________ _______.
____ _________ __________ ____ _________.
____ ____ ___ _________ ________ ___ ____ ___ _______ ____.
______ ___ __________ ___ ____ _____ ___ ___ ___ ________.
____ ______ _________ ____ _________ ____ _____ ___ _______ ______.
_________ ____ ________ ________ ________ _________ __________ __________ __________ ____ ___ _______.
__________ ____ ___ _______ ____ __________.
________ __________ ___ _____ _______ _______ __________ ____ __________ ________ __________.
___ _____ _________ _________ ___ ______ _______ ____ ______ _______ _________ _______.
____ __________ ________ ______ ________.
____ _____ __________ ______ ____ ______ ______ ________ _____ _________.
________ ______ _______ _________ ________.
_____ _________ ____ _____ ____ _______ ___ __________ _______ ________ ______.
______ ______ ___ __________ _________ ____ ____ ___ ___.
________ ______ ______ ________.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance A researcher is interested to check the relationship between the salar
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→