# Logistic Regression

## Logistic Regression

The first thing to say is that logistic regression is **not a regression, but a classification** learning algorithm.

![](https://3698175758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAwtzMy_pbrChIExFtN%2Fuploads%2Fgit-blob-ff66ecd4491dea348d8c80cc4a919dba176d9afd%2Fimage.png?alt=media)

### Objective:

![](https://3698175758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAwtzMy_pbrChIExFtN%2Fuploads%2Fgit-blob-ca233e91820c080babb41c97f6e55636df313a38%2Fimage.png?alt=media)

![](https://3698175758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAwtzMy_pbrChIExFtN%2Fuploads%2Fgit-blob-cf9557949520bf25127bfab56d3730c02fffb186%2Fimage.png?alt=media)

![](https://3698175758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAwtzMy_pbrChIExFtN%2Fuploads%2Fgit-blob-2d3046274e0f633b955eeff26aad12a6ab234279%2Fimage.png?alt=media)

### Cost Function

![](https://3698175758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAwtzMy_pbrChIExFtN%2Fuploads%2Fgit-blob-dd2b1c4b0ddde7511eec0d270e5c5b3e81af8249%2Fimage.png?alt=media)

![](https://3698175758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAwtzMy_pbrChIExFtN%2Fuploads%2Fgit-blob-9ca654c15bca338320cb2a8b25d1429c45b42b3c%2Fimage.png?alt=media)

![](https://3698175758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAwtzMy_pbrChIExFtN%2Fuploads%2Fgit-blob-1f3cf287ed614615e123cb6625841aac18e9c2ab%2Fimage.png?alt=media)

### Optimization

![](https://3698175758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAwtzMy_pbrChIExFtN%2Fuploads%2Fgit-blob-eda459c5e03f2309e5f94e6042cd685f6a9cc514%2Fimage.png?alt=media)

## Youtube Lecture

Watch the lecture in the following order

1. Logistic Classification Intro

{% embed url="https://www.youtube.com/watch?v=PIjno6paszY" %}

2\. Logistic Regression:Cost function, Cross Entropy

{% embed url="https://www.youtube.com/watch?v=6vzchGYEJBc" %}

3\. Logistic Regression : Maximum Likelihood

{% embed url="https://www.youtube.com/watch?v=vN5cNN2-HWE&list=PLblh5JKOoLUKxzEP5HA2d-Li7IJkHfXSe&index=2" %}

{% embed url="https://www.youtube.com/watch?v=BfKanl1aSG0&list=PLblh5JKOoLUKxzEP5HA2d-Li7IJkHfXSe&index=3" %}
