Professional Documents
Culture Documents
Logistic Regression and Lda
Logistic Regression and Lda
LDA
PREPARED BY
MURALIDHARAN N
1
Data Dictionary:
2.1 Data Ingestion: Read the dataset. Do the descriptive statistics and do
null value condition check, write an inference on it. Perform Univariate
and Bivariate Analysis. Do exploratory data analysis.
DATA DESCRIBE
No 471
Name: Holliday Package, dtype: int64
FOREIGN : 2
Yes 216
No 656
Name: foreign, dtype: int64
Percentage of target :
This split indicates that 45% of employees are interested in the holiday package.
FOREIGN
5
HOLIDAY PACKAGE
We can see employee below salary 150000 have always opted for holiday
package
6
Employee age over 50 to 60 have seems to be not taking the holiday package,
whereas in the age 30 to 50 and salary less than 50000 people have opted more
for holiday package.
9
BIVARITE ANALYIS
DATA DISTRIBUTION
There is no correlation between the data, the data seems to be normal. There is
no huge difference in the data distribution among the holiday package, I don’t
see any clear two different distribution in the data.
13
2.2 Do not scale the data. Encode the data (having string values) for Modelling. Data
Split: Split the data into train and test (70:30). Apply Logistic Regression and LDA
(linear discriminant analysis).
ENCODING CATEGORICAL VARIABLE
The encoding helps the logistic regression model predict better results
15
The grid search method gives, liblinear solver which is suitable for small
datasets.
Tolerance and penalty has been found using grid search method
Predicting the training data,
16
ACCURACY
LDA
MODEL SCORE
MODEL SCORE
Comparing both these models, we find both results are same, but LDA
works better when there is category target variable.
2.4 Inference: Basis on these predictions, what are the insights and
recommendations.
Please explain and summarise the various steps performed in this project.
There should be proper business interpretation and actionable insights
present.
The important factors deciding the predictions are salary, age and educ.
Recommendations
1. To improve holiday packages over the age above 50 we can provide
religious destination places.
2. For people earning more than 150000 we can provide vacation holiday
packages.
3. For employee having more than number of older children we can provide
packages in holiday vacation places.
THE END