Logistic Regression for predicting the categories of persons those who can purchase the newly manufactured SUV cars.
The Main program can be executed in the Jupyter Notebook. The "Social_Network_Ads.csv" dataset, contains the following columns.
- User ID
- Gender
- Age
- EstimatedSalary
- Purchased
Here the 'Age' and 'EstimatedSalary' are taken as the independent variables and the 'Purchased' column is taken as the dependent variable. The values are standardized and the dataset is splitted as train and test datasets. The logistic regression model is applied.Prediction is then carried out.