Skip to content

This is IABAC Project. The project's business rationale entails utilizing the dataset's provided features to forecast employee performance ratings.

Notifications You must be signed in to change notification settings

Tanwar-12/EMPLOYEE-PERFORMANCE-ANALYSIS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

46 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐„๐ฆ๐ฉ๐ฅ๐จ๐ฒ๐ž๐ž ๐๐ž๐ซ๐Ÿ๐จ๐ซ๐ฆ๐š๐ง๐œ๐ž ๐€๐ง๐š๐ฅ๐ฒ๐ฌ๐ข๐ฌ

IABAC  (1)

๐๐‘๐Ž๐‰๐„๐‚๐“ ๐’๐”๐Œ๐Œ๐€๐‘๐˜ :

๐†๐Ž๐€๐‹ ๐Ž๐… ๐๐‘๐Ž๐‰๐„๐‚๐“: Based On Given Features of Data set we need to predict the performance rating of employee.

PROJECT :- INX Future Inc Employee Performance

The Data science project which is given here is an analysis of employee performance

๐“๐ก๐ž ๐†๐จ๐š๐ฅ ๐š๐ง๐ ๐ˆ๐ง๐ฌ๐ข๐ ๐ก๐ญ๐ฌ ๐จ๐Ÿ ๐ญ๐ก๐ž ๐ฉ๐ซ๐จ๐ฃ๐ž๐œ๐ญ ๐š๐ซ๐ž ๐š๐ฌ ๐Ÿ๐จ๐ฅ๐ฅ๐จ๐ฐ๐ฌ:

๐ƒ๐ž๐ฉ๐š๐ซ๐ญ๐ฆ๐ž๐ง๐ญ ๐ฐ๐ข๐ฌ๐ž ๐ฉ๐ž๐ซ๐Ÿ๐จ๐ซ๐ฆ๐š๐ง๐œ๐ž๐ฌ

๐“๐จ๐ฉ 3 ๐ˆ๐ฆ๐ฉ๐จ๐ซ๐ญ๐š๐ง๐ญ ๐…๐š๐œ๐ญ๐จ๐ซ๐ฌ ๐ž๐Ÿ๐Ÿ๐ž๐œ๐ญ๐ข๐ง๐  ๐ž๐ฆ๐ฉ๐ฅ๐จ๐ฒ๐ž๐ž ๐ฉ๐ž๐ซ๐Ÿ๐จ๐ซ๐ฆ๐š๐ง๐œ๐ž

  • A trained model which can predict the employee performance based on factors as inputs. This will be used to hire employees Recommendations to improve the employee performance based on insights from analysis

  • The given Employee dataset consist of 1200 rows. The features present in the data are 28 columns. The shape of the dataset is 1200x28. The 28 features are classified into quantitative and qualitative where 19 features are quantitative (11 columns consists numeric data & 8 columns consists ordinal data) and 8 features are qualitative. EmpNumber consist alphanumerical data (distinct values) which doesn't play a role as a relevant feature for performance rating.

  • From Correlation we can get the important aspects of the data, Correlation between features and Performance Rating.Correlation is a statistical measure that expresses the extent to which two variables are linearly related.The analysis of the project has gone through the stage of Univariate,Bivariate & Multivariate analysis, correlation analysis and analysis by each department to satisfy the project goal.

  • The dataset consists of Categorical data and Numerical data. The Target variable consist of ordinal data, so this is a classification problem.The multiple machine learning model used in this project is Support vector classifier, Random forest classifier & Artifical neural network[Multilayer percepton]. from above all models Artifical neural network[Multilayer percepton] predicts higher accuracy 95.80%.

  • One of the important goal of this project is to find the important feature affecting the performance rating. The important features were predicted using the machine learning model feature importance technique. The main technique used in the preprocessing data using the Mannual & Frequency encoding method to convert the string - categorical data into numerical data, because, Most of machine learning methods are based on numerical methods where strings are not supportive. The overall project was performed and achieved the goals by using the machine learning model and visualization techniques.

1. ๐‘๐ž๐ช๐ฎ๐ข๐ซ๐ž๐ฆ๐ž๐ง๐ญ

The data was given from the IABAC for this project where the collected source is IABACโ„ข. The data is based on INX Future Inc, (referred as INX ). It is one of the leading data analytics and automation solutions provider with over 15 years of global business presence. INX is consistently rated as top 20 best employers past 5 years. The data is not from the real organization. The whole project was done in Jupiter notebook with python platform.

2. ๐€๐ง๐š๐ฅ๐ฒ๐ฌ๐ข๐ฌ

Data were analyzed by describing the features present in the data. the features play the bigger part in the analysis. The features tell the relation between the dependent and independent variables. Pandas also help to describe the datasets answering following questions early in our project. The data present in the dataset are divided into numerical and categorical data.

Categorical Features

  • EmpNumber
  • Gender
  • EducationBackground
  • MaritalStatus
  • EmpDepartment
  • EmpJobRole
  • BusinessTravelFrequency
  • OverTime
  • Attrition

Numerical Features

  • Age
  • Distance From Home
  • EmpHourlyRate
  • NumCompaniesWorked
  • EmpLastSalaryHikePercent
  • TotalWorkExperienceInYears
  • TrainingTimesLastYear
  • ExperienceYearsAtThisCompany
  • ExperienceYearsInCurrentRole
  • YearsSinceLastPromotion
  • YearsWithCurrManager

Ordinal Features

  • EmpEducationLevel
  • EmpEnvironmentSatisfaction
  • EmpJobInvolvement
  • EmpJobLevel
  • EmpJobSatisfaction
  • EmpRelationshipSatisfaction
  • EmpWorkLifeBalance
  • PerformanceRating

3.๐”๐ง๐ข๐ฏ๐š๐ซ๐ข๐š๐ญ๐ž, ๐๐ข๐ฏ๐š๐ซ๐ข๐š๐ญ๐ž & ๐Œ๐ฎ๐ฅ๐ญ๐ข๐ฏ๐š๐ซ๐ข๐š๐ญ๐ž ๐€๐ง๐š๐ฅ๐ฒ๐ฌ๐ข๐ฌ

Library Used: Matplotlib & Seaborn

Plots Used:

  • Histplot
  • Lineplot
  • CountPlot
  • Barplot

Tip: All Observation or insights written below the plots

  • Univariate Analysis: In univariate analysis we get the unique labels of categorical features, as well as get the range & density of numbers

  • Bivariate Analysis: In bivariate analysis we check the feature relationship with target veriable.

  • Multivariate Analysis: In multivariate Analysis check the relationship between two veriable with respect to the target veriable.

CONCLUSION There are some features are positively correlated with performance rating( Target variable) [Emp Environment Satisfaction,Emp Last Salary Hike Percent,Emp Work Life Balance]

4.๐„๐ฑ๐ฉ๐ฅ๐จ๐ซ๐š๐ญ๐จ๐ซ๐ฒ ๐ƒ๐š๐ญ๐š ๐€๐ง๐š๐ฅ๐ฒ๐ฌ๐ข๐ฌ

  • Basic Check & Statistical Measures

  • Their is no constant column is present in Numerical as well as categoriacl data.

Distribution of Continuous Features:

  • In general, one of the first few steps in exploring the data would be to have a rough idea of how the features are distributed with one another. To do so, we shall invoke the familiar distplot function from the Seaborn plotting library. The distribution has been done by both numerical features. it will show the overall idea about the density and majority of data present in a different level.

  • The age distribution is starting from 18 to 60 where the most of the employees are laying between 30 to 40 age count Employees are worked in the multiple companies up to 8 companies where most of the employees worked up to 2 companies before getting to work here. The hourly rate range is 65 to 95 for majority employees work in this company. In General, Most of Employees work up to 5 years in this company. Most of the employees get 11% to 15% of salary hike in this company.

Check Skewness and Kurtosis of Numerical Features

Checking weather the data is Normally distributed or Not with Skewness and Kurtosis

YearsSinceLastPromotion, This column is skewed

  1. skewness for YearsSinceLastPromotion: 1.9724620367914252
  2. kurtosis for YearsSinceLastPromotion: 3.5193552691799805
  • Distribution of Mean of Data
  1. Distribution of mean close to guassian distribution with mean value 9.5
  2. we can say that around 80% feature mean lies between 8.5 to 10.5
  • Distribution of Standard Deviation of Data
  1. Distribution of standard deviation of data also look like guassian distribution around 30% of feature standard deviation around the range of 3 3 to 20 and remaining 70% feature standard deviation in between 0 to 2

5.๐ƒ๐š๐ญ๐š ๐๐ซ๐ž-๐๐ซ๐จ๐œ๐ž๐ฌ๐ฌ๐ข๐ง๐ 

  1. Check Missing Value: Their is no missing value in data

  2. Categorical Data Conversion: Handel categorical data with the help of frequency and mannual encoding, because feature is contain lot's of labels

  • Mannual Encoding: Mannual encoding is a best techinque to handel categorical feature with the help of map function, map the labels based on frequency.

  • Frequency Encoding: Frequency encoding is an encoding technique to transform an original categorical variable to a numerical variable by considering the frequency distribution of the data getting value counts.

  1. Outlier Handling: Some features are contain outliers so we are impute this outlier with the help of IQR because in all features data is not normally distributed

  2. Feature Transformation: In YearsSinceLastPromotion some skewed & kurtosis is present, so we are use Square Root Transformation techinque

  • Square root transformation: Square root transformation is one of the many types of standard transformations.This transformation is used for count data (data that follow a Poisson distribution) or small whole numbers. Each data point is replaced by its square root. Negative data is converted to positive by adding a constant, and then transformed.

  • Q-Q Plot: Qโ€“Q plot is a probability plot, a graphical method for comparing two probability distributions by plotting their quantiles against each other.

  1. Scaling The Data: scaling the data with the help of Standard scalar
  • Standard Scaling: Standardization is the process of scaling the feature, it assumes the feature follow normal distribution and scale the feature between mean and standard deviation, here mean is 0 and standard deviation is always 1.

6.๐…๐ž๐š๐ญ๐ฎ๐ซ๐ž๐ฌ ๐’๐ž๐ฅ๐ž๐œ๐ญ๐ข๐จ๐ง

  1. Drop unique and constant feature: Dropping employee number because this is a constant column as well as drop Years Since Last Promotion because we create a new feaure using square root transformation.

  2. Checking Correlation: Checking correlation with the help of heat map, and get the their is no highly correlated feature is present.

Heatmap: A heatmap is a graphical representation of data that uses a system of color-coding to represent different values.

  1. Check Duplicates: In this data Their is no dupicates is present.

  2. PCA: Use pca to reduce the dimension of data, Data is contain total 27 feature after dropping unique and constant column,from PCA it shows the 25 feature has less varaince loss, so we are going to select 25 feature.

Principal component analysis (PCA) is a popular technique for analyzing large datasets containing a high number of dimensions/features per observation, increasing the interpretability of data while preserving the maximum amount of information, and enabling the visualization of multidimensional data. Formally, PCA is a statistical technique for reducing the dimensionality of a dataset.

  1. Saving Pre-Process Data: save the all preprocess data in new file and add target feature to it.

7.๐Œ๐š๐œ๐ก๐ข๐ง๐ž ๐ฅ๐ž๐š๐ซ๐ง๐ข๐ง๐  ๐Œ๐จ๐๐ž๐ฅ ๐‚๐ซ๐ž๐š๐ญ๐ข๐จ๐ง & ๐„๐ฏ๐š๐ฅ๐ฎ๐š๐ญ๐ข๐จ๐ง

  1. Define Dependant and Independant Features:

  2. Balancing the data: The data is imbalance, so we need to balance the data with the help of SMOTE

SMOTE: SMOTE (synthetic minority oversampling technique) is one of the most commonly used oversampling methods to solve the imbalance problem. It aims to balance class distribution by randomly increasing minority class examples by replicating them. SMOTE synthesises new minority instances between existing minority instances. 3.Splitting Training And Testing Data: 80% data use for training & 20% data used for testing

Algorithm:

  • AIM: Create a sweet spot model (Low bias, Low variance)

HERE WE WILL BE EXPERIMENTING WITH THREE ALGORITHM

  1. Support Vector Machine
  2. Random Forest
  3. Artificial Neural Network [MLP Classifier]
  • Support vector machine well perform on training data with accuracy 96.61% but the test score is 94.66 after applying Hyperparameter tunning score is 98.28 means model is overfit.
  • Random forest very well perform in training data with 100% accuracy but in testing 95.61% after doing hyperparameter tunning testing score is decreases.
  • Artifical neural network[Multilayer percepton] perform very well on training data with 98.95% accuracy and testing score is 95.80%. So we are select Artifical neuranl network [Multilayer percepton] model.

8.๐’๐š๐ฏ๐ข๐ง๐  ๐Œ๐จ๐๐ž๐ฅ

Save model with the help of pickle file.

Tools and Library Used:

Tools:

  • Jupyter

Library Used:

1.Pandas

2.Numpy

3.Matplotlib

4.Seaborn

5.pylab

6.Scipy

7.Sklearn

8.Pickle

๐†๐จ๐š๐ฅ 1: ๐ƒ๐ž๐ฉ๐š๐ซ๐ญ๐ฆ๐ž๐ง๐ญ ๐–๐ข๐ฌ๐ž ๐๐ž๐ซ๐Ÿ๐จ๐ซ๐ฆ๐š๐ง๐œ๐ž๐ฌ

PLOT USED

  1. Violinplot: It shows the distribution of quantitative data across several levels of one (or more) categorical variables such that those distributions can be compared.
  2. CountPlot: countplot is used to Show the counts of observations in each categorical bin using bars. Sales: The Performace rating level 3 is more in the sales department. The male performance rating the little bit higher compared to female.
  • Human Resources: The majority of the employees lying under the level 3 performance . The older people are performing low in this department. The female employees in HR department doing really well in their performance.

  • Development: The maximum number of employees are level 3 performers. Employees of all age are performing at the level of 3 only. The gender-based performance is nearly same for both.

  • Data Science: The highest average of level 3 performance is in data science department. Data science is the only department where less number of level 2 performers. The overall performance is higher compared to all departments. Male employees are doing good in this department.

  • Research & Development: The age factor is not deviating from the level of performance here where different employees with different age are there in every level of performance. The R&D has the good female employees in their performance.

  • Finance: The finance department performance is exponentially decreasing when age increases. The male employees are doing good. The experience factor is inversely relating to the performance level.

๐†๐จ๐š๐ฅ 2: ๐“๐จ๐ฉ 3 ๐ˆ๐ฆ๐ฉ๐จ๐ซ๐ญ๐š๐ง๐ญ ๐…๐š๐œ๐ญ๐จ๐ซ๐ฌ ๐ž๐Ÿ๐Ÿ๐ž๐œ๐ญ๐ข๐ง๐  ๐ž๐ฆ๐ฉ๐ฅ๐จ๐ฒ๐ž๐ž ๐ฉ๐ž๐ซ๐Ÿ๐จ๐ซ๐ฆ๐š๐ง๐œ๐ž

The top three important features affecting the performance rating are ordered with their importance level as follows,

  1. Employment Environment Satisfaction
  2. Employee Salary Hike Percentage
  3. Experience Years In CurrentRole
  • Employee Enviroment satisfaction: Maximum Number of Employees Performance Rating belongs to EmpEnvironmentSatisfaction Level 3 & Level 4, It contains 367 & 361.

  • Employee last salary hike percent: More Number of Employees whose salary hike percentage belongs to 11-19 % are getting 2 & 3 performance rating Maximum time. as well asEmployees whose salary hike percentage is in between 20-22%, There performance rating is 4.

  • Employee work life balance: In EmpWorkLifeBalance, level 3 is showing high Performance Rating of employees

๐†๐จ๐š๐ฅ 3: ๐€ ๐“๐ซ๐š๐ข๐ง๐ž๐ ๐ฆ๐จ๐๐ž๐ฅ ๐ฐ๐ก๐ข๐œ๐ก ๐œ๐š๐ง ๐ฉ๐ซ๐ž๐๐ข๐œ๐ญ ๐ญ๐ก๐ž ๐ž๐ฆ๐ฉ๐ฅ๐จ๐ฒ๐ž๐ž ๐ฉ๐ž๐ซ๐Ÿ๐จ๐ซ๐ฆ๐š๐ง๐œ๐ž

The trained model is created using the machine learning algorithm as follows with the accuracy score

  1. Support Vector Classifier: 98.28% accuracy
  2. Random Forest classifier: 95.61% accuracy
  3. Artifical Neural Network [Multilayer percepton]: 95.80%

๐†๐จ๐š๐ฅ 4: ๐‘๐ž๐œ๐จ๐ฆ๐ฆ๐ž๐ง๐๐š๐ญ๐ข๐จ๐ง๐ฌ ๐ญ๐จ ๐ข๐ฆ๐ฉ๐ซ๐จ๐ฏ๐ž ๐ญ๐ก๐ž ๐ž๐ฆ๐ฉ๐ฅ๐จ๐ฒ๐ž๐ž ๐ฉ๐ž๐ซ๐Ÿ๐จ๐ซ๐ฆ๐š๐ง๐œ๐ž

  • The overall employee performance can be achieved by employee environment satisfaction. The company needs to focus more on the employee environment satisfaction. The salary hike will give the boost to the employees to perform well. Promote the employee every 6th month.
  • Improve Employee's work-life balance this affects the performance rating. While recruiting for HR, consider the female candidates where they perform well compared to male. The development and sales department is having an overall higher performance comparing to rest of the departments. While some of the employees who gives feedback like Low & Medium from Job Satisfaction & Relationship Satisfaction feature, such employees gives Excellent performance more in number. So company should focus on them.

About

This is IABAC Project. The project's business rationale entails utilizing the dataset's provided features to forecast employee performance ratings.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published