Question

An organisation collected the following data of its employees: “years in employment” and “employee's salary”. Use R programming to fit a linear regression line to predict the effect of years in employment on the employee’s salary. Also, predict the salary of an employee who is employed for 11 years.

Employee Number Years in Employment Employee Monthly salary in thousand Rs
1 10 149
2 8 120
3 12 150
4 7 110
5 6 100
6 5 90
7 9 130
8 8 110
9 3 80
10 4 85

 

 

18 Apr 2025
Answer :
Word Count : 609
Alright — we’ll do this *step-by-step manually* so no Python sneaks in. We’re fitting the simple linear regression model: $$ y = a + b x $$ where: * $x$ = Years in Employment * $y$ = Monthly salary (in thousand Rs) --- ## Step 1: Table Preparation We’ll calculate all the sums we need: $\sum x, \sum y, \sum xy, \sum x^2$ | Emp No. | $x$ | $y$ | $x^2$ | $xy$ | | ------- | --- | --- | ----- | ---- | | 1 | 10 | 149 | 100 | 1490 | | 2 | 8 | 120 | 64 | 960 | | 3 | 12 | 150 | 144 | 1800 | | 4 ______ _______ _________ _________ ________.
_____ _____ _________ ______ __________ __________ ____ ______.
_________ ______ ______ __________ _______ _________ ____ ____ __________ ____ _______ _____.
___ ________ ______ _____ ____ ________ _________ _______ ___ __________ _________ ____.
________ ______ _________ _______ _______ ____ ___ ___ _________ ___.
_______ ____ _________ ___ __________ _________ ____ ________ ______ ______ __________ ____.
_______ _____ _____ _____ _______ _____ ____ ___ ___.
________ ___ _____ _______ _______.
_________ _____ _____ ____ ____ ______ ________.
________ _____ __________ __________ ____.
__________ __________ _______ ______ _____ _____.
__________ __________ _______ ______ ________ ___ ___.
____ _________ ___ ____ ________.
____ _____ ___ ____ ___ ______.
______ ______ _________ ___ ________ ____ _________ __________ _________ ______.
____ _______ __________ __________ ______ ___ _______ _____ ________.
______ _______ _____ ______ ______ _________ ________ _____ __________.
_______ ________ ________ _____ ___ __________ _____ _______ _______ _____ _________.
____ __________ _________ ________ ____ ____ ________.
___ ______ ________ _______ ____ ___.
____ _____ __________ _______ ____ ______.
_____ _____ _____ _____ _______ _________ _____ _____.
_____ _______ ___ _____ _____ __________ ______.
___ ______ ___ _____ __________ ________ _____ ________ ________ ______.
_________ _______ _________ ____ _______ ______.
____ ___ ________ _____ _________ ____ __________.
____ ___ _______ ___ _________.
_______ _________ ______ ______ ________ ____ ______ ________ ____ _______ _________.
____ ___ _________ ______ __________.
______ __________ ____ ___ ______ ____ _______.
___ ______ _____ _________ _______.
____ ________ ____ ______ ___ _____ _________ ____ _____ __________.
____ ___ ___ _______ _______ ________ __________ ________ ______ ________.
_________ __________ ______ ____ ____ _____.
___ _________ ________ __________ ____ _______ ___.
_____ _________ ________ _______ _____ ________ ___.
___ _____ _______ _________ _____ __________ _________.
_____ _________ _________ ____ _______ ______ ___.
________ __________ ___ _____ _____ ______ ________ ______ _________ ____ __________ ______.
___ _____ _________ _________ _______ ___ ___ ___ _____ ______ ______.
_____ _____ ___ ______ _________ ______ ____ _________ ___ _________.
___ _____ ____ _____ _____ _______ _____ __________ _________ _____ ___.
___ ______ ______ ____ _________ _______ _______ _________ ______.
_______ ________ ____ ______ __________.
_______ ___ ________ _________ _____ _________ __________ _____ _____ ____ _____.
____ _________ ______ ______ ___.
_________ _______ ______ __________ _______ ______ __________ _______ __________ __________ _______ ____.
_____ ______ _________ ___ __________ __________ _________ __________ ________.
___ __________ _______ ______ _______ ________.
_______ ___ ______ _____ _________ ________ ___ _______ ________ _______ _______.
_______ _________ ______ _________ ______.
__________ _______ ________ __________ ______.
_________ ________ _______ ________ __________ ____ ___ ____ ____ ____.
____ _______ ____ _______ ________ ________.
____ ____ ___ _______ ________ ______ ____ ____ __________ ____.
___ _______ __________ ____ ________.
______ _____ _________ _____ _________ ___ ___.
___ _______ ______ _______ __________ _______.
____ ______ __________ ______ _____ _________ _______.
_________ _______ ______ ____ _____ ____ _________ ____ _______ ___ _________.
____ ________ __________ _________ _______ ______ ____ ______ ___ ____.
_________ ____.
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 An organisation collected the following data of its employees: “
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support