SlideShare a Scribd company logo
1 of 26
Download to read offline
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

2.3 bayesian classification
2.3 bayesian classification2.3 bayesian classification
2.3 bayesian classificationKrish_ver2
 
AI 8 | Probability Basics, Bayes' Rule, Probability Distribution
AI 8 | Probability Basics, Bayes' Rule, Probability DistributionAI 8 | Probability Basics, Bayes' Rule, Probability Distribution
AI 8 | Probability Basics, Bayes' Rule, Probability DistributionMohammad Imam Hossain
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculusTianlu Wang
 
Uncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial IntelligenceUncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial IntelligenceExperfy
 
Naïve Bayes Classifier Algorithm.pptx
Naïve Bayes Classifier Algorithm.pptxNaïve Bayes Classifier Algorithm.pptx
Naïve Bayes Classifier Algorithm.pptxShubham Jaybhaye
 
Computational learning theory
Computational learning theoryComputational learning theory
Computational learning theoryswapnac12
 
Propositions - Discrete Structures
Propositions - Discrete Structures Propositions - Discrete Structures
Propositions - Discrete Structures Drishti Bhalla
 
resolution in the propositional calculus
resolution in the propositional calculusresolution in the propositional calculus
resolution in the propositional calculusAnju Kanjirathingal
 
Frequent itemset mining methods
Frequent itemset mining methodsFrequent itemset mining methods
Frequent itemset mining methodsProf.Nilesh Magar
 
Neural Networks: Radial Bases Functions (RBF)
Neural Networks: Radial Bases Functions (RBF)Neural Networks: Radial Bases Functions (RBF)
Neural Networks: Radial Bases Functions (RBF)Mostafa G. M. Mostafa
 
10 logic+programming+with+prolog
10 logic+programming+with+prolog10 logic+programming+with+prolog
10 logic+programming+with+prologbaran19901990
 

What's hot (20)

2.3 bayesian classification
2.3 bayesian classification2.3 bayesian classification
2.3 bayesian classification
 
AI 8 | Probability Basics, Bayes' Rule, Probability Distribution
AI 8 | Probability Basics, Bayes' Rule, Probability DistributionAI 8 | Probability Basics, Bayes' Rule, Probability Distribution
AI 8 | Probability Basics, Bayes' Rule, Probability Distribution
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculus
 
Uncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial IntelligenceUncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial Intelligence
 
Skip gram and cbow
Skip gram and cbowSkip gram and cbow
Skip gram and cbow
 
Naïve Bayes Classifier Algorithm.pptx
Naïve Bayes Classifier Algorithm.pptxNaïve Bayes Classifier Algorithm.pptx
Naïve Bayes Classifier Algorithm.pptx
 
07 approximate inference in bn
07 approximate inference in bn07 approximate inference in bn
07 approximate inference in bn
 
Module 4 part_1
Module 4 part_1Module 4 part_1
Module 4 part_1
 
Computational learning theory
Computational learning theoryComputational learning theory
Computational learning theory
 
Propositions - Discrete Structures
Propositions - Discrete Structures Propositions - Discrete Structures
Propositions - Discrete Structures
 
resolution in the propositional calculus
resolution in the propositional calculusresolution in the propositional calculus
resolution in the propositional calculus
 
CSC446: Pattern Recognition (LN6)
CSC446: Pattern Recognition (LN6)CSC446: Pattern Recognition (LN6)
CSC446: Pattern Recognition (LN6)
 
Bayes Belief Networks
Bayes Belief NetworksBayes Belief Networks
Bayes Belief Networks
 
Frequent itemset mining methods
Frequent itemset mining methodsFrequent itemset mining methods
Frequent itemset mining methods
 
Neural Networks: Radial Bases Functions (RBF)
Neural Networks: Radial Bases Functions (RBF)Neural Networks: Radial Bases Functions (RBF)
Neural Networks: Radial Bases Functions (RBF)
 
AI_6 Uncertainty
AI_6 Uncertainty AI_6 Uncertainty
AI_6 Uncertainty
 
M 1.5 rm
M 1.5 rmM 1.5 rm
M 1.5 rm
 
Kmp
KmpKmp
Kmp
 
Naive bayes
Naive bayesNaive bayes
Naive bayes
 
10 logic+programming+with+prolog
10 logic+programming+with+prolog10 logic+programming+with+prolog
10 logic+programming+with+prolog
 

Similar to AI_7 Statistical Reasoning

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.pdfcodewithmensah
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data AnalyticsSSaudia
 
LU2 Basic Probability
LU2 Basic ProbabilityLU2 Basic Probability
LU2 Basic Probabilityashikin654
 
April 3 2014 slides mayo
April 3 2014 slides mayoApril 3 2014 slides mayo
April 3 2014 slides mayojemille6
 
Lecture3 Applied Econometrics and Economic Modeling
Lecture3 Applied Econometrics and Economic ModelingLecture3 Applied Econometrics and Economic Modeling
Lecture3 Applied Econometrics and Economic Modelingstone55
 
Different types of distributions
Different types of distributionsDifferent types of distributions
Different types of distributionsRajaKrishnan M
 
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 contradictionKunyu He
 
Probability.pptx
Probability.pptxProbability.pptx
Probability.pptxmangalyap23
 
Probabilistic decision making
Probabilistic decision makingProbabilistic decision making
Probabilistic decision makingshri1984
 
Ppt unit-05-mbf103
Ppt unit-05-mbf103Ppt unit-05-mbf103
Ppt unit-05-mbf103Vibha Nayak
 

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
 
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
 
Ppt unit-05-mbf103
Ppt unit-05-mbf103Ppt unit-05-mbf103
Ppt unit-05-mbf103
 

More from Khushali Kathiriya

More from Khushali Kathiriya (20)

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
 
AI_ 8 Weak Slot and Filler Structure
AI_ 8 Weak Slot and Filler  StructureAI_ 8 Weak Slot and Filler  Structure
AI_ 8 Weak Slot and Filler Structure
 
AI_5 Resolution/ Channing
AI_5 Resolution/ ChanningAI_5 Resolution/ Channing
AI_5 Resolution/ Channing
 

Recently uploaded

Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 

Recently uploaded (20)

Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 

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