Download Uncertainty and Probability Theory: Handling Uncertainty through Logic and Probability and more Essays (university) Artificial Intelligence in PDF only on Docsity!
Uncertainty
Outline
⢠Uncertainty
⢠Probability
⢠Syntax and Semantics
⢠Inference
⢠Independence and Bayes' Rule
Methods for handling uncertainty
- Default or nonmonotonic logic:
- Assume my car does not have a flat tire
- Assume A 25 works unless contradicted by evidence
- Issues: What assumptions are reasonable? How to handle contradiction?
- Rules with fudge factors:
- A 25 | ā0.04 get there on time
- Probability
- Model agent's degree of belief
- Given the available evidence,
- A 25 will get me there on time with probability 0.
Probability
Probabilistic assertions summarize effects of
- laziness: failure to enumerate exceptions, qualifications, etc.
- ignorance: lack of relevant facts, initial conditions, etc.
Subjective probability:
- Probabilities relate propositions to agent's own state of
knowledge
e.g., P(A 25 | no reported accidents) = 0.
These are not assertions about the world
( rather degree of belief)
Probabilities of propositions change with new evidence:
e.g., P(A 25 | no reported accidents, 5 a.m.) = 0.15 5
Probability Basics
Random Variable
Syntax
- Basic element: random variable
- Similar to propositional logic: possible worlds defined by assignment of values to random variables.
- Boolean random variables
e.g., Cavity (do I have a cavity?)
- Discrete random variables
e.g., Weather is one of < sunny,rainy,cloudy,snow > Domain values must be exhaustive and mutually exclusive
- Elementary proposition constructed by assignment of a value to a random variable: e.g., Weather = sunny , Cavity = false (abbreviated as ļ cavity )
- Complex propositions formed from elementary propositions and standard logical connectives e.g., Weather = sunny ļ Cavity = false
Syntax
⢠Atomic event: A complete specification of the
state of the world about which the agent is
uncertain
E.g., if the world consists of only two Boolean variables
Cavity and Toothache , then there are 4 distinct
atomic events:
Cavity = false ļ Toothache = false Cavity = false ļ Toothache = true Cavity = true ļ Toothache = false Cavity = true ļ Toothache = true
Prior probability
- Prior or unconditional probabilities of propositions
e.g., P( Cavity = true) = 0.1 and P( Weather = sunny) = 0. correspond to belief prior to arrival of any (new) evidence
- Probability distribution gives values for all possible assignments:
P ( Weather ) = <0.72,0.1,0.08,0.1> (normalized, i.e., sums to 1)
- Joint probability distribution for a set of random variables gives the probability of every atomic event on those random variables
P ( Weather,Cavity ) = a 4 Ć 2 matrix of values:
Weather = sunny rainy cloudy snow Cavity = true 0.144 0.02 0.016 0. Cavity = false 0.576 0.08 0.064 0. But these are independent ( usually ) :
- Recall that if X and Y are independent then :
- P(X=x,Y=y )= P (X =x) * P(Y = y) 13
Conditional probability
- Conditional or posterior probabilities
e.g., P( cavity | toothache ) = 0. i.e., given that toothache is all I know What is the probability of having a cavity given that the patient has a toothache?
- (Notation for conditional distributions:
P ( Cavity | Toothache ) = 2x2 matrix
- If we know more, e.g., cavity is also given, then we have
P( cavity | toothache,cavity ) = 1 Note: the less specific belief remains valid after more evidence arrives, but is not always useful
- New evidence may be irrelevant, allowing simplification, e.g.,
P( cavity | toothache, sunny ) = P( cavity | toothache ) = 0. ( this is because Cavities and weather are independent)
- This kind of inference, sanctioned by domain knowledge, is crucial
Inference by enumeration
- Start with the joint probability distribution:
- For any proposition Ļ, sum the atomic events where it is
true: P(Ļ) = Ī£Ļ:ĻāĻ P(Ļ)
Inference by enumeration
- Start with the joint probability distribution:
- For any proposition Ļ, sum the atomic events where it is
true: P(Ļ) = Ī£Ļ:ĻāĻ P(Ļ)
- P( toothache ) = 0.108 + 0.012 + 0.016 + 0.064 = 0.
Inference by enumeration
- Start with the joint probability distribution:
- Can also compute conditional probabilities:
P(ļ cavity | toothache ) = P(ļ cavity ļ toothache )
P( toothache )
Normalization
- Denominator can be viewed as a normalization constant α
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>
General idea: compute distribution on query variable by fixing evidence variables and summing over hidden variables