SlideShare a Scribd company logo
Ali Madani
https://www.linkedin.com/in/amlearning
/
Bayes rule and Naive Bayes
Classifier
What we know when training a model
2
p(X1=x1|Class=1)
Class=1
Class=2
p(X2=x2|Class=1)
p(Xm=xm|Class=1)
What do we care about?
3
p(Class=1|X1=x1,X2=x2,…,Xm=xm)=?
Class=1
Class=2
?
Bayes rule is useful to figure out the relationship
4
p(A|B)p(B)=p(B|A)p(A)
Bayes rule is useful to figure out the relationship
5
p(Class=1|X1=x1,X2=x2,…,Xm=xm)*
p(X1=x1,X2=x2,…,Xm=xm)=
p(X1=x1,X2=x2,…,Xm=xm|Class=1)*p(Class=1)
p(A|B)p(B)=p(B|A)p(A)
The relationship looks complicated
6
WWW*p(X1=x1,X2=x2,…,Xm=xm)=
p(X1=x1,X2=x2,…,Xm=xm|Class=1)p(Class=1)
WWW: What We Want
p(Class=1):easy to calculate
Naive assumption
7
Naive: Independent contributions of features in classification
p(X1=x1,X2=x2,…,Xm=xm)=p(X1=x1)p(X2=x2)...p(Xm=xm)
p(X1=x1,X2=x2,…,Xm=xm|Class=1)=
p(X1=x1|Class=1)p(X2=x2|Class=1)...p(Xm=xm|Class=1)
Naive Bayes
8
Please share what you
learned with others

More Related Content

What's hot

Algebra 6 Point 7
Algebra 6 Point 7Algebra 6 Point 7
Algebra 6 Point 7herbison
 
Alg lesson 9
Alg lesson 9Alg lesson 9
Alg lesson 9
sphelps25
 
1 2 solving multi-step equations
1 2 solving multi-step equations1 2 solving multi-step equations
1 2 solving multi-step equationshisema01
 
Lesson 31
Lesson 31Lesson 31
Lesson 31
sphelps25
 
Evaluating Algebraic Expression
Evaluating Algebraic ExpressionEvaluating Algebraic Expression
Evaluating Algebraic Expression
Free Math Powerpoints
 
Algebraic Simplification and evaluation
Algebraic Simplification and evaluationAlgebraic Simplification and evaluation
Algebraic Simplification and evaluation
Puna Ripiye
 
Section 1.5 distributive property (algebra)
Section 1.5 distributive property (algebra)Section 1.5 distributive property (algebra)
Section 1.5 distributive property (algebra)Algebra / Mathematics
 
Factorising algebraic expressions
Factorising algebraic expressionsFactorising algebraic expressions
Factorising algebraic expressions
MrGarvey
 
Algebra 6 Point 6
Algebra 6 Point 6Algebra 6 Point 6
Algebra 6 Point 6herbison
 
Factoring if a is greater than 1 grade8
Factoring if a is greater than 1 grade8Factoring if a is greater than 1 grade8
Factoring if a is greater than 1 grade8
MartinGeraldine
 
Solving Multi Step Equations
Solving Multi Step EquationsSolving Multi Step Equations
Solving Multi Step EquationsDerek Wright
 
ARITHMETIC SEQUENCE, MEAN AND SERIES WEEK 2 QUARTER 1
ARITHMETIC SEQUENCE, MEAN AND SERIES WEEK 2 QUARTER 1ARITHMETIC SEQUENCE, MEAN AND SERIES WEEK 2 QUARTER 1
ARITHMETIC SEQUENCE, MEAN AND SERIES WEEK 2 QUARTER 1
AraceliLynPalomillo
 
3h. Pedagogy of Mathematics (Part II) - Algebra (Ex 3.8)
3h. Pedagogy of Mathematics (Part II) - Algebra (Ex 3.8)3h. Pedagogy of Mathematics (Part II) - Algebra (Ex 3.8)
3h. Pedagogy of Mathematics (Part II) - Algebra (Ex 3.8)
Dr. I. Uma Maheswari Maheswari
 
Distributive property
Distributive propertyDistributive property
Distributive propertymarniekrentz
 
Chapter 6.5
Chapter 6.5Chapter 6.5
Chapter 6.5nglaze10
 
Absolute Value Equations
Absolute Value EquationsAbsolute Value Equations
Absolute Value EquationsBitsy Griffin
 
Derivation of rank correlation 1
Derivation of rank correlation 1Derivation of rank correlation 1
Derivation of rank correlation 1
MParveenSyed
 
Dividing Polynomials
Dividing PolynomialsDividing Polynomials
Dividing Polynomials
JonathanSantos232
 
algebraic expression class VIII
algebraic expression class VIIIalgebraic expression class VIII
algebraic expression class VIIIHimani Priya
 

What's hot (20)

Algebra 6 Point 7
Algebra 6 Point 7Algebra 6 Point 7
Algebra 6 Point 7
 
Alg lesson 9
Alg lesson 9Alg lesson 9
Alg lesson 9
 
Distributive
DistributiveDistributive
Distributive
 
1 2 solving multi-step equations
1 2 solving multi-step equations1 2 solving multi-step equations
1 2 solving multi-step equations
 
Lesson 31
Lesson 31Lesson 31
Lesson 31
 
Evaluating Algebraic Expression
Evaluating Algebraic ExpressionEvaluating Algebraic Expression
Evaluating Algebraic Expression
 
Algebraic Simplification and evaluation
Algebraic Simplification and evaluationAlgebraic Simplification and evaluation
Algebraic Simplification and evaluation
 
Section 1.5 distributive property (algebra)
Section 1.5 distributive property (algebra)Section 1.5 distributive property (algebra)
Section 1.5 distributive property (algebra)
 
Factorising algebraic expressions
Factorising algebraic expressionsFactorising algebraic expressions
Factorising algebraic expressions
 
Algebra 6 Point 6
Algebra 6 Point 6Algebra 6 Point 6
Algebra 6 Point 6
 
Factoring if a is greater than 1 grade8
Factoring if a is greater than 1 grade8Factoring if a is greater than 1 grade8
Factoring if a is greater than 1 grade8
 
Solving Multi Step Equations
Solving Multi Step EquationsSolving Multi Step Equations
Solving Multi Step Equations
 
ARITHMETIC SEQUENCE, MEAN AND SERIES WEEK 2 QUARTER 1
ARITHMETIC SEQUENCE, MEAN AND SERIES WEEK 2 QUARTER 1ARITHMETIC SEQUENCE, MEAN AND SERIES WEEK 2 QUARTER 1
ARITHMETIC SEQUENCE, MEAN AND SERIES WEEK 2 QUARTER 1
 
3h. Pedagogy of Mathematics (Part II) - Algebra (Ex 3.8)
3h. Pedagogy of Mathematics (Part II) - Algebra (Ex 3.8)3h. Pedagogy of Mathematics (Part II) - Algebra (Ex 3.8)
3h. Pedagogy of Mathematics (Part II) - Algebra (Ex 3.8)
 
Distributive property
Distributive propertyDistributive property
Distributive property
 
Chapter 6.5
Chapter 6.5Chapter 6.5
Chapter 6.5
 
Absolute Value Equations
Absolute Value EquationsAbsolute Value Equations
Absolute Value Equations
 
Derivation of rank correlation 1
Derivation of rank correlation 1Derivation of rank correlation 1
Derivation of rank correlation 1
 
Dividing Polynomials
Dividing PolynomialsDividing Polynomials
Dividing Polynomials
 
algebraic expression class VIII
algebraic expression class VIIIalgebraic expression class VIII
algebraic expression class VIII
 

Recently uploaded

一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
eddie19851
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 

Recently uploaded (20)

一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 

Bayes rule and naive bayes classifier