
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ricefriedegg.com:80/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Naive_Bayes</id>
	<title>Naive Bayes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ricefriedegg.com:80/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Naive_Bayes"/>
	<link rel="alternate" type="text/html" href="http://ricefriedegg.com:80/mediawiki/index.php?title=Naive_Bayes&amp;action=history"/>
	<updated>2026-05-13T22:43:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://ricefriedegg.com:80/mediawiki/index.php?title=Naive_Bayes&amp;diff=851&amp;oldid=prev</id>
		<title>Rice: /* How it works */</title>
		<link rel="alternate" type="text/html" href="http://ricefriedegg.com:80/mediawiki/index.php?title=Naive_Bayes&amp;diff=851&amp;oldid=prev"/>
		<updated>2024-05-24T19:18:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;How it works&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:18, 24 May 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;P(C|X_1,X_2,X_3)\propto P(X_1|C)P(X_2|C)P(X_3|C)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;P(C|X_1,X_2,X_3)\propto P(X_1|C)P(X_2|C)P(X_3|C)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;We can divide P(C|X) over P(notC|X) to avoid calculating P(X1,X2,X3). We can then apply a log to avoid zero denominators.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rice</name></author>
	</entry>
	<entry>
		<id>http://ricefriedegg.com:80/mediawiki/index.php?title=Naive_Bayes&amp;diff=849&amp;oldid=prev</id>
		<title>Rice: Created page with &quot;Category:Machine Learning  &#039;&#039;&#039;Naive Bayes&#039;&#039;&#039; is an approach to Bayesian networks that simplify the computation of joint probability of an outcome based on high dimensional features.  = Motivation =  Consider binary classification output C is dependent on binary features X1~X3. By Bayes theorem, we can compute C&#039;s probability based on the features with Bayes&#039; theorem:  &lt;math&gt; P(C|X_1,X_2,X_3)=\frac{P(X_1,X_2,X_3|C)P(C)}{P(X_1,X_2,X_3)} &lt;/math&gt;  This, in turn,...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ricefriedegg.com:80/mediawiki/index.php?title=Naive_Bayes&amp;diff=849&amp;oldid=prev"/>
		<updated>2024-05-24T18:50:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/mediawiki/index.php/Category:Machine_Learning&quot; title=&quot;Category:Machine Learning&quot;&gt;Category:Machine Learning&lt;/a&gt;  &amp;#039;&amp;#039;&amp;#039;Naive Bayes&amp;#039;&amp;#039;&amp;#039; is an approach to &lt;a href=&quot;/mediawiki/index.php/Bayesian_network&quot; title=&quot;Bayesian network&quot;&gt;Bayesian networks&lt;/a&gt; that simplify the computation of joint probability of an outcome based on high dimensional features.  = Motivation =  Consider binary classification output C is dependent on binary features X1~X3. By Bayes theorem, we can compute C&amp;#039;s probability based on the features with &lt;a href=&quot;/mediawiki/index.php?title=Bayes%27_theorem&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Bayes&amp;#039; theorem (page does not exist)&quot;&gt;Bayes&amp;#039; theorem&lt;/a&gt;:  &amp;lt;math&amp;gt; P(C|X_1,X_2,X_3)=\frac{P(X_1,X_2,X_3|C)P(C)}{P(X_1,X_2,X_3)} &amp;lt;/math&amp;gt;  This, in turn,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Machine Learning]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Naive Bayes&amp;#039;&amp;#039;&amp;#039; is an approach to [[Bayesian network]]s that simplify the computation of joint probability of an outcome based on high dimensional features.&lt;br /&gt;
&lt;br /&gt;
= Motivation =&lt;br /&gt;
&lt;br /&gt;
Consider binary classification output C is dependent on binary features X1~X3. By Bayes theorem, we can compute C&amp;#039;s probability based on the features with [[Bayes&amp;#039; theorem]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
P(C|X_1,X_2,X_3)=\frac{P(X_1,X_2,X_3|C)P(C)}{P(X_1,X_2,X_3)}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This, in turn, mean that we need to estimate the probability of every combination of features (0 0 0, 0 0 1...). This is computationally expensive. &lt;br /&gt;
&lt;br /&gt;
= How it works =&lt;br /&gt;
By assuming that the features are independent, Naive Bayes simplifies the computation to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
P(C|X_1,X_2,X_3)\propto P(X_1|C)P(X_2|C)P(X_3|C)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rice</name></author>
	</entry>
</feed>