SlideShare a Scribd company logo
1 of 13
Download to read offline
Bayesian Decision Theory
Dr.Varun Kumar
Dr.Varun Kumar Lecture 4 1 / 13
Outlines
1 What is Decision Theory ?
2 Usage of Decision of Theory
3 Mathematical Description of Bayeโ€™s Theorem:
4 References
Dr.Varun Kumar Lecture 4 2 / 13
What is Decision Theory ?
Decision Theory :
For solving a real world problem, adaptive decision capability makes the
system more robust.
The framework for making decisions under uncertainty.
We can make rational decisions among multiple actions to minimize
expected risk.
Through learning association rules from data, a proper decision can
be framed.
scope:
Dr.Varun Kumar Lecture 4 3 / 13
Usage of Decision of Theory
1 Arti๏ฌcial Intelligence
2 Machine Learning
3 Pattern Recognition
4 Wireless Communication
5 Image Processing
Dr.Varun Kumar Lecture 4 4 / 13
Mathematical Description:
Mathematical Description :
Class โ†’ Family/Sports/Luxury
โ†“
Features โ†’ Price/engine-capacity/Top-speed
โ†“
Dimension
Let two classes ฯ‰1 and ฯ‰2 denotes the accept and reject phenomenon.
p(ฯ‰1) โ†’ Apriori probability. An event whose outcome falls in class ฯ‰1.
p(ฯ‰2) โ†’ Apriori probability. An event whose outcome falls in class ฯ‰2.
p(x|ฯ‰1) or p(x|ฯ‰2) โ†’ Class conditional probability.
x โ†’ It is a feature. It depends on both class ฯ‰1 and ฯ‰2. It can
co-exist either in class ฯ‰1 and ฯ‰2.
Dr.Varun Kumar Lecture 4 5 / 13
Continuedโ€“
Mathematical Description:
p(ฯ‰1|x) โ†’ Aposteriori probability (depends on current input or future).
p(ฯ‰i , x) โˆ€ i = 1, 2 โ†’ Joint probability
Joint Probability:
p(ฯ‰i , x) = p(ฯ‰i |x)p(x) = p(x|ฯ‰i )p(ฯ‰i )
Property of Joint probability:
p(x) = 2
i=1 p(ฯ‰i , x)
p(ฯ‰i |x) =
p(x|ฯ‰i )p(ฯ‰i )
p(x)
=
p(x|ฯ‰i )p(ฯ‰i )
2
i=1 p(ฯ‰i , x)
p(ฯ‰1|x) > p(ฯ‰2|x) โ‡’ Decision will go in favor of class ฯ‰1.
p(ฯ‰1|x) < p(ฯ‰2|x) โ‡’ Decision will go in favor of class ฯ‰2.
Note: Aposteriori probability gives the true measure of any new sample
that may fall in the class ฯ‰1 and ฯ‰2.
Dr.Varun Kumar Lecture 4 6 / 13
Continuedโ€“
Note:
1 If the relation between apriori probability is p(ฯ‰1) > p(ฯ‰2) โ‡’
Decision goes in favor of class ฯ‰1. This phenomenon is less likely.
2 Above relation does not address the actual scenario of the condition
of class ฯ‰1 and ฯ‰2.
3 On the other side, if the relation between aposteriori probability is
p(ฯ‰1|x) > p(ฯ‰2|x) โ‡’ decision will go in favor of class ฯ‰1. This
phenomenon is more likely.
4 Random variable x is function of ฯ‰1 and ฯ‰2.
x = f (ฯ‰1, ฯ‰2)
Dr.Varun Kumar Lecture 4 7 / 13
Probability of Error:
Probability of Error:
0 2 4 6 8 10 12
x
0
0.05
0.1
0.15
0.2
0.25
0.3
0.35
0.4
p(ฯ‰i
|x)
ฯ‰1
ฯ‰2
x1
x0
x2
p(ฯ‰1
|x0
) = p(ฯ‰2
|xo
)
p(ฯ‰1
|x1
) > p(ฯ‰2
|x1
)
p(ฯ‰1
|x2
) < p(ฯ‰2
|x2
)
p(error) =
โˆž
โˆ’โˆž
p(error, x)dx =
โˆž
โˆ’โˆž
p(error|x)p(x)dx
where, p(error|x) = min{p(ฯ‰1|x), p(ฯ‰2|x)}
Dr.Varun Kumar Lecture 4 8 / 13
Example
Q. If a feature x is the essential part of two classes ฯ‰1 and ฯ‰2. If the
PDF of this feature is exponentially distributed, such that
p(x) = 1
2eโˆ’x/2 โˆ€ x > 0 and aposteriori PDF for ฯ‰1 and ฯ‰2 are
2eโˆ’2x โˆ€ x > 0 and 4eโˆ’4x โˆ€ x > 0, respectively.
1 Find the probability of error, when decision goes in favor of ฯ‰1.
2 Find the probability of error, when decision goes in favor of ฯ‰2.
3 At what value of feature x, the decision canโ€™t be performed.
Ans. 1 According to question, p(x) = 1
2 eโˆ’x/2
โˆ€ x > 0,
p(ฯ‰1|x) = 2eโˆ’2x
โˆ€ x > 0 and p(ฯ‰2|x) = 4eโˆ’4x
โˆ€ x > 0 . If decision
goes in favor of ฯ‰1 then p(error/x) = p(ฯ‰2/x).
p(error)|ฯ‰1 =
โˆž
0
4eโˆ’4x 1
2 eโˆ’x/2
dx=4
9 โˆ€ x > 0
2 p(error)|ฯ‰2 =
โˆž
0
2eโˆ’2x 1
2 eโˆ’x/2
dx=2
5 โˆ€ x > 0
3 when aposteriori PDF for class ฯ‰1 and ฯ‰2 are same,i.e
2eโˆ’2x
= 4eโˆ’4x
โ‡’ e2x
= 2 โ‡’ x = 1
2 ln(2)
Dr.Varun Kumar Lecture 4 9 / 13
Multiple Class, Loss Function:
Multiple Class/Actions/Features and Loss Function:
{ฯ‰1, ฯ‰2, ...., ฯ‰c} โ‡’ Multiple class or state of nature
{ฮฑ1, ฮฑ2, ...., ฮฑa} โ‡’ Multiple actions
Loss Function:
Instead of probability of error, we use the term loss function in case of
multiple classes and actions. Mathematically, it can be expressed as
L(ฮฑi /ฯ‰j ) = Lij โ‡’ A given action i is performed under jth
state of nature
โˆ€ i = 1, 2, ...a and j = 1, 2, ..., c
X โ†’ d-dimensional feature vector, i.e. X = {x1, x2, ....xd }
Dr.Varun Kumar Lecture 4 10 / 13
Risk Function or Expected Loss:
Risk Function or Expected Loss:
In case of multiple classes and performed action, we require the expected
loss for ๏ฌnal decision. Hence, we use risk function, i.e. denoted as
R(ฮฑi |X) =
c
j=1
L(ฮฑi |ฯ‰j )p(ฯ‰j |X) โˆ€ i, j = 1, 2, ...
R(ฮฑ1|X) = L11p(ฯ‰1|X) + L12p(ฯ‰2|X)
R(ฮฑ2|X) = L21p(ฯ‰1|X) + L22p(ฯ‰2|X)
If a risk relation exist in such a way that R(ฮฑ1|X) < R(ฮฑ2|X) or
(L21 โˆ’ L11)
+Ve
p(ฯ‰1|X) > (L12 โˆ’ L22)
+Ve
p(ฯ‰2|X)
Note: Above relation suggest that the decision goes in favor of class ฯ‰1.
Dr.Varun Kumar Lecture 4 11 / 13
Minimum Error Rate Classi๏ฌcation
L(ฮฑi |ฯ‰j ) = 0 โˆ€ i = j โ‡’ No loss occur for performing the ith action
correspond to ith class
= 1 โˆ€ i = j
Risk Function :
R(ฮฑi |X) = c
j=i p(ฯ‰j |X) = 1 โˆ’ p(ฯ‰i |X)
Dr.Varun Kumar Lecture 4 12 / 13
References
E. Alpaydin, Introduction to machine learning. MIT press, 2020.
T. M. Mitchell, The discipline of machine learning. Carnegie Mellon University,
School of Computer Science, Machine Learning , 2006, vol. 9.
J. Grus, Data science from scratch: ๏ฌrst principles with python. Oโ€™Reilly Media,
2019.
Dr.Varun Kumar Lecture 4 13 / 13

More Related Content

What's hot

Absolute Value Inequalities
Absolute Value InequalitiesAbsolute Value Inequalities
Absolute Value Inequalities
swartzje
ย 
Section 10.4 sol equation w/ variables on each side (math)
Section 10.4 sol equation w/ variables on each side (math)Section 10.4 sol equation w/ variables on each side (math)
Section 10.4 sol equation w/ variables on each side (math)
Algebra / Mathematics
ย 
C2 st lecture 10 basic statistics and the z test handout
C2 st lecture 10   basic statistics and the z test handoutC2 st lecture 10   basic statistics and the z test handout
C2 st lecture 10 basic statistics and the z test handout
fatima d
ย 
Solving Rational Equations
Solving Rational EquationsSolving Rational Equations
Solving Rational Equations
Cheryl
ย 
Solving rational expressions
Solving rational expressionsSolving rational expressions
Solving rational expressions
Jessica Garcia
ย 
Sect1 R
Sect1 RSect1 R
Sect1 R
inKFUPM
ย 
Topic 1 __basic_probability_concepts
Topic 1 __basic_probability_conceptsTopic 1 __basic_probability_concepts
Topic 1 __basic_probability_concepts
Maleakhi Agung Wijaya
ย 

What's hot (20)

Absolute Value Inequalities
Absolute Value InequalitiesAbsolute Value Inequalities
Absolute Value Inequalities
ย 
Real Applications of Normal Distributions
Real Applications of Normal Distributions Real Applications of Normal Distributions
Real Applications of Normal Distributions
ย 
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
ย 
B120512
B120512B120512
B120512
ย 
Solving rational equations
Solving rational equationsSolving rational equations
Solving rational equations
ย 
Concentration inequality in Machine Learning
Concentration inequality in Machine LearningConcentration inequality in Machine Learning
Concentration inequality in Machine Learning
ย 
MCA_UNIT-2_Computer Oriented Numerical Statistical Methods
MCA_UNIT-2_Computer Oriented Numerical Statistical MethodsMCA_UNIT-2_Computer Oriented Numerical Statistical Methods
MCA_UNIT-2_Computer Oriented Numerical Statistical Methods
ย 
Normal as Approximation to Binomial
Normal as Approximation to BinomialNormal as Approximation to Binomial
Normal as Approximation to Binomial
ย 
Unit 1 BP801T t h multiple correlation examples
Unit 1  BP801T  t h multiple correlation examplesUnit 1  BP801T  t h multiple correlation examples
Unit 1 BP801T t h multiple correlation examples
ย 
Section 10.4 sol equation w/ variables on each side (math)
Section 10.4 sol equation w/ variables on each side (math)Section 10.4 sol equation w/ variables on each side (math)
Section 10.4 sol equation w/ variables on each side (math)
ย 
C2 st lecture 10 basic statistics and the z test handout
C2 st lecture 10   basic statistics and the z test handoutC2 st lecture 10   basic statistics and the z test handout
C2 st lecture 10 basic statistics and the z test handout
ย 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
ย 
primal and dual problem
primal and dual problemprimal and dual problem
primal and dual problem
ย 
Solving Rational Equations
Solving Rational EquationsSolving Rational Equations
Solving Rational Equations
ย 
Rational equations
Rational equationsRational equations
Rational equations
ย 
Solving Systems of Linear Equations by Graphing
Solving  Systems of Linear Equations by Graphing Solving  Systems of Linear Equations by Graphing
Solving Systems of Linear Equations by Graphing
ย 
Solving rational expressions
Solving rational expressionsSolving rational expressions
Solving rational expressions
ย 
Sect1 R
Sect1 RSect1 R
Sect1 R
ย 
Topic 1 __basic_probability_concepts
Topic 1 __basic_probability_conceptsTopic 1 __basic_probability_concepts
Topic 1 __basic_probability_concepts
ย 
Trapezoid rule 1 questions
Trapezoid rule 1 questionsTrapezoid rule 1 questions
Trapezoid rule 1 questions
ย 

Similar to Bayesian decesion theory

Mba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributionsMba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributions
Rai University
ย 
Bayes ML.ppt
Bayes ML.pptBayes ML.ppt
Bayes ML.ppt
Deepa Rahul
ย 
2012ใ€€mdsp pr07 bayes decision
2012ใ€€mdsp pr07 bayes decision2012ใ€€mdsp pr07 bayes decision
2012ใ€€mdsp pr07 bayes decision
nozomuhamada
ย 
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
Nish Kala Devi
ย 
Deep Learning Opening Workshop - ProxSARAH Algorithms for Stochastic Composit...
Deep Learning Opening Workshop - ProxSARAH Algorithms for Stochastic Composit...Deep Learning Opening Workshop - ProxSARAH Algorithms for Stochastic Composit...
Deep Learning Opening Workshop - ProxSARAH Algorithms for Stochastic Composit...
The Statistical and Applied Mathematical Sciences Institute
ย 

Similar to Bayesian decesion theory (20)

Normal density and discreminant analysis
Normal density and discreminant analysisNormal density and discreminant analysis
Normal density and discreminant analysis
ย 
06 Machine Learning - Naive Bayes
06 Machine Learning - Naive Bayes06 Machine Learning - Naive Bayes
06 Machine Learning - Naive Bayes
ย 
Microeconomics Theory Exam Help
Microeconomics Theory Exam HelpMicroeconomics Theory Exam Help
Microeconomics Theory Exam Help
ย 
Chapter 4 2022.pdf
Chapter 4 2022.pdfChapter 4 2022.pdf
Chapter 4 2022.pdf
ย 
Mba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributionsMba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributions
ย 
Bayes ML.ppt
Bayes ML.pptBayes ML.ppt
Bayes ML.ppt
ย 
Microeconomics Theory Homework Help
Microeconomics Theory Homework HelpMicroeconomics Theory Homework Help
Microeconomics Theory Homework Help
ย 
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
ย 
2012ใ€€mdsp pr07 bayes decision
2012ใ€€mdsp pr07 bayes decision2012ใ€€mdsp pr07 bayes decision
2012ใ€€mdsp pr07 bayes decision
ย 
lecture4.ppt
lecture4.pptlecture4.ppt
lecture4.ppt
ย 
Maximum likelihood estimation of regularisation parameters in inverse problem...
Maximum likelihood estimation of regularisation parameters in inverse problem...Maximum likelihood estimation of regularisation parameters in inverse problem...
Maximum likelihood estimation of regularisation parameters in inverse problem...
ย 
01_AJMS_158_18_RA.pdf
01_AJMS_158_18_RA.pdf01_AJMS_158_18_RA.pdf
01_AJMS_158_18_RA.pdf
ย 
01_AJMS_158_18_RA.pdf
01_AJMS_158_18_RA.pdf01_AJMS_158_18_RA.pdf
01_AJMS_158_18_RA.pdf
ย 
Finance Enginering from Columbia.pdf
Finance Enginering from Columbia.pdfFinance Enginering from Columbia.pdf
Finance Enginering from Columbia.pdf
ย 
Unit II PPT.pptx
Unit II PPT.pptxUnit II PPT.pptx
Unit II PPT.pptx
ย 
Problems and solutions_4
Problems and solutions_4Problems and solutions_4
Problems and solutions_4
ย 
A Note on the Asymptotic Convergence of Bernoulli Distribution
A Note on the Asymptotic Convergence of Bernoulli DistributionA Note on the Asymptotic Convergence of Bernoulli Distribution
A Note on the Asymptotic Convergence of Bernoulli Distribution
ย 
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
ย 
Deep Learning Opening Workshop - ProxSARAH Algorithms for Stochastic Composit...
Deep Learning Opening Workshop - ProxSARAH Algorithms for Stochastic Composit...Deep Learning Opening Workshop - ProxSARAH Algorithms for Stochastic Composit...
Deep Learning Opening Workshop - ProxSARAH Algorithms for Stochastic Composit...
ย 
NUMERICAL METHODS
NUMERICAL METHODSNUMERICAL METHODS
NUMERICAL METHODS
ย 

More from VARUN KUMAR

E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
VARUN KUMAR
ย 

More from VARUN KUMAR (20)

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc Model
ย 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire Model
ย 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI Design
ย 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI Design
ย 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO System
ย 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
ย 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic Computing
ย 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of Action
ย 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of Action
ย 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic Age
ย 
Software as a Property
Software as a PropertySoftware as a Property
Software as a Property
ย 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal Polynomial
ย 
Patent Protection
Patent ProtectionPatent Protection
Patent Protection
ย 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy Law
ย 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and Software
ย 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data Trials
ย 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical Integration
ย 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and Controversy
ย 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's Integration
ย 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship
ย 

Recently uploaded

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
SUHANI PANDEY
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
sivaprakash250
ย 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
KreezheaRecto
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
ย 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
ย 

Recently uploaded (20)

Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
ย 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
ย 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
ย 
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
ย 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
ย 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
ย 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
ย 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
ย 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ย 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
ย 

Bayesian decesion theory

  • 1. Bayesian Decision Theory Dr.Varun Kumar Dr.Varun Kumar Lecture 4 1 / 13
  • 2. Outlines 1 What is Decision Theory ? 2 Usage of Decision of Theory 3 Mathematical Description of Bayeโ€™s Theorem: 4 References Dr.Varun Kumar Lecture 4 2 / 13
  • 3. What is Decision Theory ? Decision Theory : For solving a real world problem, adaptive decision capability makes the system more robust. The framework for making decisions under uncertainty. We can make rational decisions among multiple actions to minimize expected risk. Through learning association rules from data, a proper decision can be framed. scope: Dr.Varun Kumar Lecture 4 3 / 13
  • 4. Usage of Decision of Theory 1 Arti๏ฌcial Intelligence 2 Machine Learning 3 Pattern Recognition 4 Wireless Communication 5 Image Processing Dr.Varun Kumar Lecture 4 4 / 13
  • 5. Mathematical Description: Mathematical Description : Class โ†’ Family/Sports/Luxury โ†“ Features โ†’ Price/engine-capacity/Top-speed โ†“ Dimension Let two classes ฯ‰1 and ฯ‰2 denotes the accept and reject phenomenon. p(ฯ‰1) โ†’ Apriori probability. An event whose outcome falls in class ฯ‰1. p(ฯ‰2) โ†’ Apriori probability. An event whose outcome falls in class ฯ‰2. p(x|ฯ‰1) or p(x|ฯ‰2) โ†’ Class conditional probability. x โ†’ It is a feature. It depends on both class ฯ‰1 and ฯ‰2. It can co-exist either in class ฯ‰1 and ฯ‰2. Dr.Varun Kumar Lecture 4 5 / 13
  • 6. Continuedโ€“ Mathematical Description: p(ฯ‰1|x) โ†’ Aposteriori probability (depends on current input or future). p(ฯ‰i , x) โˆ€ i = 1, 2 โ†’ Joint probability Joint Probability: p(ฯ‰i , x) = p(ฯ‰i |x)p(x) = p(x|ฯ‰i )p(ฯ‰i ) Property of Joint probability: p(x) = 2 i=1 p(ฯ‰i , x) p(ฯ‰i |x) = p(x|ฯ‰i )p(ฯ‰i ) p(x) = p(x|ฯ‰i )p(ฯ‰i ) 2 i=1 p(ฯ‰i , x) p(ฯ‰1|x) > p(ฯ‰2|x) โ‡’ Decision will go in favor of class ฯ‰1. p(ฯ‰1|x) < p(ฯ‰2|x) โ‡’ Decision will go in favor of class ฯ‰2. Note: Aposteriori probability gives the true measure of any new sample that may fall in the class ฯ‰1 and ฯ‰2. Dr.Varun Kumar Lecture 4 6 / 13
  • 7. Continuedโ€“ Note: 1 If the relation between apriori probability is p(ฯ‰1) > p(ฯ‰2) โ‡’ Decision goes in favor of class ฯ‰1. This phenomenon is less likely. 2 Above relation does not address the actual scenario of the condition of class ฯ‰1 and ฯ‰2. 3 On the other side, if the relation between aposteriori probability is p(ฯ‰1|x) > p(ฯ‰2|x) โ‡’ decision will go in favor of class ฯ‰1. This phenomenon is more likely. 4 Random variable x is function of ฯ‰1 and ฯ‰2. x = f (ฯ‰1, ฯ‰2) Dr.Varun Kumar Lecture 4 7 / 13
  • 8. Probability of Error: Probability of Error: 0 2 4 6 8 10 12 x 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 p(ฯ‰i |x) ฯ‰1 ฯ‰2 x1 x0 x2 p(ฯ‰1 |x0 ) = p(ฯ‰2 |xo ) p(ฯ‰1 |x1 ) > p(ฯ‰2 |x1 ) p(ฯ‰1 |x2 ) < p(ฯ‰2 |x2 ) p(error) = โˆž โˆ’โˆž p(error, x)dx = โˆž โˆ’โˆž p(error|x)p(x)dx where, p(error|x) = min{p(ฯ‰1|x), p(ฯ‰2|x)} Dr.Varun Kumar Lecture 4 8 / 13
  • 9. Example Q. If a feature x is the essential part of two classes ฯ‰1 and ฯ‰2. If the PDF of this feature is exponentially distributed, such that p(x) = 1 2eโˆ’x/2 โˆ€ x > 0 and aposteriori PDF for ฯ‰1 and ฯ‰2 are 2eโˆ’2x โˆ€ x > 0 and 4eโˆ’4x โˆ€ x > 0, respectively. 1 Find the probability of error, when decision goes in favor of ฯ‰1. 2 Find the probability of error, when decision goes in favor of ฯ‰2. 3 At what value of feature x, the decision canโ€™t be performed. Ans. 1 According to question, p(x) = 1 2 eโˆ’x/2 โˆ€ x > 0, p(ฯ‰1|x) = 2eโˆ’2x โˆ€ x > 0 and p(ฯ‰2|x) = 4eโˆ’4x โˆ€ x > 0 . If decision goes in favor of ฯ‰1 then p(error/x) = p(ฯ‰2/x). p(error)|ฯ‰1 = โˆž 0 4eโˆ’4x 1 2 eโˆ’x/2 dx=4 9 โˆ€ x > 0 2 p(error)|ฯ‰2 = โˆž 0 2eโˆ’2x 1 2 eโˆ’x/2 dx=2 5 โˆ€ x > 0 3 when aposteriori PDF for class ฯ‰1 and ฯ‰2 are same,i.e 2eโˆ’2x = 4eโˆ’4x โ‡’ e2x = 2 โ‡’ x = 1 2 ln(2) Dr.Varun Kumar Lecture 4 9 / 13
  • 10. Multiple Class, Loss Function: Multiple Class/Actions/Features and Loss Function: {ฯ‰1, ฯ‰2, ...., ฯ‰c} โ‡’ Multiple class or state of nature {ฮฑ1, ฮฑ2, ...., ฮฑa} โ‡’ Multiple actions Loss Function: Instead of probability of error, we use the term loss function in case of multiple classes and actions. Mathematically, it can be expressed as L(ฮฑi /ฯ‰j ) = Lij โ‡’ A given action i is performed under jth state of nature โˆ€ i = 1, 2, ...a and j = 1, 2, ..., c X โ†’ d-dimensional feature vector, i.e. X = {x1, x2, ....xd } Dr.Varun Kumar Lecture 4 10 / 13
  • 11. Risk Function or Expected Loss: Risk Function or Expected Loss: In case of multiple classes and performed action, we require the expected loss for ๏ฌnal decision. Hence, we use risk function, i.e. denoted as R(ฮฑi |X) = c j=1 L(ฮฑi |ฯ‰j )p(ฯ‰j |X) โˆ€ i, j = 1, 2, ... R(ฮฑ1|X) = L11p(ฯ‰1|X) + L12p(ฯ‰2|X) R(ฮฑ2|X) = L21p(ฯ‰1|X) + L22p(ฯ‰2|X) If a risk relation exist in such a way that R(ฮฑ1|X) < R(ฮฑ2|X) or (L21 โˆ’ L11) +Ve p(ฯ‰1|X) > (L12 โˆ’ L22) +Ve p(ฯ‰2|X) Note: Above relation suggest that the decision goes in favor of class ฯ‰1. Dr.Varun Kumar Lecture 4 11 / 13
  • 12. Minimum Error Rate Classi๏ฌcation L(ฮฑi |ฯ‰j ) = 0 โˆ€ i = j โ‡’ No loss occur for performing the ith action correspond to ith class = 1 โˆ€ i = j Risk Function : R(ฮฑi |X) = c j=i p(ฯ‰j |X) = 1 โˆ’ p(ฯ‰i |X) Dr.Varun Kumar Lecture 4 12 / 13
  • 13. References E. Alpaydin, Introduction to machine learning. MIT press, 2020. T. M. Mitchell, The discipline of machine learning. Carnegie Mellon University, School of Computer Science, Machine Learning , 2006, vol. 9. J. Grus, Data science from scratch: ๏ฌrst principles with python. Oโ€™Reilly Media, 2019. Dr.Varun Kumar Lecture 4 13 / 13