Learn Logistic Regression
Read the basics of classifications
- Statistics PL16 - Logistic Regression - a video series by Brandon Foltz offer very good coverage of Logistic Regression. Start with the following videos:
- Linear vs. Logistic Regression - video
- Logistic regression a quick intro
- Ch 4 - Classification of book Introduction to Statistical Learning offers good overview of Classification.
- Section 4.3 covers Logistic Regression
Check your knowledge:
- What is a sigmoid curve?
- What is the min/max values for sigmoid?
- How do we convert the sigmoid / logistic output to a binary classification (yes/no or true/false)
- Why is logistic called regression, but we use it for classification?
★☆☆ - Easy
★★☆ - Medium
★★★ - Challenging
★★★★ - Bonus
Use Scikit's make_blobs or make_classification to generate some sample data.
Try to separate them using LogisticRegression
It will look like this:
admit gre gpa rank
0 0 380 3.61 3
1 1 660 3.67 3
2 1 800 4.00 1
3 0 640 3.19 4
4 0 520 2.93 4
...
- Use input features:
gre, gpa, rank
, and predict output:admit
- Use Logistic Regression to predict.
- Create a confusion matrix
- What is the accuracy of the model
- Choose a classification dataset from UCI data repository
- For example, consider US Census Income data
- Run Logistic regression on the data of choice