Announcements. CS 188: Artificial Intelligence Fall Today. Uncertainty. Random Variables. Probabilities. Lecture 14: Probability 10/17/2006

Similar documents
CS 188: Artificial Intelligence Fall Announcements

Today. CS 188: Artificial Intelligence Spring Probabilities. Uncertainty. Probabilistic Models. What Are Probabilities?

CS 188: Artificial Intelligence Fall 2009

Probability Hal Daumé III. Computer Science University of Maryland CS 421: Introduction to Artificial Intelligence 27 Mar 2012

CS 188: Artificial Intelligence. Our Status in CS188

CSE 473: Artificial Intelligence

Our Status. We re done with Part I Search and Planning!

CS 188: Artificial Intelligence Fall 2011

Math 151 Homework 2 Solutions (Winter 2015)

MODULE 5a and 5b (Stewart, Sections 12.2, 12.3) INTRO: In MATH 1114 vectors were written either as rows (a1, a2,..., an) or as columns a 1 a. ...

Partition Functions. Chris Clark July 18, 2006

PHYSICS 151 Notes for Online Lecture #20

CS188 Outline. CS 188: Artificial Intelligence. Today. Inference in Ghostbusters. Probability. We re done with Part I: Search and Planning!

Physics 121 Hour Exam #5 Solution

CS 188: Artificial Intelligence Fall 2008

CS 188: Artificial Intelligence Fall Probabilistic Models

Gauss Law. Physics 231 Lecture 2-1

C/CS/Phys C191 Shor s order (period) finding algorithm and factoring 11/12/14 Fall 2014 Lecture 22

Central Coverage Bayes Prediction Intervals for the Generalized Pareto Distribution

10/04/18. P [P(x)] 1 negl(n).

CS188 Outline. We re done with Part I: Search and Planning! Part II: Probabilistic Reasoning. Part III: Machine Learning

CS 188: Artificial Intelligence Fall 2009

CS 188: Artificial Intelligence Spring Announcements

10.2 Parametric Calculus

Particle Systems. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Lecture 8 - Gauss s Law

Ch 8 Alg 2 Note Sheet Key

CS 343: Artificial Intelligence

Probabilistic Models. CS 188: Artificial Intelligence Fall Independence. Example: Independence. Example: Independence? Conditional Independence

Uncertainty. Chapter 13

Our Status in CSE 5522

. Using our polar coordinate conversions, we could write a

PHYS 1444 Lecture #5

Review of the H-O model. Problem 1. Assume that the production functions in the standard H-O model are the following:

CS 188: Artificial Intelligence Spring Announcements

Λ b Polarization Measurement at ATLAS

Chapter 3: Theory of Modular Arithmetic 38

Rewriting Equations and Formulas. Write original equation.

6 PROBABILITY GENERATING FUNCTIONS

CS 343: Artificial Intelligence

Physics 111 Lecture 5 (Walker: 3.3-6) Vectors & Vector Math Motion Vectors Sept. 11, 2009

The Substring Search Problem

Bayesian networks. Soleymani. CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018

CS 5522: Artificial Intelligence II

Physics 181. Assignment 4

Stanford University CS259Q: Quantum Computing Handout 8 Luca Trevisan October 18, 2012

Question 1: The dipole

MATH 220: SECOND ORDER CONSTANT COEFFICIENT PDE. We consider second order constant coefficient scalar linear PDEs on R n. These have the form

Physics 11 Chapter 4: Forces and Newton s Laws of Motion. Problem Solving

Physics 2020, Spring 2005 Lab 5 page 1 of 8. Lab 5. Magnetism

Reinforcement Learning Wrap-up

PHZ 3113 Fall 2017 Homework #5, Due Friday, October 13

On a quantity that is analogous to potential and a theorem that relates to it

Physics 2A Chapter 10 - Moment of Inertia Fall 2018

arxiv: v1 [physics.pop-ph] 3 Jun 2013

Pattern Recognition and Machine Learning. Face Detection using Color Histograms

and the correct answer is D.

Episode 315: The inverse square law

Physics 107 TUTORIAL ASSIGNMENT #8

COORDINATE TRANSFORMATIONS - THE JACOBIAN DETERMINANT

On the Comparison of Stability Analysis with Phase Portrait for a Discrete Prey-Predator System

Information Retrieval Advanced IR models. Luca Bondi

Auchmuty High School Mathematics Department Advanced Higher Notes Teacher Version

The geometric construction of Ewald sphere and Bragg condition:

Variables and Formulas

AP-C WEP. h. Students should be able to recognize and solve problems that call for application both of conservation of energy and Newton s Laws.

Solution to Problem First, the firm minimizes the cost of the inputs: min wl + rk + sf

Multiple choice questions [100 points] As shown in the figure, a mass M is hanging by three massless strings from the ceiling of a room.

Non-Linear Dynamics Homework Solutions Week 2

A New Approach to General Relativity

Section 26 The Laws of Rotational Motion

PY208 Matter & Interactions Final Exam S2005

working pages for Paul Richards class notes; do not copy or circulate without permission from PGR 2004/11/3 10:50

Online Mathematics Competition Wednesday, November 30, 2016

V V The circumflex (^) tells us this is a unit vector

CHAPTER 25 ELECTRIC POTENTIAL

Probabilistic Models. Models describe how (a portion of) the world works

24.2 Naive Backtracking

A Tutorial on Multiple Integrals (for Natural Sciences / Computer Sciences Tripos Part IA Maths)

School of Electrical and Computer Engineering, Cornell University. ECE 303: Electromagnetic Fields and Waves. Fall 2007

FW Laboratory Exercise. Survival Estimation from Banded/Tagged Animals. Year No. i Tagged

AP Physics - Coulomb's Law

Δt The textbook chooses to say that the average velocity is

TRANSILVANIA UNIVERSITY OF BRASOV MECHANICAL ENGINEERING FACULTY DEPARTMENT OF MECHANICAL ENGINEERING ONLY FOR STUDENTS

To Feel a Force Chapter 7 Static equilibrium - torque and friction

Rigid Body Dynamics 2. CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2018

Today in Physics 218: radiation from moving charges

Section 8.2 Polar Coordinates

Math 301: The Erdős-Stone-Simonovitz Theorem and Extremal Numbers for Bipartite Graphs

Graphs of Sine and Cosine Functions

Circular Orbits. and g =

17.1 Electric Potential Energy. Equipotential Lines. PE = energy associated with an arrangement of objects that exert forces on each other

Lab 10: Newton s Second Law in Rotation

A Hartree-Fock Example Using Helium

Lecture 04: HFK Propagation Physical Optics II (Optical Sciences 330) (Updated: Friday, April 29, 2005, 8:05 PM) W.J. Dallas

Conflict Exam Issue. Sorry, Can t do it. Please see Kevin Pitts if you have any additional questions or concerns about this. Office is 231 Loomis

Physics 401. Electromagnetic Theory (Electrodynamics)

PHYS 172: Modern Mechanics. Fall Lecture 6 Fundamental Forces, Reciprocity Read

As is natural, our Aerospace Structures will be described in a Euclidean three-dimensional space R 3.

Complex Eigenvalues. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Transcription:

C 188: Atificial Intelligence all 2006 Lectue 14: oaility 10/17/2006 Announcements Gades: Check midtem, p1.1, and p1.2 gades in glookup Let us know if thee ae polems, so we can calculate useful peliminay gade estimates If we missed you, tell us you patne s login Reades equest: List patnes and logins on top of you eadme files un off you deug output oject 3.1 up: witten poaility polems, stat now! an Klein UC Bekeley Exta office hous: husday 2-3pm (if people use them) oday oaility Random Vaiales Joint and Conditional istiutions Bayes Rule Independence You ll need all this stuff fo the next few weeks, so make sue you go ove it! Uncetainty Geneal situation: Agent knows cetain things aout the state of the wold (e.g., senso eadings o symptoms) Agent needs to eason aout othe aspects (e.g. whee an oject is o what disease is pesent) Agent knows something aout how the known vaiales elate to the unknown vaiales oailistic easoning gives us a famewok fo managing ou eliefs and knowledge Random Vaiales A andom vaiale is some aspect of the wold aout which we have uncetainty R = Is it ing? = ow long will it take to dive to wok? L = Whee am I? We denote andom vaiales with capital lettes Like in a C, each andom vaiale has a domain R in {tue, false} in [0, ] L in possile locations oailities We geneally calculate conditional poailities (on time no epoted accidents) = 0.90 oailities change with new evidence: (on time no epoted accidents, 5 a.m.) = 0.95 (on time no epoted accidents, 5 a.m., ing) = 0.80 i.e., oseving evidence causes eliefs to e updated 1

oailistic Models istiutions on Random Vas Cs: Vaiales with domains Constts: map fom assignments to tue/false Ideally: only cetain vaiales diectly inteact oailistic models: (Random) vaiales with domains Joint distiutions: map fom assignments (o outcomes) to positive numes Nomalized: sum to 1.0 Ideally: only cetain vaiales diectly inteact Assignments ae called outcomes A A B B A joint distiution ove a set of andom vaiales: is a map fom assignments (o outcomes, o atomic events) to eals: ize of distiution if n vaiales with domain sizes d? Must oey: o all ut the smallest distiutions, impactical to wite out Examples Maginalization An event is a set E of assignments (o outcomes) om a joint distiution, we can calculate the poaility of any event oaility that it s AN ny? oaility that it s? oaility that it s OR ny? Maginalization (o summing out) is pojecting a joint distiution to a su-distiution ove suset of vaiales 0.6 Conditional oailities A conditional poaility is the poaility of an event given anothe event (usually evidence) Conditional oailities Conditional o posteio poailities: E.g., (cavity toothache) = 0.8 Given that toothache is all I know Notation fo conditional distiutions: (cavity toothache) = a single nume (Cavity, oothache) = 2x2 tale summing to 1 (Cavity oothache) = wo 2-element vectos, each summing to 1 If we know moe: (cavity toothache, catch) = 0.9 (cavity toothache, cavity) = 1 Note: the less specific elief emains valid afte moe evidence aives, ut is not always useful New evidence may e ielevant, allowing simplification: (cavity toothache, taffic) = (cavity toothache) = 0.8 his kind of infeence, guided y domain knowledge, is cucial 2

Conditioning Conditional poailities ae the atio of two poailities: Nomalization ick A tick to get the whole conditional distiution at once: Get the joint poailities fo each value of the quey vaiale Renomalize the esulting vecto elect Nomalize 5 0.75 he oduct Rule ometimes joint (X,Y) is easy to get ometimes easie to get conditional (X Y) Example: (, )? Lewis Caoll's ack olem ack contains a ed o lue token, 50/50 We add a ed token If we daw a ed token, what s the chance of dawing a second ed token? Vaiales: ={,} is the oiginal token ={,} is the fist token we daw Quey: (= =) R 0.8 0.9 0.7 0.08 0.72 4 0.06 1.0 0.0 Lewis Caoll's ack olem Now we have (,) Want (= =) Bayes Rule wo ways to facto a joint distiution ove two vaiales: hat s my ule! 0.0 5 5 ividing, we get: Why is this at all helpful? Lets us invet a conditional distiution Often the one conditional is ticky ut the othe simple oundation of many systems we ll see late (e.g. AR, M) In the unning fo most impotant AI equation! 3

Moe Bayes Rule Battleship iagnostic poaility fom causal poaility: Example: m is meningitis, s is stiff neck Note: posteio poaility of meningitis still vey small Note: you should still get stiff necks checked out! Why? Let s say we have two distiutions: io distiution ove ship locations: (L) ay this is unifom enso eading model: (R L) Given y some known lack ox E.g. (R = yellow L=(1,1)) = o now, assume the eading is always fo the lowe left cone We can calculate the posteio distiution ove ship locations using (conditionalized) Bayes ule: Infeence y Enumeation Infeence y Enumeation ()? ( winte)? ( winte, )? summe summe summe summe winte winte winte winte R 0 0 0 5 0 Geneal case: Evidence vaiales: Quey vaiales: idden vaiales: We want: ist, select the enties consistent with the evidence econd, sum out : inally, nomalize the emaining enties to conditionalize All vaiales Ovious polems: Wost-case time complexity O(d n ) pace complexity O(d n ) to stoe the joint distiution Independence wo vaiales ae independent if: Example: Independence N fai, independent coin flips: his says that thei joint distiution factos into a poduct two simple distiutions Independence is a modeling assumption Empiical joint distiutions: at est close to independent What could we assume fo {Weathe, affic, Cavity}? ow many paametes in the joint model? ow many paametes in the independent model? Independence is like something fom Cs: what? 4

Example: Independence? Conditional Independence Aitay joint distiutions can e pooly modeled y independent factos 0.6 (oothache,cavity,catch) has 2 3 = 8 enties (7 independent enties) If I have a cavity, the poaility that the poe catches in it doesn't depend on whethe I have a toothache: (catch toothache, cavity) = (catch cavity) he same independence holds if I don t have a cavity: (catch toothache, cavity) = (catch cavity) Catch is conditionally independent of oothache given Cavity: (Catch oothache, Cavity) = (Catch Cavity) Equivalent statements: (oothache Catch, Cavity) = (oothache Cavity) (oothache, Catch Cavity) = (oothache Cavity) (Catch Cavity) Conditional Independence Unconditional (asolute) independence is vey ae (why?) he Chain Rule II Can always facto any joint distiution as an incemental poduct of conditional distiutions Conditional independence is ou most asic and oust fom of knowledge aout uncetain envionments: Why? What aout this domain: affic Umella Raining What aout fie, smoke, alam? his actually claims nothing What ae the sizes of the tales we supply? ivial decomposition: he Chain Rule III With conditional independence: Comining Evidence Imagine we have two senso eadings We want to calculate the distiution ove ship locations given those osevations: List the poailities we ae given We fist calculate the non-conditional (joint) poailities we cae aout Conditional independence is ou most asic and oust fom of knowledge aout uncetain envionments Gaphical models (next class) will help us wok with independence hen we enomalize 5