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, ______ _________ __________ _________ _____ _________ ______.
_________ _________ ________ ______ _______ _____ ___ ______ _________ _________.
_______ ____ ____ ________ _____ _________ _______ ______ _____ _______ ______ ______.
____ ___ _____ __________ _____ ____ ______.
___ _____ ________ _____ _____ _____ __________ ______ __________ __________ _________.
_____ ________ __________ ______ _______ _______ ___ _________ _________ __________ _________.
______ ________ _____ ___ ________ ___ _________ ________ _______ ________ ________ _______.
_____ ___ _______ ____ _______ _______ ______ _____ ___ _______.
____ _________ __________ _____ ____ __________ _______ __________ ___ _________ ________ ______.
________ ________ __________ ____ _________.
________ _______ _____ ____ _______ ___ ___.
__________ ________ ________ _________ _____ ________ ____ ___ ________ ______ _________ _____.
_______ ____ ________ _______ ______ ______ __________ _____ ____.
_____ ___ ________ ________ _________ ___ __________ _______ _________ ____ ______.
_______ ________ ___ ________ __________ _________ _______.
_____ __________ ___ __________ _____ _______ _____ ___ __________ ____ __________ _________.
____ ____ ______ ____ ________ ________ _______ ________ ___.
_______ _____ __________ __________ _____ ___ __________ __________ ______ _______ __________ ____.
_________ ___ _________ ________ ___ ______ ____ _________ ________ ___ _____.
__________ ________ ______ _________ ______ ________ _________ _________ ___ ______.
______ ________ _______ _____ _____ ____ _______.
_____ ___ _________ _______ _______ _______ _______.
____ ___ _________ __________ _______ ___ ___ __________ _________ _______ ___ ____.
_______ ____ _______ _______ __________ ___ ___.
_________ _______ _______ _______ _______ ____ ________ _____.
________ __________ _________ __________ ______ __________ _____ _________ _______ ______.
_________ ___ __________ _________ __________ ___ _________ ____ __________ _______ _____ _______.
______ _______ ________ ____ _____ ______ _____.
_______ ___ ___ __________ _____ _____ ________ ___.
_________ __________ _______ __________ ______ ______.
_________ ____ _________ ____ ________ __________ ________ _____ _______ ______ ________ _____.
____ _____ _______ ____ _______ _______ ______.
______ ______ ____ ________ ______ ________ ___ ______ ____ _________ __________.
____ _________ _____ ________ ___ ________ ____ _____.
___ ________ ____ ___ __________ ________ _______ _____ _______ _______ ___.
_________ __________ ___ _____ ______ ____ _____ __________ ________ _______.
________ ______ ________ ___ ______ _________ _____ _______.
________ ________ ________ _____ ____.
___ ____ _______ ____ __________ ______ ________ ___ ___ ______ _________.
___ ______ _____ ______ _____ _______ ____ ____ __________ _____ _______.
___ _______ _____ _______ ______ _____ __________.
_____ __________ ________ _________ _______ _____ _______ ______ ________ _______.
____ _______ ________ _______ ________.
_______ __________ __________ _________ ______.
_______ __________ _________ ______ _____.
_________ _____ __________ ______ ___ ____ ____ ____ _______ __________.
_________ _____ __________ _______ __________ _______ __________ ___ _____ ________ ________.
______ ______ ________ _____ ______ ______ ____ _______ _________ _____.
___ ________ _______ _________ _________ ___ ______ _______ _______.
_________ ________ _________ ________ _________ ________ _________ __________ ____ _____ __________.
_______ ____ ___ _____ _______.
_____ ____ _________ ________ _______.
________ __________ _____ _____ _________ ________ _________ ______ ____ __________.
_____ __________ _____ _____ _________ ___ _____ ____ ______ __________.
__________ ____ ___ ___ ___ ________ _____ _________ ___ ____ ______.
______ ____ ____ _______ _____ _______ ______ _____ __________ _________ _________ ________.
_______ _____ ________ ________ _____ ________ ___ _________.
___ ________ ____ ______ __________ _______ __________ _______ _______ ____ ____ ________.
____ _______ ______ ____ ___ ________ _________.
________ _______ ______ ________ ___ ___ ___ _________ _________ ______.
__________ __________ ______ ___ _________.
_____ ________ ___ __________ ___ _____ ______.
_________ ______ _______ _______ __________ ______ _______ _______ ____.
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