<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Classification on Amit Rajan</title><link>https://amitrajan012.github.io/topics/classification/</link><description>Recent content in Classification on Amit Rajan</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 24 Oct 2018 05:01:19 +0100</lastBuildDate><atom:link href="https://amitrajan012.github.io/topics/classification/index.xml" rel="self" type="application/rss+xml"/><item><title>Naive Bayes Classifier</title><link>https://amitrajan012.github.io/post/naive-bayes-classifier/</link><pubDate>Wed, 24 Oct 2018 05:01:19 +0100</pubDate><guid>https://amitrajan012.github.io/post/naive-bayes-classifier/</guid><description>&lt;/br&gt;&#10;&lt;h3 id="introduction-"&gt;Introduction :&lt;/h3&gt;&#10;&lt;p&gt;Naive Bayes is an extremely fast classification algorithm which uses Bayes Theorem as its basic building block. It assumes that the features or predictors in the dataset are &lt;b&gt;independent&lt;/b&gt;.&lt;/p&gt;&#10;&lt;p&gt;The Bayes theorem is given as:&lt;/p&gt;&#10;\[P(c|X) = \frac{P(c)P(X|c)}{P(X)}\]&lt;p&gt;where \(c\) denotes a class label and \(X\) is the predictor. The probabilities \(P(c)\) and \(P(X)\) are the &lt;b&gt;prior probabilities&lt;/b&gt; of the class and the predictor. \(P(X|c)\) is the prior probability or &lt;b&gt;likelihood&lt;/b&gt; of observing a feature \(X\) given class \(c\). \(P(c|X)\) is the &lt;b&gt;posterior probability&lt;/b&gt; of the class \(c\) given a feature \(X\). Hence, the posterior probability of a class \(c\) givena a feature \(X\) can be found using different prior probabilities and likelihood which can be obtained from the existing dataset. In the plain english, the Bayes theorem can be stated as:&lt;/p&gt;</description></item></channel></rss>