Docsity

Monster: A Deep Dive into Markov Decision Processes and Probability Theory - Prof. Mark Ri, Study notes of Computer Science

Partial preview of the text

Download Monster: A Deep Dive into Markov Decision Processes and Probability Theory - Prof. Mark Ri and more Study notes Computer Science in PDF only on Docsity!

Monster?

# Length Teeth Scary Flies Monster? 1 F F F F F 2 T F F F F 3 F F T F F 4 T F T F F 5 F F T T T 6 T T T F T 7 F T T T T 8 F T F F F 9 F F T F F 10 F F F T F 11 F T F T T 12 F T T F T

Monster?

Teeth Scary Flies T Flies Scary T F T F

F

T

T

T T

T

F

F F

F F

MDP

• U

(s

(s

) = right

• U

(s

(s

) = any

• U

(s

(s

) = up

• U

(s

(s

) = right

• U

(s

(s

) = up or right

• U

(s

(s

) = up

MDP

• The importance of the reward funcNon

• How is POMDP different, how is it the same?

Full Joint DistribuNon

B ~B B ~B

C 0.01 0.15 0.06 0.

~C 0.03 0.34 0.27 0.

A ~A

P(A or C) = P(A) + P(C) ‐ P(A and C) = (0.01 + 0.15 + 0.06 + 0.09) + (0.03 + 0.34) P(B | C) = P(B and C) / P(C) = (0.01 + 0.06) / (0.01 + 0.15 + 0.06 + 0.09)

Probability

• Axioms

• Bayes’ rule

• Product rule

• CondiNonal independence, how to detect it,

how to use it to your advantage, and why it’s

good

Bayesian Networks

P(a | c, d) = αP(a, c, d)

b

P(a) P(d|c) P(c|a,b) P(b)

= α [ P(a) P(d|c) P(c|a,b) P(b) +

P(a) P(d|c) P(c|a,~b) P(~b) ]

Planning

A C B C A B Init state Goal state Move (block, from, to) Pre : on(block, from) clear(block) clear(to) (block ≠ from ≠ to) Effect : on(block, to) ¬on(block, from) clear(from) ¬clear(to) Define the iniNal state using closed world assumpNon Define the goal state Show the successors of the iniNal state

  • Solve for on(c, a) first End On(c, a) On(a table) Start End On(c, a) On(a table) Start Move(c, table, a) On(c, table) Clear(c) Clear(a) End On(c, a) On(a table) Start Move(c, b, a) On(c, b) Clear(c)^ Clear(a)
  • Solve for clear(c)

End On(c, a) On(a table) Start Move(c, table, a) On(c, table) Clear(c) Clear(a) End On(c, a) On(a table) Start Move(c, table, a) On(c, table) Clear(c) Clear(a) Move(a, c, table) On(a, c) Clear(a) End On(c, a) On(a table) Start Move(c, table, a) On(c, table) Clear(c) Clear(a) Move(a, c, b) On(a, c) Clear(a) (^) Clear(b)

  • Solve for clear(c)
  • Solve for on(a, table)

Planning

• Does it mamer what order we choose

subgoals?

• Why advantages does planning have over

state‐space search?

FOL

• x [ ( E(x) ¬P(x) ) → y ( S(x,y) C(y) ) ]

• Eliminate:

  • x [ ¬( E(x) ¬P(x) ) y ( S(x,y) C(y) ) ]

• Move nots inward:

  • x [ ¬E(x) P(x) y ( S(x,y) C(y) ) ]

• Skolemize:

  • x [ ¬E(x) P(x) ( S(x,f(x)) C(f(x)) ) ]

• Drop universal:

  • ¬E(x) P(x) ( S(x,f(x)) C(f(x)) )

• Distribute ors over ands:

  • ( ¬E(x) P(x) S(x,f(x)) ) ( ¬E(x) P(x) C(f(x)) )

Other stuff

• Types of environments

– What techniques work in each

• Informed & uninformed search

• Adversarial search

• Constraint saNsfacNon

• ProposiNonal logic

– Difference between ZOL and FOL