CPSC 322, Lecture 24Slide 1 Reasoning under Uncertainty: Intro to Probability Computer Science cpsc322, Lecture 24 (Textbook Chpt 6.1, 6.1.1) March, 15,

Slides:



Advertisements
Similar presentations
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Advertisements

Big Ideas in Cmput366. Search Blind Search State space representation Iterative deepening Heuristic Search A*, f(n)=g(n)+h(n), admissible heuristics Local.
Decision Theory: Sequential Decisions Computer Science cpsc322, Lecture 34 (Textbook Chpt 9.3) Nov, 28, 2012.
Department of Computer Science Undergraduate Events More
Reasoning under Uncertainty: Marginalization, Conditional Prob., and Bayes Computer Science cpsc322, Lecture 25 (Textbook Chpt ) Nov, 6, 2013.
CPSC 322, Lecture 2Slide 1 Representational Dimensions Computer Science cpsc322, Lecture 2 (Textbook Chpt1) Sept, 6, 2013.
Slide 1 Reasoning Under Uncertainty: More on BNets structure and construction Jim Little Nov (Textbook 6.3)
CPSC 502, Lecture 11Slide 1 Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 11 Oct, 18, 2011.
CPSC 322, Lecture 26Slide 1 Reasoning Under Uncertainty: Belief Networks Computer Science cpsc322, Lecture 27 (Textbook Chpt 6.3) March, 16, 2009.
CPSC 322, Lecture 21Slide 1 Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) February, 27, 2009.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Decision Theory: Single Stage Decisions Computer Science cpsc322, Lecture 33 (Textbook Chpt 9.2) March, 30, 2009.
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) January, 12, 2009.
Reasoning under Uncertainty: Conditional Prob., Bayes and Independence Computer Science cpsc322, Lecture 25 (Textbook Chpt ) March, 17, 2010.
CPSC 322, Lecture 18Slide 1 Planning: Heuristics and CSP Planning Computer Science cpsc322, Lecture 18 (Textbook Chpt 8) February, 12, 2010.
Marginal Independence and Conditional Independence Computer Science cpsc322, Lecture 26 (Textbook Chpt 6.1-2) March, 19, 2010.
CPSC 422 Review Of Probability Theory.
CPSC 322, Lecture 30Slide 1 Reasoning Under Uncertainty: Variable elimination Computer Science cpsc322, Lecture 30 (Textbook Chpt 6.4) March, 23, 2009.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
CPSC 322, Lecture 28Slide 1 Reasoning Under Uncertainty: More on BNets structure and construction Computer Science cpsc322, Lecture 28 (Textbook Chpt 6.3)
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
Ai in game programming it university of copenhagen Welcome to... the Crash Course Probability Theory Marco Loog.
CPSC 322, Lecture 31Slide 1 Probability and Time: Markov Models Computer Science cpsc322, Lecture 31 (Textbook Chpt 6.5) March, 25, 2009.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) March, 8, 2010.
CPSC 322, Lecture 32Slide 1 Probability and Time: Hidden Markov Models (HMMs) Computer Science cpsc322, Lecture 32 (Textbook Chpt 6.5) March, 27, 2009.
CPSC 322, Lecture 29Slide 1 Reasoning Under Uncertainty: Bnet Inference (Variable elimination) Computer Science cpsc322, Lecture 29 (Textbook Chpt 6.4)
CPSC 322, Lecture 35Slide 1 Value of Information and Control Computer Science cpsc322, Lecture 35 (Textbook Chpt 9.4) April, 14, 2010.
Uncertainty Chapter 13.
CPSC 322, Lecture 24Slide 1 Finish Logics… Reasoning under Uncertainty: Intro to Probability Computer Science cpsc322, Lecture 24 (Textbook Chpt 6.1, 6.1.1)
Planning: Wrap up CSP Planning. Logic: Intro CPSC 322 – Planning 3 Textbook §8.4, §5.1 March 2, 2011.
Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Jim Little UBC CS 322 – CSP October 22, 2014.
Computer Science CPSC 322 Lecture 3 AI Applications 1.
Computer Science CPSC 322 Lecture 26 Uncertainty and Probability (Ch. 6.1, 6.1.1, 6.1.3)
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes March 13, 2012.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 26, 2010.
Reasoning Under Uncertainty: Independence and Inference Jim Little Uncertainty 5 Nov 10, 2014 Textbook §6.3.1, 6.5, 6.5.1,
Department of Computer Science Undergraduate Events More
Logic: Intro & Propositional Definite Clause Logic CPSC 322 – Logic 1 Textbook §5.1 March 4, 2011.
CPSC 322, Lecture 32Slide 1 Probability and Time: Hidden Markov Models (HMMs) Computer Science cpsc322, Lecture 32 (Textbook Chpt 6.5.2) Nov, 25, 2013.
Reasoning Under Uncertainty: Conditioning, Bayes Rule & the Chain Rule Jim Little Uncertainty 2 Nov 3, 2014 Textbook §6.1.3.
Reasoning Under Uncertainty: Introduction to Probability CPSC 322 – Uncertainty 1 Textbook §6.1 March 16, 2011.
Uncertainty. Assumptions Inherent in Deductive Logic-based Systems All the assertions we wish to make and use are universally true. Observations of the.
Reasoning under Uncertainty: Conditional Prob., Bayes and Independence Computer Science cpsc322, Lecture 25 (Textbook Chpt ) Nov, 5, 2012.
Lecture 33, Bayesian Networks Wrap Up Intro to Decision Theory Slide 1.
CPSC 322, Lecture 18Slide 1 Planning: Heuristics and CSP Planning Jim Little UBC CS 322 October 15, 2014 Textbook §8.
Computer Science CPSC 322 Lecture 27 Conditioning Ch Slide 1.
CPSC 322, Lecture 19Slide 1 (finish Planning) Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt – 5.2) Oct,
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
Slide 1 Propositional Logic Intro, Syntax Jim Little UBC CS 322 – CSP October 17, 2014 Textbook § – 5.2.
CPSC 322, Lecture 2Slide 1 Representational Dimensions Computer Science cpsc322, Lecture 2 (Textbook Chpt1) Sept, 7, 2012.
CPSC 322, Lecture 26Slide 1 Reasoning Under Uncertainty: Belief Networks Computer Science cpsc322, Lecture 27 (Textbook Chpt 6.3) Nov, 13, 2013.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 30, 2013.
Computer Science cpsc322, Lecture 25
Reasoning Under Uncertainty: Belief Networks
Marginal Independence and Conditional Independence
Finish Logics… Reasoning under Uncertainty: Intro to Probability
Reasoning Under Uncertainty: Conditioning, Bayes Rule & Chain Rule
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 14
Decision Theory: Single Stage Decisions
Probability and Time: Markov Models
Probability and Time: Markov Models
Decision Theory: Single Stage Decisions
Probability and Time: Markov Models
Logic: Domain Modeling /Proofs + Computer Science cpsc322, Lecture 22
Probability and Time: Markov Models
Reasoning Under Uncertainty: Variable elimination
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 14
Presentation transcript:

CPSC 322, Lecture 24Slide 1 Reasoning under Uncertainty: Intro to Probability Computer Science cpsc322, Lecture 24 (Textbook Chpt 6.1, 6.1.1) March, 15, 2010

CPSC 322, Lecture 24Slide 2 To complete your Learning about Logics Review textbook and inked slides Practice Exercises on Vista Assignment 3 It will be out on Wed. It is due on the 29 th. Make sure you start working on it soon. One question requires you to use Datalog (with TopDown proof) in the AIspace. To become familiar with this applet download and play with the simple examples we saw in class (available at course webPage).

CPSC 322, Lecture 24Slide 3 Lecture Overview Big Transition Intro to Probability ….

CPSC 322, Lecture 2Slide 4 Big Picture: R&R systems Environment Problem Query Planning Deterministic Stochastic Search Arc Consistency Search Value Iteration Var. Elimination Constraint Satisfaction Logics STRIPS Belief Nets Vars + Constraints Decision Nets Markov Processes Var. Elimination Static Sequential Representation Reasoning Technique SLS

CPSC 322, Lecture 18Slide 5 Answering Query under Uncertainty Static Bayesian Network & Variable Elimination Dynamic Bayesian Network Probability Theory Hidden Markov Models spam filters Diagnostic Systems (e.g., medicine) Natural Language Processing Student Tracing in tutoring Systems Monitoring (e.g credit cards)

CPSC 322, Lecture 24Slide 6 Intro to Probability (Motivation) Will it rain in 10 days? Was it raining 98 days ago? Right now, how many people are in this room? in this building (DMP)? At UBC? ….Yesterday? AI agents (and humans  ) are not omniscient And the problem is not only predicting the future or “remembering” the past

CPSC 322, Lecture 24Slide 7 Intro to Probability (Key points) Are agents all ignorant/uncertain to the same degree? Should an agent act only when it is certain about relevant knowledge? (not acting usually has implications) So agents need to represent and reason about their ignorance/ uncertainty

CPSC 322, Lecture 24Slide 8 Probability as a formal measure of uncertainty/ignorance Belief in a proposition f (e.g., it is snowing outside, there are 31 people in this room) can be measured in terms of a number between 0 and 1 – this is the probability of f The probability f is 0 means that f is believed to be The probability f is 1 means that f is believed to be Using 0 and 1 is purely a convention.

CPSC 322, Lecture 24Slide 9 Random Variables A random variable is a variable like the ones we have seen in CSP and Planning, but the agent can be uncertain about its value. As usual The domain of a random variable X, written dom(X), is the set of values X can take values are mutually exclusive and exhaustive Examples (Boolean and discrete)

CPSC 322, Lecture 24Slide 10 Random Variables (cont’) Assignment X=x means X has value x A proposition is a Boolean formula made from assignments of values to variables Examples A tuple of random variables is a complex random variable with domain..

CPSC 322, Lecture 24Slide 11 Possible Worlds E.g., if we model only two Boolean variables Cavity and Toothache, then there are 4 distinct possible worlds: Cavity = T  Toothache = T Cavity = T  Toothache = F Cavity = F  Toothache = T Cavity = T  Toothache = T A possible world specifies an assignment to each random variable As usual, possible worlds are mutually exclusive and exhaustive w╞ X=x means variable X is assigned value x in world w cavitytoothache TT TF FT FF

CPSC 322, Lecture 24Slide 12 Semantics of Probability The belief of being in each possible world w can be expressed as a probability µ(w) For sure, I must be in one of them……so µ(w) for possible worlds generated by three Boolean variables: cavity, toothache, catch (the probe caches in the tooth) cavitytoothachecatch µ(w) TTT.108 TTF.012 TFT.072 TFF.008 FTT.016 FTF.064 FFT.144 FFF.576

CPSC 322, Lecture 24Slide 13 Probability of proposition cavitytoothachecatch µ(w) TTT.108 TTF.012 TFT.072 TFF.008 FTT.016 FTF.064 FFT.144 FFF.576 For any f, sum the prob. of the worlds where it is true: P(f )= Σ w ╞ f µ(w) What is the probability of a proposition f ? Ex: P(toothache = T) =

CPSC 322, Lecture 24Slide 14 Probability of proposition cavitytoothachecatch µ(w) TTT.108 TTF.012 TFT.072 TFF.008 FTT.016 FTF.064 FFT.144 FFF.576 For any f, sum the prob. of the worlds where it is true: P(f )= Σ w ╞ f µ(w) What is the probability of a proposition f ? P(cavity=T and toothache=F) =

CPSC 322, Lecture 24Slide 15 Probability of proposition cavitytoothachecatch µ(w) TTT.108 TTF.012 TFT.072 TFF.008 FTT.016 FTF.064 FFT.144 FFF.576 For any f, sum the prob. of the worlds where it is true: P(f )= Σ w ╞ f µ(w) What is the probability of a proposition f ? P(cavity or toothache) = = 0.28

CPSC 322, Lecture 24Slide 16 Probability Distributions A probability distribution P on a random variable X is a function dom(X) - > [0,1] such that x -> P(X=x) cavitytoothachecatch µ(w) TTT.108 TTF.012 TFT.072 TFF.008 FTT.016 FTF.064 FFT.144 FFF.576 cavity?

CPSC 322, Lecture 24Slide 17 Probability distribution (non binary) A probability distribution P on a random variable X is a function dom(X) - > [0,1] such that x -> P(X=x) Number of people in this room at this time

CPSC 322, Lecture 24Slide 18 Joint Probability Distributions When we have multiple random variables, their joint distribution is a probability distribution over the variable Cartesian product E.g., P( ) Think of a joint distribution over n variables as an n- dimensional table Each entry, indexed by X 1 = x 1,…., X n = x n corresponds to P(X 1 = x 1  ….  X n = x n ) The sum of entries across the whole table is 1

CPSC 322, Lecture 24Slide 19 Question If you have the joint of n variables. Can you compute the probability distribution for each variable?

CPSC 322, Lecture 4Slide 20 Learning Goals for today’s class You can: Define and give examples of random variables, their domains and probability distributions. Calculate the probability of a proposition f given µ(w) for the set of possible worlds. Define a joint probability distribution

CPSC 322, Lecture 24Slide 21 Next Class More probability theory Marginalization Conditional Probability Chain Rule Bayes' Rule Independence