<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Logistic Regression on Amit Rajan</title><link>https://amitrajan012.github.io/topics/logistic-regression/</link><description>Recent content in Logistic Regression on Amit Rajan</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 05 Dec 2018 07:26:51 +0530</lastBuildDate><atom:link href="https://amitrajan012.github.io/topics/logistic-regression/index.xml" rel="self" type="application/rss+xml"/><item><title>Logistic Regression</title><link>https://amitrajan012.github.io/post/logistic-regression/</link><pubDate>Wed, 05 Dec 2018 07:26:51 +0530</pubDate><guid>https://amitrajan012.github.io/post/logistic-regression/</guid><description>&lt;/br&gt;&#10;In a classification setting, &lt;b&gt;logistic regression&lt;/b&gt; models the probability of a response $Y$ belonging to a particaular category. A simple linear regression can not be used for classification as the output of a linear regression can have a range that goes from $-\infty$ to $\infty$ (we need to find the values in the range [0, 1]). Instead, we can transform the output of linear regression such that the output is confined in the range [0, 1]. For this, a &lt;b&gt;logistic function&lt;/b&gt; which is given below can be used.&#10;\[p(X) = \frac{e^{\beta_0 &amp;#43; \beta X}}{1 &amp;#43; e^{\beta_0 &amp;#43; \beta X}}\]&lt;p&gt;Manipulating the above function and taking the log, we get&lt;/p&gt;</description></item></channel></rss>