SlideShare a Scribd company logo
Artificial Intelligence
Chap.5 Uncertainty
Prepared by:
Prof. Khushali B Kathiriya
Outline
 Acting under uncertainty
 Basic probability notation
 The axioms of probability
 Inference using full join distributions.
Prepared by: Prof. Khushali B Kathiriya
2
Artificial Intelligence
Acting under uncertainty
Prepared by:
Prof. Khushali B Kathiriya
Acting under uncertainty
 A agent working in real environment almost never has access to whole
truth about its environment. Therefore, agent needs to work under
uncertainty.
 With knowledge representation, we might write A→B, which means if A is
true then B is true, but consider a situation where we are not sure about
whether A is true or not then we cannot express this statement, this situation
is called uncertainty.
 But when agent works with uncertain knowledge then it might be
impossible to construct a complete and correct description of how its
actions will work.
Prepared by: Prof. Khushali B Kathiriya
6
Sources of Uncertainty
1. Uncertain input
2. Uncertain knowledge
3. Uncertain output
Prepared by: Prof. Khushali B Kathiriya
7
Sources of Uncertainty (Cont.)
1. Uncertain input
1. Missing data
2. Noisy data
2. Uncertain knowledge
1. Multiple causes leads to multiple effects
2. Incomplete knowledge
3. Theoretical ignorance
4. Practical ignorance
3. Uncertain output
1. Abduction, induction are uncertain
2. Default reasoning
3. Incomplete deduction inference
Prepared by: Prof. Khushali B Kathiriya
8
Sources of Uncertainty (Cont.)
 Uncertainty may be caused by problems with data such as:
1. Missing data
2. Incomplete data
3. Unreliable data
4. Inconsistence data
5. Imprecise data
6. Guess data
7. Default data
Prepared by: Prof. Khushali B Kathiriya
9
What's the solution for uncertainty?
 Probabilistic reasoning is a way of knowledge representation where we
apply the concept of probability to indicate the uncertainty in knowledge.
Prepared by: Prof. Khushali B Kathiriya
10
Artificial Intelligence
Basic probability notation
Prepared by:
Prof. Khushali B Kathiriya
Probability
 Probability can be defined as a chance that an uncertain event will occur.
It is the numerical measure of the likelihood that an event will occur. The
value of probability always remains between 0 and 1 that represent ideal
uncertainties.
Prepared by: Prof. Khushali B Kathiriya
12
Probability (Cont.)
Prepared by: Prof. Khushali B Kathiriya
13
Basic probability notation
1. Propositions
2. Atomic events
3. Unconditional (prior) probability
4. Conditional probability
5. Inference using full joint distribution
6. Independence
7. Bayes' rule
Prepared by: Prof. Khushali B Kathiriya
14
Basic probability notation
1. Propositions
 Complex proposition can be formed using standard logical
connectives.
 For example:
1. [(cavity=true) ^ (toothache = false)]
2. [(cavity ^ ~toothache)]
 Random variables:
 Random variables are used to represent the events and objects in the real
world.
 Random variables are like symbols in propositional logic.
 For example:
 P(a)= 1- P(~a)
Prepared by: Prof. Khushali B Kathiriya
15
Basic probability notation
2. Atomic event
 An atomic event is a complete specification of the state of the
world about which agent us uncertain.
 Example:
 If the world consists of cavity and toothache the there are four distinct
atomic events,
1. Cavity= false ^ toothache = True
2. Cavity= false ^ toothache = false
3. Cavity= true ^ toothache = false
4. Cavity= true ^ toothache = true
Prepared by: Prof. Khushali B Kathiriya
16
Basic probability notation
3. Unconditional probability
 It is the degree of belief accorded to a proposition in the absence of
any other information.
 Written as a P(a)
 Example
 Ram has cavity
 P(cavity=true)=0.1 OR P(cavity)=0.1
 When we want to express probabilities of all possible values of a random
variable, then vector of value is used.
 P(WEATHER)= <0.7,0.2, 0.08,0.02>
 P(WEATHER=sunny)=0.7
 P(WEATHER=rain)=0.2
 P(WEATHER=cloudy)=0.08
 P(WEATHER=cold)=0.02
Prepared by: Prof. Khushali B Kathiriya
17
Basic probability notation
4. Independence
 It Is relation between 2 different set of full joint distributions. It is also called as
marginal or absolute independence of the variable.
 Independence indicates that whether the 2 full joint distributions affects
probability each other.
 The weather is independent of once dental problem.
 P(toothache, catch, cavity, weather)= P(toothache, catch, cavity) P(weather)
Prepared by: Prof. Khushali B Kathiriya
18
Toothache
catch cavity
weather
Toothache
catch
cavity
weather
Decompose into
Artificial Intelligence
Basic probability notation
Prepared by:
Prof. Khushali B Kathiriya
Basic probability notation
5. Conditional Probability
 Conditional probability is a probability of occurring an event when another
event has already happened.
 Let's suppose, we want to calculate the event A when event B has already
occurred, "the probability of A under the conditions of B", it can be written
as:
 Where P(A ^ B)= Joint probability of a and B
 P(B)= Marginal probability of B.
Prepared by: Prof. Khushali B Kathiriya
20
Basic probability notation
5. Conditional Probability (Cont.)
 If the probability of A is given and we need to find the probability of B,
then it will be given as:
Prepared by: Prof. Khushali B Kathiriya
21
Basic probability notation
5. Conditional Probability (Cont.)
 𝑃(𝐴|𝐵) = ൗ
𝑃(𝐴 ^ 𝐵)
𝑃(𝐵)
 P(B) =30/100 = 0.3
 P(A ^ B) = 20/100 = 0.2
 P(A|B)=0.2/0.3 = 0.67
Prepared by: Prof. Khushali B Kathiriya
22
50 20 30
Basic probability notation
6. Inference using Full joint Distribution
 Probability inference means, computation from observed evidence of
posterior probabilities, for query propositions. The knowledge based
answering the query is represented as full joint distribution.
Prepared by: Prof. Khushali B Kathiriya
23
Toothache ~Toothache
Catch ~Catch Catch ~Catch
Cavity 0.108 0.012 0.072 0.008
~Cavity 0.016 0.064 0.144 0.576
Basic probability notation
6. Inference using Full joint Distribution
 One particular common task in inferencing is to extract the distribution over
some subset of variables or a single variable. This distribution over some
variables or single variable is called as marginal probability
(Marginalization/ Summing).
 P(Cavity) = 0.108+ 0.012 + 0.072 + 0.00 8
= 0.2
Prepared by: Prof. Khushali B Kathiriya
24
Basic probability notation
6. Inference using Full joint Distribution
 Computing probability of a cavity, given evidence of a toothache is as
follow:
 𝐏 𝐂𝐚𝐯𝐢𝐭𝐲 𝐓𝐨𝐨𝐭𝐡𝐚𝐜𝐡𝐞) = ൘
P(Cavity ^ Toothache)
P (Toothache)
= ൗ
0.108+ 0.012
0.108+ 0.012+0.016 + 0.064
= 0.6
 Just to check also compute the probability that there is no cavity goven
toothache is as follow:
 𝐏 ~ 𝐂𝐚𝐯𝐢𝐭𝐲 𝐓𝐨𝐨𝐭𝐡𝐚𝐜𝐡𝐞) = ൘
P(~ Cavity ^ Toothache)
P (Toothache)
= ൗ
0.016 + 0.064
0.108+ 0.012+0.016 + 0.064
= 0.4
Prepared by: Prof. Khushali B Kathiriya
25
Basic probability notation
6. Inference using Full joint Distribution
 Notice that in these 2 calculations the term 1/P (toothache) remains
constant, no matter which value of cavity we calculate. With this notation
we can write above two questions in one.
 P(Cavity | Toothache)
= ∞ P (Cavity, Toothache)
= ∞ [P(Cavity, Toothache, Catch) + P(~Cavity, Toothache, ~Catch)]
= ∞ [<0.108 , 0.016> + <0.012 , 0.064>]
= ∞ [<0.12, 0.08>] = [<0.6, 0.4>]
Prepared by: Prof. Khushali B Kathiriya
26
Artificial Intelligence
Bayes’ Rule
Prepared by:
Prof. Khushali B Kathiriya
Basic probability notation
7. Bayes’ Rule
 Bayes' theorem is also known as Bayes' rule, Bayes' law, or Bayesian
reasoning, which determines the probability of an event with uncertain
knowledge.
 In probability theory, it relates the conditional probability and marginal
probabilities of two random events.
 Bayes' theorem was named after the British mathematician Thomas Bayes.
The Bayesian inference is an application of Bayes' theorem, which is
fundamental to Bayesian statistics.
Prepared by: Prof. Khushali B Kathiriya
28
Refer E-notes for bays’ example

More Related Content

What's hot

AI: Planning and AI
AI: Planning and AIAI: Planning and AI
AI: Planning and AI
DataminingTools Inc
 
Forms of learning in ai
Forms of learning in aiForms of learning in ai
Forms of learning in ai
Robert Antony
 
Goal stack planning.ppt
Goal stack planning.pptGoal stack planning.ppt
Goal stack planning.ppt
SadagopanS
 
Inference in First-Order Logic
Inference in First-Order Logic Inference in First-Order Logic
Inference in First-Order Logic
Junya Tanaka
 
AI_ 3 & 4 Knowledge Representation issues
AI_ 3 & 4 Knowledge Representation issuesAI_ 3 & 4 Knowledge Representation issues
AI_ 3 & 4 Knowledge Representation issues
Khushali Kathiriya
 
Bayes Classification
Bayes ClassificationBayes Classification
Bayes Classification
sathish sak
 
Decision tree and random forest
Decision tree and random forestDecision tree and random forest
Decision tree and random forest
Lippo Group Digital
 
Bayesian networks
Bayesian networksBayesian networks
Bayesian networks
Orochi Krizalid
 
02 Machine Learning - Introduction probability
02 Machine Learning - Introduction probability02 Machine Learning - Introduction probability
02 Machine Learning - Introduction probability
Andres Mendez-Vazquez
 
Ch 9-1.Machine Learning: Symbol-based
Ch 9-1.Machine Learning: Symbol-basedCh 9-1.Machine Learning: Symbol-based
Ch 9-1.Machine Learning: Symbol-based
butest
 
Frames
FramesFrames
Frames
amitp26
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
harman kaur
 
Advanced regression and model selection
Advanced regression and model selectionAdvanced regression and model selection
Advanced regression and model selection
Ankit Jain
 
Probability Concept and Bayes Theorem
Probability Concept and Bayes TheoremProbability Concept and Bayes Theorem
Probability Concept and Bayes Theorem
CherryBerry2
 
Introduction to prolog
Introduction to prologIntroduction to prolog
Introduction to prolog
Harry Potter
 
Logical Agents
Logical AgentsLogical Agents
Logical Agents
Yasir Khan
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
Ashwini Yadav
 
First order logic
First order logicFirst order logic
First order logic
Rushdi Shams
 
Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree Learning
Milind Gokhale
 
Lecture 9 Markov decision process
Lecture 9 Markov decision processLecture 9 Markov decision process
Lecture 9 Markov decision process
VARUN KUMAR
 

What's hot (20)

AI: Planning and AI
AI: Planning and AIAI: Planning and AI
AI: Planning and AI
 
Forms of learning in ai
Forms of learning in aiForms of learning in ai
Forms of learning in ai
 
Goal stack planning.ppt
Goal stack planning.pptGoal stack planning.ppt
Goal stack planning.ppt
 
Inference in First-Order Logic
Inference in First-Order Logic Inference in First-Order Logic
Inference in First-Order Logic
 
AI_ 3 & 4 Knowledge Representation issues
AI_ 3 & 4 Knowledge Representation issuesAI_ 3 & 4 Knowledge Representation issues
AI_ 3 & 4 Knowledge Representation issues
 
Bayes Classification
Bayes ClassificationBayes Classification
Bayes Classification
 
Decision tree and random forest
Decision tree and random forestDecision tree and random forest
Decision tree and random forest
 
Bayesian networks
Bayesian networksBayesian networks
Bayesian networks
 
02 Machine Learning - Introduction probability
02 Machine Learning - Introduction probability02 Machine Learning - Introduction probability
02 Machine Learning - Introduction probability
 
Ch 9-1.Machine Learning: Symbol-based
Ch 9-1.Machine Learning: Symbol-basedCh 9-1.Machine Learning: Symbol-based
Ch 9-1.Machine Learning: Symbol-based
 
Frames
FramesFrames
Frames
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Advanced regression and model selection
Advanced regression and model selectionAdvanced regression and model selection
Advanced regression and model selection
 
Probability Concept and Bayes Theorem
Probability Concept and Bayes TheoremProbability Concept and Bayes Theorem
Probability Concept and Bayes Theorem
 
Introduction to prolog
Introduction to prologIntroduction to prolog
Introduction to prolog
 
Logical Agents
Logical AgentsLogical Agents
Logical Agents
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
First order logic
First order logicFirst order logic
First order logic
 
Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree Learning
 
Lecture 9 Markov decision process
Lecture 9 Markov decision processLecture 9 Markov decision process
Lecture 9 Markov decision process
 

Similar to AI_7 Statistical Reasoning

Uncertainty
UncertaintyUncertainty
Bayes rule (Bayes Law)
Bayes rule (Bayes Law)Bayes rule (Bayes Law)
Bayes rule (Bayes Law)
Tish997
 
Probability Theory.pdf
Probability Theory.pdfProbability Theory.pdf
Probability Theory.pdf
codewithmensah
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data Analytics
SSaudia
 
Bayesian statistics
Bayesian statisticsBayesian statistics
Bayesian statistics
Alberto Labarga
 
LU2 Basic Probability
LU2 Basic ProbabilityLU2 Basic Probability
LU2 Basic Probability
ashikin654
 
Basic concepts of probability
Basic concepts of probabilityBasic concepts of probability
Basic concepts of probability
Avjinder (Avi) Kaler
 
April 3 2014 slides mayo
April 3 2014 slides mayoApril 3 2014 slides mayo
April 3 2014 slides mayo
jemille6
 
Lecture3 Applied Econometrics and Economic Modeling
Lecture3 Applied Econometrics and Economic ModelingLecture3 Applied Econometrics and Economic Modeling
Lecture3 Applied Econometrics and Economic Modeling
stone55
 
Course notes1
Course notes1Course notes1
Course notes1
Von Adam Martinez
 
13-uncertainty.pdf
13-uncertainty.pdf13-uncertainty.pdf
13-uncertainty.pdf
ZainabMirza20
 
Propositions - Discrete Structures
Propositions - Discrete Structures Propositions - Discrete Structures
Propositions - Discrete Structures
Drishti Bhalla
 
tps5e_Ch5_3.ppt
tps5e_Ch5_3.ppttps5e_Ch5_3.ppt
tps5e_Ch5_3.ppt
JosephSPalileoJr
 
tps5e_Ch5_3.ppt
tps5e_Ch5_3.ppttps5e_Ch5_3.ppt
tps5e_Ch5_3.ppt
VenkateshPandiri4
 
Different types of distributions
Different types of distributionsDifferent types of distributions
Different types of distributions
RajaKrishnan M
 
Probability.pptx
Probability.pptxProbability.pptx
Probability.pptx
GABBARSINGH699271
 
Chapter10
Chapter10Chapter10
Chapter10
Richard Ferreria
 
TA session 1 direct proof and proof by contradiction
TA session 1 direct proof and proof by contradictionTA session 1 direct proof and proof by contradiction
TA session 1 direct proof and proof by contradiction
Kunyu He
 
Probability.pptx
Probability.pptxProbability.pptx
Probability.pptx
mangalyap23
 
Probabilistic decision making
Probabilistic decision makingProbabilistic decision making
Probabilistic decision making
shri1984
 

Similar to AI_7 Statistical Reasoning (20)

Uncertainty
UncertaintyUncertainty
Uncertainty
 
Bayes rule (Bayes Law)
Bayes rule (Bayes Law)Bayes rule (Bayes Law)
Bayes rule (Bayes Law)
 
Probability Theory.pdf
Probability Theory.pdfProbability Theory.pdf
Probability Theory.pdf
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data Analytics
 
Bayesian statistics
Bayesian statisticsBayesian statistics
Bayesian statistics
 
LU2 Basic Probability
LU2 Basic ProbabilityLU2 Basic Probability
LU2 Basic Probability
 
Basic concepts of probability
Basic concepts of probabilityBasic concepts of probability
Basic concepts of probability
 
April 3 2014 slides mayo
April 3 2014 slides mayoApril 3 2014 slides mayo
April 3 2014 slides mayo
 
Lecture3 Applied Econometrics and Economic Modeling
Lecture3 Applied Econometrics and Economic ModelingLecture3 Applied Econometrics and Economic Modeling
Lecture3 Applied Econometrics and Economic Modeling
 
Course notes1
Course notes1Course notes1
Course notes1
 
13-uncertainty.pdf
13-uncertainty.pdf13-uncertainty.pdf
13-uncertainty.pdf
 
Propositions - Discrete Structures
Propositions - Discrete Structures Propositions - Discrete Structures
Propositions - Discrete Structures
 
tps5e_Ch5_3.ppt
tps5e_Ch5_3.ppttps5e_Ch5_3.ppt
tps5e_Ch5_3.ppt
 
tps5e_Ch5_3.ppt
tps5e_Ch5_3.ppttps5e_Ch5_3.ppt
tps5e_Ch5_3.ppt
 
Different types of distributions
Different types of distributionsDifferent types of distributions
Different types of distributions
 
Probability.pptx
Probability.pptxProbability.pptx
Probability.pptx
 
Chapter10
Chapter10Chapter10
Chapter10
 
TA session 1 direct proof and proof by contradiction
TA session 1 direct proof and proof by contradictionTA session 1 direct proof and proof by contradiction
TA session 1 direct proof and proof by contradiction
 
Probability.pptx
Probability.pptxProbability.pptx
Probability.pptx
 
Probabilistic decision making
Probabilistic decision makingProbabilistic decision making
Probabilistic decision making
 

More from Khushali Kathiriya

Chap.3 Knowledge Representation Issues Chap.4 Inference in First Order Logic
Chap.3 Knowledge Representation  Issues  Chap.4 Inference in First Order  LogicChap.3 Knowledge Representation  Issues  Chap.4 Inference in First Order  Logic
Chap.3 Knowledge Representation Issues Chap.4 Inference in First Order Logic
Khushali Kathiriya
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
 
learning with complete data.pdf
learning with complete data.pdflearning with complete data.pdf
learning with complete data.pdf
Khushali Kathiriya
 
CV_Chap 6 Motion Representation
CV_Chap 6 Motion RepresentationCV_Chap 6 Motion Representation
CV_Chap 6 Motion Representation
Khushali Kathiriya
 
Cv_Chap 4 Segmentation
Cv_Chap 4 SegmentationCv_Chap 4 Segmentation
Cv_Chap 4 Segmentation
Khushali Kathiriya
 
CV_Chap 3 Features Detection
CV_Chap 3 Features DetectionCV_Chap 3 Features Detection
CV_Chap 3 Features Detection
Khushali Kathiriya
 
CV_2 Fourier_Transformation
CV_2 Fourier_Transformation CV_2 Fourier_Transformation
CV_2 Fourier_Transformation
Khushali Kathiriya
 
CV_2 Filtering_Example
CV_2 Filtering_ExampleCV_2 Filtering_Example
CV_2 Filtering_Example
Khushali Kathiriya
 
CV_2 Image Processing
CV_2 Image ProcessingCV_2 Image Processing
CV_2 Image Processing
Khushali Kathiriya
 
CV_1 Introduction of Computer Vision and its Application
CV_1 Introduction of Computer Vision and its ApplicationCV_1 Introduction of Computer Vision and its Application
CV_1 Introduction of Computer Vision and its Application
Khushali Kathiriya
 
ADA_2_Analysis of Algorithms
ADA_2_Analysis of AlgorithmsADA_2_Analysis of Algorithms
ADA_2_Analysis of Algorithms
Khushali Kathiriya
 
ADA_1 Introduction of Algorithm
ADA_1 Introduction of AlgorithmADA_1 Introduction of Algorithm
ADA_1 Introduction of Algorithm
Khushali Kathiriya
 
AI_ Backtracking in prolog
AI_ Backtracking in prologAI_ Backtracking in prolog
AI_ Backtracking in prolog
Khushali Kathiriya
 
AI_Cuts in prolog
AI_Cuts in prologAI_Cuts in prolog
AI_Cuts in prolog
Khushali Kathiriya
 
AI_Recursive search in prolog
AI_Recursive search in prologAI_Recursive search in prolog
AI_Recursive search in prolog
Khushali Kathiriya
 
AI_List in prolog
AI_List in prologAI_List in prolog
AI_List in prolog
Khushali Kathiriya
 
AI_11 Game playing
AI_11 Game playingAI_11 Game playing
AI_11 Game playing
Khushali Kathiriya
 
AI_ Bays theorem
AI_ Bays theoremAI_ Bays theorem
AI_ Bays theorem
Khushali Kathiriya
 
AI_Bayesian belief network
AI_Bayesian belief networkAI_Bayesian belief network
AI_Bayesian belief network
Khushali Kathiriya
 
AI_11 Understanding
AI_11  UnderstandingAI_11  Understanding
AI_11 Understanding
Khushali Kathiriya
 

More from Khushali Kathiriya (20)

Chap.3 Knowledge Representation Issues Chap.4 Inference in First Order Logic
Chap.3 Knowledge Representation  Issues  Chap.4 Inference in First Order  LogicChap.3 Knowledge Representation  Issues  Chap.4 Inference in First Order  Logic
Chap.3 Knowledge Representation Issues Chap.4 Inference in First Order Logic
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
learning with complete data.pdf
learning with complete data.pdflearning with complete data.pdf
learning with complete data.pdf
 
CV_Chap 6 Motion Representation
CV_Chap 6 Motion RepresentationCV_Chap 6 Motion Representation
CV_Chap 6 Motion Representation
 
Cv_Chap 4 Segmentation
Cv_Chap 4 SegmentationCv_Chap 4 Segmentation
Cv_Chap 4 Segmentation
 
CV_Chap 3 Features Detection
CV_Chap 3 Features DetectionCV_Chap 3 Features Detection
CV_Chap 3 Features Detection
 
CV_2 Fourier_Transformation
CV_2 Fourier_Transformation CV_2 Fourier_Transformation
CV_2 Fourier_Transformation
 
CV_2 Filtering_Example
CV_2 Filtering_ExampleCV_2 Filtering_Example
CV_2 Filtering_Example
 
CV_2 Image Processing
CV_2 Image ProcessingCV_2 Image Processing
CV_2 Image Processing
 
CV_1 Introduction of Computer Vision and its Application
CV_1 Introduction of Computer Vision and its ApplicationCV_1 Introduction of Computer Vision and its Application
CV_1 Introduction of Computer Vision and its Application
 
ADA_2_Analysis of Algorithms
ADA_2_Analysis of AlgorithmsADA_2_Analysis of Algorithms
ADA_2_Analysis of Algorithms
 
ADA_1 Introduction of Algorithm
ADA_1 Introduction of AlgorithmADA_1 Introduction of Algorithm
ADA_1 Introduction of Algorithm
 
AI_ Backtracking in prolog
AI_ Backtracking in prologAI_ Backtracking in prolog
AI_ Backtracking in prolog
 
AI_Cuts in prolog
AI_Cuts in prologAI_Cuts in prolog
AI_Cuts in prolog
 
AI_Recursive search in prolog
AI_Recursive search in prologAI_Recursive search in prolog
AI_Recursive search in prolog
 
AI_List in prolog
AI_List in prologAI_List in prolog
AI_List in prolog
 
AI_11 Game playing
AI_11 Game playingAI_11 Game playing
AI_11 Game playing
 
AI_ Bays theorem
AI_ Bays theoremAI_ Bays theorem
AI_ Bays theorem
 
AI_Bayesian belief network
AI_Bayesian belief networkAI_Bayesian belief network
AI_Bayesian belief network
 
AI_11 Understanding
AI_11  UnderstandingAI_11  Understanding
AI_11 Understanding
 

Recently uploaded

IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
gowrishankartb2005
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
Mahmoud Morsy
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
ElakkiaU
 
artificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptxartificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptx
GauravCar
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
AjmalKhan50578
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
VANDANAMOHANGOUDA
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 

Recently uploaded (20)

IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
 
artificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptxartificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptx
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 

AI_7 Statistical Reasoning

  • 2. Outline  Acting under uncertainty  Basic probability notation  The axioms of probability  Inference using full join distributions. Prepared by: Prof. Khushali B Kathiriya 2
  • 3. Artificial Intelligence Acting under uncertainty Prepared by: Prof. Khushali B Kathiriya
  • 4. Acting under uncertainty  A agent working in real environment almost never has access to whole truth about its environment. Therefore, agent needs to work under uncertainty.  With knowledge representation, we might write A→B, which means if A is true then B is true, but consider a situation where we are not sure about whether A is true or not then we cannot express this statement, this situation is called uncertainty.  But when agent works with uncertain knowledge then it might be impossible to construct a complete and correct description of how its actions will work. Prepared by: Prof. Khushali B Kathiriya 6
  • 5. Sources of Uncertainty 1. Uncertain input 2. Uncertain knowledge 3. Uncertain output Prepared by: Prof. Khushali B Kathiriya 7
  • 6. Sources of Uncertainty (Cont.) 1. Uncertain input 1. Missing data 2. Noisy data 2. Uncertain knowledge 1. Multiple causes leads to multiple effects 2. Incomplete knowledge 3. Theoretical ignorance 4. Practical ignorance 3. Uncertain output 1. Abduction, induction are uncertain 2. Default reasoning 3. Incomplete deduction inference Prepared by: Prof. Khushali B Kathiriya 8
  • 7. Sources of Uncertainty (Cont.)  Uncertainty may be caused by problems with data such as: 1. Missing data 2. Incomplete data 3. Unreliable data 4. Inconsistence data 5. Imprecise data 6. Guess data 7. Default data Prepared by: Prof. Khushali B Kathiriya 9
  • 8. What's the solution for uncertainty?  Probabilistic reasoning is a way of knowledge representation where we apply the concept of probability to indicate the uncertainty in knowledge. Prepared by: Prof. Khushali B Kathiriya 10
  • 9. Artificial Intelligence Basic probability notation Prepared by: Prof. Khushali B Kathiriya
  • 10. Probability  Probability can be defined as a chance that an uncertain event will occur. It is the numerical measure of the likelihood that an event will occur. The value of probability always remains between 0 and 1 that represent ideal uncertainties. Prepared by: Prof. Khushali B Kathiriya 12
  • 11. Probability (Cont.) Prepared by: Prof. Khushali B Kathiriya 13
  • 12. Basic probability notation 1. Propositions 2. Atomic events 3. Unconditional (prior) probability 4. Conditional probability 5. Inference using full joint distribution 6. Independence 7. Bayes' rule Prepared by: Prof. Khushali B Kathiriya 14
  • 13. Basic probability notation 1. Propositions  Complex proposition can be formed using standard logical connectives.  For example: 1. [(cavity=true) ^ (toothache = false)] 2. [(cavity ^ ~toothache)]  Random variables:  Random variables are used to represent the events and objects in the real world.  Random variables are like symbols in propositional logic.  For example:  P(a)= 1- P(~a) Prepared by: Prof. Khushali B Kathiriya 15
  • 14. Basic probability notation 2. Atomic event  An atomic event is a complete specification of the state of the world about which agent us uncertain.  Example:  If the world consists of cavity and toothache the there are four distinct atomic events, 1. Cavity= false ^ toothache = True 2. Cavity= false ^ toothache = false 3. Cavity= true ^ toothache = false 4. Cavity= true ^ toothache = true Prepared by: Prof. Khushali B Kathiriya 16
  • 15. Basic probability notation 3. Unconditional probability  It is the degree of belief accorded to a proposition in the absence of any other information.  Written as a P(a)  Example  Ram has cavity  P(cavity=true)=0.1 OR P(cavity)=0.1  When we want to express probabilities of all possible values of a random variable, then vector of value is used.  P(WEATHER)= <0.7,0.2, 0.08,0.02>  P(WEATHER=sunny)=0.7  P(WEATHER=rain)=0.2  P(WEATHER=cloudy)=0.08  P(WEATHER=cold)=0.02 Prepared by: Prof. Khushali B Kathiriya 17
  • 16. Basic probability notation 4. Independence  It Is relation between 2 different set of full joint distributions. It is also called as marginal or absolute independence of the variable.  Independence indicates that whether the 2 full joint distributions affects probability each other.  The weather is independent of once dental problem.  P(toothache, catch, cavity, weather)= P(toothache, catch, cavity) P(weather) Prepared by: Prof. Khushali B Kathiriya 18 Toothache catch cavity weather Toothache catch cavity weather Decompose into
  • 17. Artificial Intelligence Basic probability notation Prepared by: Prof. Khushali B Kathiriya
  • 18. Basic probability notation 5. Conditional Probability  Conditional probability is a probability of occurring an event when another event has already happened.  Let's suppose, we want to calculate the event A when event B has already occurred, "the probability of A under the conditions of B", it can be written as:  Where P(A ^ B)= Joint probability of a and B  P(B)= Marginal probability of B. Prepared by: Prof. Khushali B Kathiriya 20
  • 19. Basic probability notation 5. Conditional Probability (Cont.)  If the probability of A is given and we need to find the probability of B, then it will be given as: Prepared by: Prof. Khushali B Kathiriya 21
  • 20. Basic probability notation 5. Conditional Probability (Cont.)  𝑃(𝐴|𝐵) = ൗ 𝑃(𝐴 ^ 𝐵) 𝑃(𝐵)  P(B) =30/100 = 0.3  P(A ^ B) = 20/100 = 0.2  P(A|B)=0.2/0.3 = 0.67 Prepared by: Prof. Khushali B Kathiriya 22 50 20 30
  • 21. Basic probability notation 6. Inference using Full joint Distribution  Probability inference means, computation from observed evidence of posterior probabilities, for query propositions. The knowledge based answering the query is represented as full joint distribution. Prepared by: Prof. Khushali B Kathiriya 23 Toothache ~Toothache Catch ~Catch Catch ~Catch Cavity 0.108 0.012 0.072 0.008 ~Cavity 0.016 0.064 0.144 0.576
  • 22. Basic probability notation 6. Inference using Full joint Distribution  One particular common task in inferencing is to extract the distribution over some subset of variables or a single variable. This distribution over some variables or single variable is called as marginal probability (Marginalization/ Summing).  P(Cavity) = 0.108+ 0.012 + 0.072 + 0.00 8 = 0.2 Prepared by: Prof. Khushali B Kathiriya 24
  • 23. Basic probability notation 6. Inference using Full joint Distribution  Computing probability of a cavity, given evidence of a toothache is as follow:  𝐏 𝐂𝐚𝐯𝐢𝐭𝐲 𝐓𝐨𝐨𝐭𝐡𝐚𝐜𝐡𝐞) = ൘ P(Cavity ^ Toothache) P (Toothache) = ൗ 0.108+ 0.012 0.108+ 0.012+0.016 + 0.064 = 0.6  Just to check also compute the probability that there is no cavity goven toothache is as follow:  𝐏 ~ 𝐂𝐚𝐯𝐢𝐭𝐲 𝐓𝐨𝐨𝐭𝐡𝐚𝐜𝐡𝐞) = ൘ P(~ Cavity ^ Toothache) P (Toothache) = ൗ 0.016 + 0.064 0.108+ 0.012+0.016 + 0.064 = 0.4 Prepared by: Prof. Khushali B Kathiriya 25
  • 24. Basic probability notation 6. Inference using Full joint Distribution  Notice that in these 2 calculations the term 1/P (toothache) remains constant, no matter which value of cavity we calculate. With this notation we can write above two questions in one.  P(Cavity | Toothache) = ∞ P (Cavity, Toothache) = ∞ [P(Cavity, Toothache, Catch) + P(~Cavity, Toothache, ~Catch)] = ∞ [<0.108 , 0.016> + <0.012 , 0.064>] = ∞ [<0.12, 0.08>] = [<0.6, 0.4>] Prepared by: Prof. Khushali B Kathiriya 26
  • 25. Artificial Intelligence Bayes’ Rule Prepared by: Prof. Khushali B Kathiriya
  • 26. Basic probability notation 7. Bayes’ Rule  Bayes' theorem is also known as Bayes' rule, Bayes' law, or Bayesian reasoning, which determines the probability of an event with uncertain knowledge.  In probability theory, it relates the conditional probability and marginal probabilities of two random events.  Bayes' theorem was named after the British mathematician Thomas Bayes. The Bayesian inference is an application of Bayes' theorem, which is fundamental to Bayesian statistics. Prepared by: Prof. Khushali B Kathiriya 28 Refer E-notes for bays’ example