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 | 7 | 110 | 49 | 770 | | 5 | 6 | 100 | 36 | 600
_______ ___ ______ ________ _____ _________ _________ __________ __________.
____ ____ ___ _____ ___ _____ ____ _____ ________ _______ _____.
__________ _________ __________ _______ ________ ___.
_____ _______ _________ __________ ________ _______ ______ ____ ___.
__________ _______ ____ _______ _________.
___ ________ _____ ______ ______.
_________ ____ ___ __________ ________ ________ _________ _____ _____ _______ _________ ______.
________ ____ ______ _________ _____ __________ ______ __________ ________.
________ ______ ______ ________ _________ _______ _______ ____ ______ ______ ______ _____.
___ _____ ________ ________ ___ _____ _____ ____ ____ ______ ____ _____.
__________ _________ ______ _________ ___ _________.
_________ _____ _______ ____ __________ ________ __________ ________ ____ _________.
_______ ________ _______ ______ __________ _____ ________ __________ _________.
_________ __________ __________ ______ ________ ____ ____ ____ ___ ________ _____.
___ _____ ____ ________ ______ ___.
______ _____ _________ ______ ______ _________ ________.
____ ________ _____ ___ ________ __________ _________ _________ _________.
____ ___ _____ ______ ________ ______.
________ ____ ______ _____ ______ _____ ______ _________ __________.
_______ ______ ___ _____ __________ ___ ________ _______.
____ ___ _______ ____ _________ ___.
____ ____ __________ ________ _________ ______.
___ ________ ___ ________ ____ _____ __________ _________ _____.
_________ __________ ___ ______ ____.
____ __________ ___ _______ _____ _________ _____ _____ ________ _________.
________ ___ _______ ______ ___.
____ _______ _________ ________ ____ _________ ________ _________.
_________ ________ ______ _______ __________ __________ _______ ______ ___ ___ _______.
_______ ______ _________ __________ _________ __________ _____ __________ _______ ________ ____ _________.
_______ _____ _____ ________ _________ __________.
___ ___ ______ ________ ___ ______ ___ ___ _______ ___ __________ ___.
_________ _______ _______ __________ _______ ______ __________ ____ _____ ______ ________.
________ _________ ____ _________ ____ _________ ______ ________.
__________ ____ _______ ____ _________ ________ __________ __________.
_____ ______ _____ _______ _____.
__________ ______ _________ _____ _______ __________ _______ ________.
______ _______ _____ _____ ___ ________ ___ _____ ________ _________ _____.
__________ _______ __________ _____ _______ ________ _____ ________ ________.
_______ ___ _________ ___ __________ ________ _____ ________ _________ __________.
_________ _________ ________ _____ __________ _______ ____ ___.
___ _____ _______ ______ ______ __________ __________ ______ _______ __________ _______ ______.
______ ______ _____ _____ ________ __________ ___ ________.
___ ____ _______ _________ __________ _______.
____ ______ __________ ___ _______ _________ ____ ______ ______ ______ ________.
__________ ________ ________ ______ ___ ______ ________ ____.
____ ________ ________ ________ _______ ____ ______ _______ ___ ______.
____ __________ _________ _____ _________ _______ ___.
______ ___ ____ _______ _____ _____ __________ __________ ___ _________.
__________ _______ ________ _______ ____ _______ ________ ___.
_________ ________ ________ _________ ___ ________ __________ ____ ____ ___ ____ ___.
____ ____ _______ _______ ___ ___ ______.
____ ____ __________ ___ _______ ______ _________ ______ ______ ______.
______ ___ _________ _______ ___ ____ ___.
____ ____ _____ ____ _________ _____ _____ ____ _____ ________ ___ _____.
________ _____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCSL 229 2025 - An organisation collected the following data of its employees: “ | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→