Part 4: Markov Decision Processes

Size: px
Start display at page:

Download "Part 4: Markov Decision Processes"

Transcription

1 Markov decision processes c Vikram Krishnamurthy Part 4: Markov Decision Processes Aim: This part covers discrete time Markov Decision processes whose state is completely observed. The key ideas covered is stochastic dynamic programming. We apply stochastic dynamic programming to solve fully observed Markov decision processes (MDPs). Later we will tackle Partially Observed Markov Decision Processes (POMDPs). Issues such as general state spaces and measurability are omitted. Instead we focus on structural aspects of stochastic dynamic programming.

2 Markov decision processes c Vikram Krishnamurthy History Classical control (Freq. domain): Root locus, Bode diagrams, stability, PID, 1950s. State Space Theory - Kalman 1960s Modern Control (Time domain): State variable feedback, observability, controllability Optimal and Stochastic Control 1960s 1990s Dynamic Programming (Bellman) LQ and Markov Decision Processes (1960s) Partially observed Stochastic Control = Filtering + control Stochastic Adaptive Control (1980s & 1990s) Robust stochastic control H control (1990s) Scheduling control of computer networks, manufacturing systems (1990s). Neurodynamic programming (Re-inforcement learning) 1990s.

3 Markov decision processes c Vikram Krishnamurthy Applications Control in Telecom and Sensor Networks: Admission, Access and Power control wireless networks, computer networks. Sensor Scheduling and Optimal search. Robotic navigation and Intelligent Control. Process scheduling and manufacturing Aeronautics: Auto-pilots, missile guidance systems, satellite navigation systems

4 Markov decision processes c Vikram Krishnamurthy Fully Observed MDP 1. Discrete-time dynamic system: State {x k } X. For time k = 0,1,...,N evolves as Observations: y k = x k Control: u k U k (x k ). x k+1 = A k (x k,u k,w k ) x 0 π 0 ( ) Process Noise: w k iid 2. Policy class: Consider admissible policy π = {µ 0,...,µ N 1 } where u k = µ k (x k ) U k (x k ). 3. Cost function: additive cost function { J π (x 0 ) = E c N (x N )+ c N denotes terminal cost. N 1 k=0 Aim: Compute the optimal policy c k (x k,µ k (x k )) } (1) J (x 0 ) = min π Π J π(x 0 ) Π is set of admissible policies. J (x 0 ) is called optimal cost (value) function.

5 Markov decision processes c Vikram Krishnamurthy Terminology Finite Horizon: N finite. Fully observed: y k = x k Partially observed: y k = C k (x k,v k ) (next part) Infinite horizon: 1. Average cost: J π (x 0 ) = lim N { N 1 } 1 N E c(x k,µ(x k )) k=0 2 Discounted cost: ρ (0,1) { } J π (x 0 ) = E ρ k c(x k,µ(x k )) k=0 Remarks: 1. Average cost problems need more technical conditions and somewhat harder than discounted cost problems. 2. Stochastic dynamic optimization or Sequential decision making problem.

6 Markov decision processes c Vikram Krishnamurthy Application Examples 2.1 Finite state Markov Decision Processes (MDP) x k is a S state Markov chain. Transition prob: P ij (u) = P(x k+1 = j x k = i,u k = u), i,j {1,...,S}. Cost function as in (1). Numerous applications in OR, EE, Gambling theory. Benchmark Example: Machine (or Sensor) Replacement State: x k {0,1} machine state x k = 0 operational; x k = 1 failed. Control: u k {0,1}. u k = 0 keep machine; u k = 1 replace by new one Trans prob matrices: Let θ = P(x k+1 = 1 x k = 0). P(0) = 1 θ θ, P(1) = Cost: Minimize E{ N 1 k=0 c(x k,u k )} where c(0,0) = 0, c(1,0) = C, c(x,1) = R

7 Markov decision processes c Vikram Krishnamurthy Other fully observed problems 1. Linear Quadratic (LQ) control Fully observed problem x k+1 = A k x k +B k u k +w k { J π (x 0 ) = E Q k 0 and R k > 0. x N Q N x N + N 1 k=0 u kr k u k +x kq k x k } w k is zero mean finite variance white noise (not necessarily Gaussian) For detailed analysis and design examples, see Anderson and Moore. 1. Linear control methods have explicit solutions 2. Maybe applied to nonlinear systems operating on a small signal basis linearization 3. Selection of Q and R involve engineering judgment. 4. Partially observed problem - LQG control is widely used.

8 Markov decision processes c Vikram Krishnamurthy Optimal Stopping Problems (termination control) Asset Selling problem: You want to sell an asset. Offers w 0, w 1,..., w N 1 are iid. If offer k accepted: invest w k at fixed interest rate r. If you reject offer, wait till next offer. Rejected offers cannot be renewed Offer N 1 must be accepted if other offers were rejected. Aim: What is optimal policy for accepting and rejecting? Formulation: w k : offer value real valued (say). Control space: accept (sell) u 1, reject (dont sell) u 2 State space: reals + T (termination state) x k+1 = A k (x k,u k,w k ), k = 1,...,N 1 T if x k = T or x k T and u k = u 1 = w k otherwise { } Reward: E c N (x N )+ N 1 k=0 c k (x k,u k,w k ) x N if x N T c N (x N ) = 0 otherwise (1+r) N k x k if x k T c k (x k,u k,w k ) = 0 otherwise

9 Markov decision processes c Vikram Krishnamurthy Rational Thief problem: Thief can chose night k to retire with earnings x k or rob a house and bring w k. Thief is caught with probability p. If caught, lose all money. Assume w k are iid with mean w. Compute optimal policy over N nights. 3. Scheduling Problems: Job scheduling on single processor: N jobs to be done in sequential order. Job i requires time random T i. T i are iid. If job i is completed at time t, reward is ρ t R i, 0 < ρ < 1. Find schedule that maximizes total reward. See Bertsekas or Ross or Puterman for a wealth of examples. Journals such as IEEE Auto Control, Machine Learning, Annals of Operations Research.

10 Markov decision processes c Vikram Krishnamurthy Dynamic Programming (DP) 3.1 Principle of Optimality (Bellman 1962). An optimal policy has the property that whatever the initial state and initial decision are, the remaining decisions must constitute an optimal policy with regard to the state resulting from the first selection. a b 1 2 c If shortest distance from 1 to 2 is via a,b,c,d, then shortest distance from b to 2 is via c,d. DP is an algorithm which uses the principle of optimality to determine optimal policy. DP is widely used control, OR, discrete optimization. DP yields a functional equation of the form: J k (x) = min u [ c k (x,u)+ IR d ] J k+1 (A k (x,u,w))p(w)dw

11 Markov decision processes c Vikram Krishnamurthy * 2 2 * Figure 1: Deterministic Shortest path problem

12 Markov decision processes c Vikram Krishnamurthy DP for Shortest path problem Compute shortest distance and path from node 1 to 5. Let c ij = distance from node i to j. c 12 = 3, c 13 = 2, c 23 = 1, c 24 = 2, c 34 = 2, c 35 = 7, c 45 = 4. Define: J i = min dist from node i to 5. u i = next point in min path from i to 5. DP yields: J 5 = 0 J 4 = 4; u 4 = 5. J 3 = min u {4,5} c 3u +J u = min{c 34 +J 4,c 35 +J 5} = min{2+4,7} = 6; u 3 = 4. J 2 = min u {3,4} c 2u +J u = min{c 23 +J 3,c 24 +J 4} = min{1+6,2+4} = 6; u 2 = 4. J 1 = min{c 12 +J 2,c 13 +J 3} = min{3+6,2+6} = 8; u 1 = 3. Bactracking: shortest path from 1 to 5 is via 3,4.

13 Markov decision processes c Vikram Krishnamurthy Remarks on DP 1. We have worked backwards from node 5 to node 1. Called Backward DP Forward DP (FDP) yields identical result. 2. Minimum path problem arises in optimal network flow design, critical path design, Viterbi algorithm. 3. It is important to note that the cost (distance) between nodes is path independent. If it is path dependent, DP does not yield optimal soln. 4. Backtracking is a characteristic of DP. Life can only be understood going backwards; but it must be lived going forwards 5. We will focus on solving stochastic control problems via DP. (SDP) 6. Proof on principle of optimality is straightforward. (proof by contradiction).

14 Markov decision processes c Vikram Krishnamurthy Stochastic Dynamic Programming 4.1 Principle of Optimality Stochastic Control version: Consider fully observed problem with cost function { } N 1 J π (x 0 ) = E c N (x N )+ c k (x k,µ k (x k )) x 0 k=0 Let π = {µ 0,µ 1,...,µ N 1 } be optimal policy. Suppose state at time i is x i when using π. Consider subproblem of minimizing E { c N (x N )+ N 1 k=i c k (x k,µ k (x k )) x i } Then {µ i,µ i+1,...,µ N 1 } is optimal for this subproblem.

15 Markov decision processes c Vikram Krishnamurthy Soln via Stochastic Dynamic Programming Recall fully observed system is x k+1 = A k (x k,u k,w k ), k = 0,1,...,N 1 Aim: Determine optimal policy to minimize J π (x 0 ) { } N 1 J π (x 0 ) = E c N (x N )+ c k (x k,µ k (x k )) x 0 k=0 Outline: The solution consists of two stages: 1. Backwards SDP to determine optimal policy this is data independent (offline). Creates a lookup table for state x k it gives optimal u k. 2. Forward implementation of controller: Given x k pick optimal u k table lookup. k opt control if x k = e 1 opt control if x k = e 2 1 u 1,1 u 2,1 2 u 1,2 u 2,2.. N 1 u 1,N 1 u 2,N 1.

16 Markov decision processes c Vikram Krishnamurthy Given SDP solution x k+1 = A k (x k,u k,w k ), k = 0,1,...,N 1 { } N 1 J π (x 0 ) = E c N (x N )+ c k (x k,µ k (x k )) x 0 k=0 For every initial state x 0, the optimal cost J (x 0 ) = inf π J π (x 0 ) = J 0 (x 0 ). Here J 0 (x 0 ) is given by the last step of the backward DP algorithm for k = N,N 1,...,0: J N (x N ) = c N (x N ) (terminal cost) J k (x) = min [c k(x,u k )+E{J(x k+1 ) x k = x}], u k U k (x) [ ] = min c k (x,u)+ J k+1 (A k (x,u,w))p(w)dw u U k (x) IR [ µ k(x) = argmin ck (x,u)+ J k+1 (A k (x,u,w))p(w)dw ]. u k U k (x) J k (x) defn = min µ k,...,µ N E{ IR N c t (x t,u t ) x k = x} t=k is called value- to-go function.

17 Markov decision processes c Vikram Krishnamurthy Remarks on SDP Mathematical rigor: If w k D k where D k is countable, then above results are rigorous. J k (x) = min u U k (x) [ c k (x,u)+ w D k J k+1 (A k (x,u,w))p(w) Otherwise, the results are informal in that we have not specified the function spaces to which u, x and w belong to. For general case measurable selection theorems are required. (i) Need c k (x,u) to be a measurable function (ii) For min to replace inf need compactness and lower semi-continuity. General conditions (Hernandez Lerma & Lasserre). (a) U k (x) compact, c k (x, ) is lower semi-cont on U k (x) for all x X. (b) IR J k+1(a k (x,u,w))p(w)dw is lower semi-cont on U k (x) for every x X and every cont bounded function J k+1 on X. (does not work for LQ!) (a) can be replaced by inf-compactness of c k (x,u): For x X, r IR, {u U k (x) c k (x,u) r} compact. ]

18 Markov decision processes c Vikram Krishnamurthy Finite State Markov Decision Processes (MDP) Markov chain x k {1,2,...,S} P(x k+1 = j x k = i,u k = u) = P ij (u), i,j {1,...,S}. Aim: Minimize J π (x 0 ) = E { c N (x N )+ DP yields: For i = 1,2,...,S J N (i) = c N (i), N 1 k=0 c k (x k,µ k (x k )) J k (i) = min u k [c k (i,u k )+E{J(x k+1 ) x k = i}], = min u k = min u k k = N 1,N 2,...,1,0 [ ] S c k (i,u k )+ J k+1 (j)p(x k+1 = j x k = i,u k ), [ c k (i,u k )+ j=1 ] S J k+1 (j)p ij (u k ), j=1 }

19 Markov decision processes c Vikram Krishnamurthy In matrix vector notation: J k = min u [c k (u)+p(u)j k+1 ]

20 Markov decision processes c Vikram Krishnamurthy Lookup Table Dynamic programming creates a look-up table [ ] S J k (i) = min c k (i,u k )+ J k+1 (j)p ij (u k ) u k j=1 [ ] S u i,k = µ k(x k = i) defn = argmin c k (i,u k )+ J k+1 (j)p ij (u k ) u k Thus we have a look-up table j=1 k opt control if x k = 1 opt control if x k = 2 1 u 1,1 u 2,1 2 u 1,2 u 2,2 3 u 1,3 u 2,3... N 2 u 1,N 2 u 2,N 2 N 1 u 1,N 1 u 2,N 1 Remarks: (i) Requires O(N S) memory. (ii) If N = (infinite horizon), and if c k (x k,u k ) = ρ k c(x k,u k ), then entries u i,k in lookup table converge to values indpt of k. Steady (stationary) state policy; O(S) memory

21 Markov decision processes c Vikram Krishnamurthy Controller Implementation: 1. Set k = 0, Initial condition: x 0 = i. 2. Select optimal control as u x k,k = µ k(x k ) from DP lookup table Instantaneous cost = c k (x k,u x k,k ) 3. Markov chain evolves randomly according to P(u x k,k ). Generates new state x k If k = N 1, stop. Else, set k = k +1 and go to step 2. Markov chain prob P(u x k,k ) x k u x k,k Lookup table

22 Markov decision processes c Vikram Krishnamurthy Design Example: Machine Replacement Recall that x k {0,1} and u k {0,1}. P(0) = 1 θ θ, c(0) = c P(1) = 1 0, c(1) = R 1 0 R Cost: Minimize E{ N 1 k=0 c(x k,u k )} DP Soln for Control Policy: J N(1) = 0 J N (2) 0 For k = N 1,N 2,...,1,0 J k(1) = min J k (2) [c(u)+p(u)j k+1] u {0,1} = min (1 θ)j k+1(1)+j k+1 (2), R+J k+1(1) c+j k+1 (2) R+J k+1 (1)

23 Markov decision processes c Vikram Krishnamurthy Design Example: Continued e.g. if N = 4, θ = 0.1, c = 4, R = 3: k J k (1) J k (2) u 1,k u 2,k e.g. if N = 4, θ = 0.1, c = 4, R = 6: k J k (1) J k (2) u 1,k u 2,k

24 control input machine state state 0 = machine operational, state 1 = machine failed time Markov Decision Process: Machine Repair Example 0 = leave as is, 1 = repair machine Not profitable to repair after time time Markov decision processes c Vikram Krishnamurthy

25 Markov decision processes c Vikram Krishnamurthy Remarks: 1. Note DP minimizes expected cost. Actual cost of a sample path is a random variable which may be lower than the expected value. 2. In the machine repair example, there is a threshold after which it becomes infeasible to repair the machine.

26 Markov decision processes c Vikram Krishnamurthy Perspective 1. DP is a widely used optimization algorithm in: Stochastic control, combinatorial optimization, operations research. We have looked at Backward DP Forward DP is similar yields identical result e.g. Viterbi algorithm is a shortest path algorithm. 2. DP for fully observed stochastic control. LQ and MDP have explicit solutions. Most other problems do not. 3. We considered additive cost functions. Risk sensitive control considers exponential cost functions, see Elliott et.al. 4. Why feedback control is essential (next slide) Things not covered: 1. Engineering LQ control Anderson & Moore 2. Detailed mathematics Bertsekas & Shreve 3. Numerical approximations for solving DP. 4. Properties of value-to-go function Ross

27 Markov decision processes c Vikram Krishnamurthy Why Feedback Control is essential 1. Open loop systems are a special case of closed loop systems for both deterministic and stochastic systems 2. In deterministic systems, for every closed loop systems, there is an equivalent open loop system, Example: Linear case. 3. For stochastic systems closed loop (feedback) and open loop systems are not equivalent. We show that for a stochastic system: (i) no open loop system has the same properties of a feedback system (ii) Feedback always achieves a better cost that open loop in optimal control.

28 Markov decision processes c Vikram Krishnamurthy Feedback is essential in stochastic systems Consider stochastic system x k+1 = x k +u k +w k where x 0, w k are white noise with variance σ 2. Closed loop: Suppose feedback is u k = x k. Then x k+1 = w k Open loop: x k+1 = x k +u k +w k = x 0 + k m=0 u m + k m=0 w m So mean is E{x k } = k 1 m=0 u m and variance is E{x 2 0}+ m E{w2 m} = (k +1)σ 2 No open loop system can produce x k = w k 1. Cost: Suppose J = E{ N k=0 x2 k }. Closed loop: J = E{x n w2 k } = (k +1)σ2 Open loop: J = k E{(x 0 + k m u m + k m w m) 2 } (k +1)(k +2)σ2 1 2 Feedback is superior to any open loop control

29 Markov decision processes c Vikram Krishnamurthy Infinite horizon results x k+1 = A(x k,u k,w k ), k = 0,1,..., { N 1 } J π (x 0 ) = lim E ρ k c(x k,µ k (x k )) N 0 < ρ < 1 is discount factor. k=0 Admissible policies: π = {µ 0,µ 1,...,} where u k = µ k (x k ). Optimal cost is J (x) = min π Π J π(x) Define class of stationary policies: π = {µ,µ,...}. To simplify notation call J π as J µ. Require J π (x 0 ) to be finite. Examples include (i) Stochastic shortest path: ρ = 1, cost free termination state. Termination is inevitable. (ii) Discounted problems with bounded cost c(x, u) M We will only consider discounted problems. Then { } J π (x 0 ) = E ρ k c(x k,µ k (x k )) k=0

30 Markov decision processes c Vikram Krishnamurthy DP for finite horizon version Consider minimizing cost { E ρ n J(x N )+ N 1 k=0 ρ k c(x k,u k ) } DP recursion yields for k = 0,...,N 1: J k (x) = min u E{ρ N k c(x,u)+j k+1 (A(x,u,w))} initialized by J N (x) = ρ N J(x). Define V k (x) = J N k(x) ρ N k Then DP can be written for k = 0,1,...,N 1 as V k+1 (x) = min u E{c(x,u)+ρV k (A(x,u,w))} 8.2 Main Result lim k V k (x) = V (x) where V is optimal value function for infinite horizon. Bellman s equation holds V (x) = min u E{c(x,u)+ρV (A(x,u,w))}

31 Markov decision processes c Vikram Krishnamurthy Define the operator (TV)(x) defn = min u E{c(x,u)+ρV(A(x,u,w))} for any V(x). Then Bellman s eqn is: TV = V T is monotonic: Suppose V and V are s.t. V(x) V (x) for all x. Then (TV)(x) (TV )(x) x Define also for any stationary policy µ (T µ )V(x) = E{c(x,µ(x))+ρV(A(x,µ(x),w))} Result: (Bertsekas Vol.2, pg.12.) For every stationary policy µ, the associated cost satisfies V µ = T µ V µ This result means: For any stationary policy µ, the policy cost V µ can be computed by solving V µ = T µ V µ. In finite state MDP case, V µ can be computed exactly since T µ V µ = c(µ)+ρp(µ)v µ. Thus V µ = c(µ)+ρp(µ)v µ = [I ρp(µ)]v µ = c(µ) Note: Bellman s equation is a functional equation. It can rarely be solved explicitly.

32 Markov decision processes c Vikram Krishnamurthy Infinite Horizon MDPs: Numerical methods Bellman s equation (V = TV ) for finite state MDP is [ ] S V (i) = min c(i,u)+ρ P ij (u)v (j) u In vector notation j=1 V = min u [c(u)+ρp(u)v ] where V and c(u) are S dim vectors. Recall optimal policy µ for MDP allocates u k = µ (x k ), i.e. we need to construct the one row lookup table k opt control if x k = 1 opt control if x k = 2 Any k u 1 u 2 1. Linear Programming: Since lim N T N V = V for all V, we have using monotonicity of T: V TV = V V = TV Thus V is largest V that satisfies V TV. maxλ 1 s.t. λ c(u)+ρp(u)λ LP with S U constraints. In queuing problems (that satisfy conservation laws ) these form a polymatroid.

33 Markov decision processes c Vikram Krishnamurthy Value Iteration: Successive iteration method for solving V = TV, i.e., a finite horizon approximation. Initialize V 0. Then successive approximation procedure is V k+1 = TV k i.e. V k+1 = min u [c(u)+ρp(u)v k ] Contraction mapping type proof of convergence One can show V k V 2ρ 1 ρ V k V k 1 3. Policy Iteration: For any stationary policy µ recall T µ V = [c(u)+ρp(u)v] for any V. Recall cost function corresponding to µ, i.e., V µ satisfies T µ V µ = V µ This means that for any stationary policy µ we can solve for V µ : V µ = c(µ)+ρp(µ)v µ = (I ρp(µ))v µ = c(µ) Policy Iteration algorithm: Initialize µ 0 arbitrarily Iterations: (i) Policy evaluation: V µ k is solution of linear equation [I ρp(µ k )]V µ k = c(µ k ) (ii) Policy improvement : u k+1 = min u [c(u)+ρp(u)v k ]

34 Markov decision processes c Vikram Krishnamurthy Structural Results When is optimal policy monotone in state? Two concepts: submodularity, stochastic orders. Submodular: φ(x,u) is submodular in (x,u) if φ(x,u+1) φ(x,u) φ(x+1,u+1) φ(x+1,u). Examples: The following are submodular in (x, u) (i): φ(x,u) = xu. (ii) φ(x) or φ(u) is trivially submodular. (iii) max(x, u) (iv) The sum of submodular functions is submodular. Theorem [Topkis] Consider φ : X U IR. If φ(x,u) is submodular, then u (x) = argmin u φ(x,u) x. First order stochastic dominance: Then π 1 first order stochastically dominates π 2 if X i=j π 1(i) X i=j π 2(i) for j = 1,...,X. This is denoted as π 1 s π 2 or π 2 s π 1. Example: π 1 = [0.3, 0.2, 0.5], π 2 = [0.2, 0.4, 0.4] not orderable. Theorem: Let V denote the set of all X dimensional vectors v with nondecreasing components, i.e., v 1 v 2 v X. Then π 1 s π 2 iff for all v V, v π 1 v π 2.

35 Markov decision processes c Vikram Krishnamurthy Monotone Policies (A1) c(x,u,k) x. (A2) P x (u) s P x+1 (u). (A3) c(x,u,k) is submodular in (x,u) That is: c(x,u+1,k) c(x,u,k) x (A4) P(u) is tail supermodular: j l (P xj(u+1) P xj (u)) is increasing in x. Theorem: Assume that a finite horizon Markov decision process satisfies conditions (A1), (A2), (A3) and (A4). Then µ k(x) x. Same proof applies for infinite horizon discounted cost and average cost.

36 Markov decision processes c Vikram Krishnamurthy Q k (i,u) defn = c(i,u,k)+j k+1p i (u) J k (i) = min Q k(i,u), µ k(i) = argminq k (i,u) u U u U [ ] where J k+1 = J k+1 (1),...,J k+1 (X) Step 1. Assuming (A1) and (A2), Q k (i,u) i. Therefore J k (i) i. Step 2. Assuming (A3) and (A4), Q k (i,u) is submodular. Therefore µ k(i) = argmin u U Q k (i,u) i. Step 1: Use mathematical induction. Q N (i,u) = c(i,n) i by (A1). Suppose Q k+1 (j,ū) j. J k+1 (j) = minūq k+1 (j,ū) j. Next P i (u) r P i+1 (u) by (A2). So J k+1p i (u) J k+1p i+1 (u). Finally c(i,u,k) i (A1), c(i,u,k)+j k+1p i (u) c(i+1,u,k)+j k+1p i+1 (u). Step 2: Consider Q k (i,u) = c(i,u,k)+j k+1p i (u). By (A3), c(i, u, k) is submodular. Applying (A4), since elements of J k+1 are decreasing, J k+1p i (u) is submodular.

37 Markov decision processes c Vikram Krishnamurthy How does Optimal Cost depend on Transition Matrix Consider two MDPs with identical costs but different transition matrices P and P. (A1) c(x,u,k) x. (A2) P x (u) s P x+1 (u). (A5) P x (u) s Px (u) x. Theorem. [Muller 1997]: Optimal cost incurred by policy µ (x;p) is smaller than that incurred by µ (x; P). Proof: Q k (i,u) = c(i,u,k)+j k+1p i (u) Q k (i,u) = c(i,u,k)+ J k+1 P i (u) The proof is by induction. Clearly J N (i) = J N (i) = c(i,n) for all i X. Suppose J k+1 (i) J k+1 (i) for all i X. Therefore J k+1p i (u) J k+1p i (u). By (A1), (A2), Jk+1 (i) is decreasing in i. By (A5), P i r Pi. Therefore J k+1p i J k+1 P i. So c(i,u,k)+j k+1p i (u) c(i,u,k)+ J k+1 P i (u) or equivalently, Q k (i,u) Q k (i,u).

38 Markov decision processes c Vikram Krishnamurthy Neuro-Dynamic Programming Methods The next two methods are simulation based. That is, although parameters are unknown, system can be simulated or observed under any choice of actions. They form the core of re-inforcement learning or neuro-dynamic programming. The key idea in them is the Robbin s Munro stochastic approximation algorithm: Result: Robbins Munro Algorithm. Aim: Solve the algebraic equation X = E{H(X)} where H is a noisy function. That is we can measure samples Y n = H(X n ). Algorithm X n+1 = X n +γ n (Y n X n ) Key idea behind stochastic approx is to replace E{H(X)} by the sample Y n = H(X n ). Remarks: The implicit assumption is that E{H(X)} cannot be computed in closed form this is true when the density function is unknown. Step size γ n = 1/n typically. Stochastic approximations are widely used in adaptive signal processing e.g. adaptive filtering algorithms such as LMS and RLS algorithm. Recursive EM algorithm covered earlier is another example.

39 Markov decision processes c Vikram Krishnamurthy Q-learning: Simulation based. Define Q-factor [ ] S Q(i,u) = c(i,u)+ρ P ij (u)v (j) j=1 From Bellman s equation this yields [ ] S Q(i,u) = c(i,u)+ρ P ij (u)minq(j,u ) u j=1 The trick above expresses Q as E{min( )}: [ ] Q(i,u) = c(i,u)+ρe{minq(x k+1,u ) x k = i} u Hence can be solved via Robbins-Munro algorithm: Q k+1 (i,u) = Q k (i,u) ( ( +γ c(i,u)+ρmin Qk (j,u ) ) ) Q k (i,u) u Note: j is generated from (i,u) via simulation P ij (u). Remarks: (i) The above recursion does not require knowledge of P(u). (ii) Q learning is merely a stochastic approx algorithm! (iii) NDP is widely used in Artificial intelligence where it is called Reinforcement learning. 5. Temporal difference methods: These can be used to compute by simulation the cost of a policy (details omitted).

40 Markov decision processes c Vikram Krishnamurthy Summary and Extensions Stochastic Dynamic programming (SDP) involves solving a functional equation. This yields a (possibly infinite dimensional) lookup table. There are 2 types of problems considered (i) Finite horizon (ii) Infinite horizon steady state controller. For infinite horizon finite state MDPs there are several numerical algorithms: e.g. Policy iteration, value iteration, linear programming, neurodynamic programming. We have not covered cont-time finite state MDPs. These arise in control of queuing systems e.g. telecomms. By a process called uniformization, a cont-mdp can be covered to an equivalent discrete-time MDP. A generalization of cont-time MDPs are semi-markov Decision processes. These are widely studied in discrete event systems. Finally, MDPs with constraints can also be considered. Often the optimal policy is randomized.

Stochastic Optimal Control

Stochastic Optimal Control Stochastic Optimal Control Lecturer: Eilyan Bitar, Cornell ECE Scribe: Kevin Kircher, Cornell MAE These notes summarize some of the material from ECE 5555 (Stochastic Systems) at Cornell in the fall of

More information

Sequential Decision Making

Sequential Decision Making Sequential Decision Making Dynamic programming Christos Dimitrakakis Intelligent Autonomous Systems, IvI, University of Amsterdam, The Netherlands March 18, 2008 Introduction Some examples Dynamic programming

More information

Dynamic Programming and Reinforcement Learning

Dynamic Programming and Reinforcement Learning Dynamic Programming and Reinforcement Learning Daniel Russo Columbia Business School Decision Risk and Operations Division Fall, 2017 Daniel Russo (Columbia) Fall 2017 1 / 34 Supervised Machine Learning

More information

Elif Özge Özdamar T Reinforcement Learning - Theory and Applications February 14, 2006

Elif Özge Özdamar T Reinforcement Learning - Theory and Applications February 14, 2006 On the convergence of Q-learning Elif Özge Özdamar elif.ozdamar@helsinki.fi T-61.6020 Reinforcement Learning - Theory and Applications February 14, 2006 the covergence of stochastic iterative algorithms

More information

Dynamic Programming: An overview. 1 Preliminaries: The basic principle underlying dynamic programming

Dynamic Programming: An overview. 1 Preliminaries: The basic principle underlying dynamic programming Dynamic Programming: An overview These notes summarize some key properties of the Dynamic Programming principle to optimize a function or cost that depends on an interval or stages. This plays a key role

More information

Handout 4: Deterministic Systems and the Shortest Path Problem

Handout 4: Deterministic Systems and the Shortest Path Problem SEEM 3470: Dynamic Optimization and Applications 2013 14 Second Term Handout 4: Deterministic Systems and the Shortest Path Problem Instructor: Shiqian Ma January 27, 2014 Suggested Reading: Bertsekas

More information

Lecture 17: More on Markov Decision Processes. Reinforcement learning

Lecture 17: More on Markov Decision Processes. Reinforcement learning Lecture 17: More on Markov Decision Processes. Reinforcement learning Learning a model: maximum likelihood Learning a value function directly Monte Carlo Temporal-difference (TD) learning COMP-424, Lecture

More information

Introduction to Dynamic Programming

Introduction to Dynamic Programming Introduction to Dynamic Programming http://bicmr.pku.edu.cn/~wenzw/bigdata2018.html Acknowledgement: this slides is based on Prof. Mengdi Wang s and Prof. Dimitri Bertsekas lecture notes Outline 2/65 1

More information

Complex Decisions. Sequential Decision Making

Complex Decisions. Sequential Decision Making Sequential Decision Making Outline Sequential decision problems Value iteration Policy iteration POMDPs (basic concepts) Slides partially based on the Book "Reinforcement Learning: an introduction" by

More information

Dynamic Admission and Service Rate Control of a Queue

Dynamic Admission and Service Rate Control of a Queue Dynamic Admission and Service Rate Control of a Queue Kranthi Mitra Adusumilli and John J. Hasenbein 1 Graduate Program in Operations Research and Industrial Engineering Department of Mechanical Engineering

More information

TDT4171 Artificial Intelligence Methods

TDT4171 Artificial Intelligence Methods TDT47 Artificial Intelligence Methods Lecture 7 Making Complex Decisions Norwegian University of Science and Technology Helge Langseth IT-VEST 0 helgel@idi.ntnu.no TDT47 Artificial Intelligence Methods

More information

Reinforcement Learning. Slides based on those used in Berkeley's AI class taught by Dan Klein

Reinforcement Learning. Slides based on those used in Berkeley's AI class taught by Dan Klein Reinforcement Learning Slides based on those used in Berkeley's AI class taught by Dan Klein Reinforcement Learning Basic idea: Receive feedback in the form of rewards Agent s utility is defined by the

More information

arxiv: v1 [math.pr] 6 Apr 2015

arxiv: v1 [math.pr] 6 Apr 2015 Analysis of the Optimal Resource Allocation for a Tandem Queueing System arxiv:1504.01248v1 [math.pr] 6 Apr 2015 Liu Zaiming, Chen Gang, Wu Jinbiao School of Mathematics and Statistics, Central South University,

More information

CSEP 573: Artificial Intelligence

CSEP 573: Artificial Intelligence CSEP 573: Artificial Intelligence Markov Decision Processes (MDP)! Ali Farhadi Many slides over the course adapted from Luke Zettlemoyer, Dan Klein, Pieter Abbeel, Stuart Russell or Andrew Moore 1 Outline

More information

6.231 DYNAMIC PROGRAMMING LECTURE 10 LECTURE OUTLINE

6.231 DYNAMIC PROGRAMMING LECTURE 10 LECTURE OUTLINE 6.231 DYNAMIC PROGRAMMING LECTURE 10 LECTURE OUTLINE Rollout algorithms Cost improvement property Discrete deterministic problems Approximations of rollout algorithms Discretization of continuous time

More information

Dynamic Programming and Stochastic Control

Dynamic Programming and Stochastic Control Dynamic Programming and Stochastic Control Dr. Alex Leong Department of Electrical Engineering (EIM-E) Paderborn University, Germany alex.leong@upb.de Dr. Alex Leong (alex.leong@upb.de) DP and Stochastic

More information

CSE 473: Artificial Intelligence

CSE 473: Artificial Intelligence CSE 473: Artificial Intelligence Markov Decision Processes (MDPs) Luke Zettlemoyer Many slides over the course adapted from Dan Klein, Stuart Russell or Andrew Moore 1 Announcements PS2 online now Due

More information

Lecture 2: Making Good Sequences of Decisions Given a Model of World. CS234: RL Emma Brunskill Winter 2018

Lecture 2: Making Good Sequences of Decisions Given a Model of World. CS234: RL Emma Brunskill Winter 2018 Lecture 2: Making Good Sequences of Decisions Given a Model of World CS234: RL Emma Brunskill Winter 218 Human in the loop exoskeleton work from Steve Collins lab Class Structure Last Time: Introduction

More information

Mengdi Wang. July 3rd, Laboratory for Information and Decision Systems, M.I.T.

Mengdi Wang. July 3rd, Laboratory for Information and Decision Systems, M.I.T. Practice July 3rd, 2012 Laboratory for Information and Decision Systems, M.I.T. 1 2 Infinite-Horizon DP Minimize over policies the objective cost function J π (x 0 ) = lim N E w k,k=0,1,... DP π = {µ 0,µ

More information

6.231 DYNAMIC PROGRAMMING LECTURE 5 LECTURE OUTLINE

6.231 DYNAMIC PROGRAMMING LECTURE 5 LECTURE OUTLINE 6.231 DYNAMIC PROGRAMMING LECTURE 5 LECTURE OUTLINE Stopping problems Scheduling problems Minimax Control 1 PURE STOPPING PROBLEMS Two possible controls: Stop (incur a one-time stopping cost, and move

More information

Lecture 12: MDP1. Victor R. Lesser. CMPSCI 683 Fall 2010

Lecture 12: MDP1. Victor R. Lesser. CMPSCI 683 Fall 2010 Lecture 12: MDP1 Victor R. Lesser CMPSCI 683 Fall 2010 Biased Random GSAT - WalkSat Notice no random restart 2 Today s lecture Search where there is Uncertainty in Operator Outcome --Sequential Decision

More information

6.231 DYNAMIC PROGRAMMING LECTURE 3 LECTURE OUTLINE

6.231 DYNAMIC PROGRAMMING LECTURE 3 LECTURE OUTLINE 6.21 DYNAMIC PROGRAMMING LECTURE LECTURE OUTLINE Deterministic finite-state DP problems Backward shortest path algorithm Forward shortest path algorithm Shortest path examples Alternative shortest path

More information

Dynamic Portfolio Choice II

Dynamic Portfolio Choice II Dynamic Portfolio Choice II Dynamic Programming Leonid Kogan MIT, Sloan 15.450, Fall 2010 c Leonid Kogan ( MIT, Sloan ) Dynamic Portfolio Choice II 15.450, Fall 2010 1 / 35 Outline 1 Introduction to Dynamic

More information

I R TECHNICAL RESEARCH REPORT. A Framework for Mixed Estimation of Hidden Markov Models. by S. Dey, S. Marcus T.R

I R TECHNICAL RESEARCH REPORT. A Framework for Mixed Estimation of Hidden Markov Models. by S. Dey, S. Marcus T.R TECHNICAL RESEARCH REPORT A Framework for Mixed Estimation of Hidden Markov Models by S. Dey, S. Marcus T.R. 98-31 I R INSTITUTE FOR SYSTEMS RESEARCH ISR develops, applies and teaches advanced methodologies

More information

CS 188: Artificial Intelligence Spring Announcements

CS 188: Artificial Intelligence Spring Announcements CS 188: Artificial Intelligence Spring 2011 Lecture 9: MDPs 2/16/2011 Pieter Abbeel UC Berkeley Many slides over the course adapted from either Dan Klein, Stuart Russell or Andrew Moore 1 Announcements

More information

POMDPs: Partially Observable Markov Decision Processes Advanced AI

POMDPs: Partially Observable Markov Decision Processes Advanced AI POMDPs: Partially Observable Markov Decision Processes Advanced AI Wolfram Burgard Types of Planning Problems Classical Planning State observable Action Model Deterministic, accurate MDPs observable stochastic

More information

CS 188: Artificial Intelligence

CS 188: Artificial Intelligence CS 188: Artificial Intelligence Markov Decision Processes Dan Klein, Pieter Abbeel University of California, Berkeley Non-Deterministic Search 1 Example: Grid World A maze-like problem The agent lives

More information

Optimal Stopping. Nick Hay (presentation follows Thomas Ferguson s Optimal Stopping and Applications) November 6, 2008

Optimal Stopping. Nick Hay (presentation follows Thomas Ferguson s Optimal Stopping and Applications) November 6, 2008 (presentation follows Thomas Ferguson s and Applications) November 6, 2008 1 / 35 Contents: Introduction Problems Markov Models Monotone Stopping Problems Summary 2 / 35 The Secretary problem You have

More information

4 Reinforcement Learning Basic Algorithms

4 Reinforcement Learning Basic Algorithms Learning in Complex Systems Spring 2011 Lecture Notes Nahum Shimkin 4 Reinforcement Learning Basic Algorithms 4.1 Introduction RL methods essentially deal with the solution of (optimal) control problems

More information

16 MAKING SIMPLE DECISIONS

16 MAKING SIMPLE DECISIONS 247 16 MAKING SIMPLE DECISIONS Let us associate each state S with a numeric utility U(S), which expresses the desirability of the state A nondeterministic action A will have possible outcome states Result

More information

Markov Decision Processes: Making Decision in the Presence of Uncertainty. (some of) R&N R&N

Markov Decision Processes: Making Decision in the Presence of Uncertainty. (some of) R&N R&N Markov Decision Processes: Making Decision in the Presence of Uncertainty (some of) R&N 16.1-16.6 R&N 17.1-17.4 Different Aspects of Machine Learning Supervised learning Classification - concept learning

More information

CS 188: Artificial Intelligence. Outline

CS 188: Artificial Intelligence. Outline C 188: Artificial Intelligence Markov Decision Processes (MDPs) Pieter Abbeel UC Berkeley ome slides adapted from Dan Klein 1 Outline Markov Decision Processes (MDPs) Formalism Value iteration In essence

More information

Forecast Horizons for Production Planning with Stochastic Demand

Forecast Horizons for Production Planning with Stochastic Demand Forecast Horizons for Production Planning with Stochastic Demand Alfredo Garcia and Robert L. Smith Department of Industrial and Operations Engineering Universityof Michigan, Ann Arbor MI 48109 December

More information

EC316a: Advanced Scientific Computation, Fall Discrete time, continuous state dynamic models: solution methods

EC316a: Advanced Scientific Computation, Fall Discrete time, continuous state dynamic models: solution methods EC316a: Advanced Scientific Computation, Fall 2003 Notes Section 4 Discrete time, continuous state dynamic models: solution methods We consider now solution methods for discrete time models in which decisions

More information

Markov Decision Processes

Markov Decision Processes Markov Decision Processes Robert Platt Northeastern University Some images and slides are used from: 1. CS188 UC Berkeley 2. AIMA 3. Chris Amato Stochastic domains So far, we have studied search Can use

More information

Non-Deterministic Search

Non-Deterministic Search Non-Deterministic Search MDP s 1 Non-Deterministic Search How do you plan (search) when your actions might fail? In general case, how do you plan, when the actions have multiple possible outcomes? 2 Example:

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning Basic idea: Receive feedback in the form of rewards Agent s utility is defined by the reward function Must (learn to) act so as to maximize expected rewards Grid World The agent

More information

Martingales. by D. Cox December 2, 2009

Martingales. by D. Cox December 2, 2009 Martingales by D. Cox December 2, 2009 1 Stochastic Processes. Definition 1.1 Let T be an arbitrary index set. A stochastic process indexed by T is a family of random variables (X t : t T) defined on a

More information

CHAPTER 5: DYNAMIC PROGRAMMING

CHAPTER 5: DYNAMIC PROGRAMMING CHAPTER 5: DYNAMIC PROGRAMMING Overview This chapter discusses dynamic programming, a method to solve optimization problems that involve a dynamical process. This is in contrast to our previous discussions

More information

Making Decisions. CS 3793 Artificial Intelligence Making Decisions 1

Making Decisions. CS 3793 Artificial Intelligence Making Decisions 1 Making Decisions CS 3793 Artificial Intelligence Making Decisions 1 Planning under uncertainty should address: The world is nondeterministic. Actions are not certain to succeed. Many events are outside

More information

Dynamic Portfolio Execution Detailed Proofs

Dynamic Portfolio Execution Detailed Proofs Dynamic Portfolio Execution Detailed Proofs Gerry Tsoukalas, Jiang Wang, Kay Giesecke March 16, 2014 1 Proofs Lemma 1 (Temporary Price Impact) A buy order of size x being executed against i s ask-side

More information

Martingale Pricing Theory in Discrete-Time and Discrete-Space Models

Martingale Pricing Theory in Discrete-Time and Discrete-Space Models IEOR E4707: Foundations of Financial Engineering c 206 by Martin Haugh Martingale Pricing Theory in Discrete-Time and Discrete-Space Models These notes develop the theory of martingale pricing in a discrete-time,

More information

IEOR E4004: Introduction to OR: Deterministic Models

IEOR E4004: Introduction to OR: Deterministic Models IEOR E4004: Introduction to OR: Deterministic Models 1 Dynamic Programming Following is a summary of the problems we discussed in class. (We do not include the discussion on the container problem or the

More information

91.420/543: Artificial Intelligence UMass Lowell CS Fall 2010

91.420/543: Artificial Intelligence UMass Lowell CS Fall 2010 91.420/543: Artificial Intelligence UMass Lowell CS Fall 2010 Lecture 17 & 18: Markov Decision Processes Oct 12 13, 2010 A subset of Lecture 9 slides from Dan Klein UC Berkeley Many slides over the course

More information

The Values of Information and Solution in Stochastic Programming

The Values of Information and Solution in Stochastic Programming The Values of Information and Solution in Stochastic Programming John R. Birge The University of Chicago Booth School of Business JRBirge ICSP, Bergamo, July 2013 1 Themes The values of information and

More information

Lecture 7: Bayesian approach to MAB - Gittins index

Lecture 7: Bayesian approach to MAB - Gittins index Advanced Topics in Machine Learning and Algorithmic Game Theory Lecture 7: Bayesian approach to MAB - Gittins index Lecturer: Yishay Mansour Scribe: Mariano Schain 7.1 Introduction In the Bayesian approach

More information

Handout 8: Introduction to Stochastic Dynamic Programming. 2 Examples of Stochastic Dynamic Programming Problems

Handout 8: Introduction to Stochastic Dynamic Programming. 2 Examples of Stochastic Dynamic Programming Problems SEEM 3470: Dynamic Optimization and Applications 2013 14 Second Term Handout 8: Introduction to Stochastic Dynamic Programming Instructor: Shiqian Ma March 10, 2014 Suggested Reading: Chapter 1 of Bertsekas,

More information

CS 188: Artificial Intelligence Fall 2011

CS 188: Artificial Intelligence Fall 2011 CS 188: Artificial Intelligence Fall 2011 Lecture 9: MDPs 9/22/2011 Dan Klein UC Berkeley Many slides over the course adapted from either Stuart Russell or Andrew Moore 2 Grid World The agent lives in

More information

Markov Decision Processes

Markov Decision Processes Markov Decision Processes Ryan P. Adams COS 324 Elements of Machine Learning Princeton University We now turn to a new aspect of machine learning, in which agents take actions and become active in their

More information

16 MAKING SIMPLE DECISIONS

16 MAKING SIMPLE DECISIONS 253 16 MAKING SIMPLE DECISIONS Let us associate each state S with a numeric utility U(S), which expresses the desirability of the state A nondeterministic action a will have possible outcome states Result(a)

More information

Markov Decision Processes (MDPs) CS 486/686 Introduction to AI University of Waterloo

Markov Decision Processes (MDPs) CS 486/686 Introduction to AI University of Waterloo Markov Decision Processes (MDPs) CS 486/686 Introduction to AI University of Waterloo Outline Sequential Decision Processes Markov chains Highlight Markov property Discounted rewards Value iteration Markov

More information

Yao s Minimax Principle

Yao s Minimax Principle Complexity of algorithms The complexity of an algorithm is usually measured with respect to the size of the input, where size may for example refer to the length of a binary word describing the input,

More information

Scenario Generation and Sampling Methods

Scenario Generation and Sampling Methods Scenario Generation and Sampling Methods Güzin Bayraksan Tito Homem-de-Mello SVAN 2016 IMPA May 9th, 2016 Bayraksan (OSU) & Homem-de-Mello (UAI) Scenario Generation and Sampling SVAN IMPA May 9 1 / 30

More information

6.231 DYNAMIC PROGRAMMING LECTURE 8 LECTURE OUTLINE

6.231 DYNAMIC PROGRAMMING LECTURE 8 LECTURE OUTLINE 6.231 DYNAMIC PROGRAMMING LECTURE 8 LECTURE OUTLINE Suboptimal control Cost approximation methods: Classification Certainty equivalent control: An example Limited lookahead policies Performance bounds

More information

OPTIMAL PORTFOLIO CONTROL WITH TRADING STRATEGIES OF FINITE

OPTIMAL PORTFOLIO CONTROL WITH TRADING STRATEGIES OF FINITE Proceedings of the 44th IEEE Conference on Decision and Control, and the European Control Conference 005 Seville, Spain, December 1-15, 005 WeA11.6 OPTIMAL PORTFOLIO CONTROL WITH TRADING STRATEGIES OF

More information

Making Complex Decisions

Making Complex Decisions Ch. 17 p.1/29 Making Complex Decisions Chapter 17 Ch. 17 p.2/29 Outline Sequential decision problems Value iteration algorithm Policy iteration algorithm Ch. 17 p.3/29 A simple environment 3 +1 p=0.8 2

More information

Pricing Problems under the Markov Chain Choice Model

Pricing Problems under the Markov Chain Choice Model Pricing Problems under the Markov Chain Choice Model James Dong School of Operations Research and Information Engineering, Cornell University, Ithaca, New York 14853, USA jd748@cornell.edu A. Serdar Simsek

More information

CS 188: Artificial Intelligence

CS 188: Artificial Intelligence CS 188: Artificial Intelligence Markov Decision Processes Dan Klein, Pieter Abbeel University of California, Berkeley Non Deterministic Search Example: Grid World A maze like problem The agent lives in

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Markov Decision Processes II Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC

More information

AM 121: Intro to Optimization Models and Methods

AM 121: Intro to Optimization Models and Methods AM 121: Intro to Optimization Models and Methods Lecture 18: Markov Decision Processes Yiling Chen and David Parkes Lesson Plan Markov decision processes Policies and Value functions Solving: average reward,

More information

6.231 DYNAMIC PROGRAMMING LECTURE 3 LECTURE OUTLINE

6.231 DYNAMIC PROGRAMMING LECTURE 3 LECTURE OUTLINE 6.21 DYNAMIC PROGRAMMING LECTURE LECTURE OUTLINE Deterministic finite-state DP problems Backward shortest path algorithm Forward shortest path algorithm Shortest path examples Alternative shortest path

More information

Basic Framework. About this class. Rewards Over Time. [This lecture adapted from Sutton & Barto and Russell & Norvig]

Basic Framework. About this class. Rewards Over Time. [This lecture adapted from Sutton & Barto and Russell & Norvig] Basic Framework [This lecture adapted from Sutton & Barto and Russell & Norvig] About this class Markov Decision Processes The Bellman Equation Dynamic Programming for finding value functions and optimal

More information

Machine Learning in Computer Vision Markov Random Fields Part II

Machine Learning in Computer Vision Markov Random Fields Part II Machine Learning in Computer Vision Markov Random Fields Part II Oren Freifeld Computer Science, Ben-Gurion University March 22, 2018 Mar 22, 2018 1 / 40 1 Some MRF Computations 2 Mar 22, 2018 2 / 40 Few

More information

Outline. 1 Introduction. 2 Algorithms. 3 Examples. Algorithm 1 General coordinate minimization framework. 1: Choose x 0 R n and set k 0.

Outline. 1 Introduction. 2 Algorithms. 3 Examples. Algorithm 1 General coordinate minimization framework. 1: Choose x 0 R n and set k 0. Outline Coordinate Minimization Daniel P. Robinson Department of Applied Mathematics and Statistics Johns Hopkins University November 27, 208 Introduction 2 Algorithms Cyclic order with exact minimization

More information

Finite Memory and Imperfect Monitoring

Finite Memory and Imperfect Monitoring Federal Reserve Bank of Minneapolis Research Department Finite Memory and Imperfect Monitoring Harold L. Cole and Narayana Kocherlakota Working Paper 604 September 2000 Cole: U.C.L.A. and Federal Reserve

More information

Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration

Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration Piyush Rai CS5350/6350: Machine Learning November 29, 2011 Reinforcement Learning Supervised Learning: Uses explicit supervision

More information

IEOR 3106: Introduction to Operations Research: Stochastic Models SOLUTIONS to Final Exam, Sunday, December 16, 2012

IEOR 3106: Introduction to Operations Research: Stochastic Models SOLUTIONS to Final Exam, Sunday, December 16, 2012 IEOR 306: Introduction to Operations Research: Stochastic Models SOLUTIONS to Final Exam, Sunday, December 6, 202 Four problems, each with multiple parts. Maximum score 00 (+3 bonus) = 3. You need to show

More information

EE266 Homework 5 Solutions

EE266 Homework 5 Solutions EE, Spring 15-1 Professor S. Lall EE Homework 5 Solutions 1. A refined inventory model. In this problem we consider an inventory model that is more refined than the one you ve seen in the lectures. The

More information

Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration

Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration Piyush Rai CS5350/6350: Machine Learning November 29, 2011 Reinforcement Learning Supervised Learning: Uses explicit supervision

More information

UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions.

UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions. UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions. Random Variables 2 A random variable X is a numerical (integer, real, complex, vector etc.) summary of the outcome of the random experiment.

More information

CHOICE THEORY, UTILITY FUNCTIONS AND RISK AVERSION

CHOICE THEORY, UTILITY FUNCTIONS AND RISK AVERSION CHOICE THEORY, UTILITY FUNCTIONS AND RISK AVERSION Szabolcs Sebestyén szabolcs.sebestyen@iscte.pt Master in Finance INVESTMENTS Sebestyén (ISCTE-IUL) Choice Theory Investments 1 / 65 Outline 1 An Introduction

More information

The Optimization Process: An example of portfolio optimization

The Optimization Process: An example of portfolio optimization ISyE 6669: Deterministic Optimization The Optimization Process: An example of portfolio optimization Shabbir Ahmed Fall 2002 1 Introduction Optimization can be roughly defined as a quantitative approach

More information

On Existence of Equilibria. Bayesian Allocation-Mechanisms

On Existence of Equilibria. Bayesian Allocation-Mechanisms On Existence of Equilibria in Bayesian Allocation Mechanisms Northwestern University April 23, 2014 Bayesian Allocation Mechanisms In allocation mechanisms, agents choose messages. The messages determine

More information

COMP417 Introduction to Robotics and Intelligent Systems. Reinforcement Learning - 2

COMP417 Introduction to Robotics and Intelligent Systems. Reinforcement Learning - 2 COMP417 Introduction to Robotics and Intelligent Systems Reinforcement Learning - 2 Speaker: Sandeep Manjanna Acklowledgement: These slides use material from Pieter Abbeel s, Dan Klein s and John Schulman

More information

Pakes (1986): Patents as Options: Some Estimates of the Value of Holding European Patent Stocks

Pakes (1986): Patents as Options: Some Estimates of the Value of Holding European Patent Stocks Pakes (1986): Patents as Options: Some Estimates of the Value of Holding European Patent Stocks Spring 2009 Main question: How much are patents worth? Answering this question is important, because it helps

More information

Reinforcement learning and Markov Decision Processes (MDPs) (B) Avrim Blum

Reinforcement learning and Markov Decision Processes (MDPs) (B) Avrim Blum Reinforcement learning and Markov Decision Processes (MDPs) 15-859(B) Avrim Blum RL and MDPs General scenario: We are an agent in some state. Have observations, perform actions, get rewards. (See lights,

More information

Computer Vision Group Prof. Daniel Cremers. 7. Sequential Data

Computer Vision Group Prof. Daniel Cremers. 7. Sequential Data Group Prof. Daniel Cremers 7. Sequential Data Bayes Filter (Rep.) We can describe the overall process using a Dynamic Bayes Network: This incorporates the following Markov assumptions: (measurement) (state)!2

More information

EE365: Risk Averse Control

EE365: Risk Averse Control EE365: Risk Averse Control Risk averse optimization Exponential risk aversion Risk averse control 1 Outline Risk averse optimization Exponential risk aversion Risk averse control Risk averse optimization

More information

CPS 270: Artificial Intelligence Markov decision processes, POMDPs

CPS 270: Artificial Intelligence  Markov decision processes, POMDPs CPS 270: Artificial Intelligence http://www.cs.duke.edu/courses/fall08/cps270/ Markov decision processes, POMDPs Instructor: Vincent Conitzer Warmup: a Markov process with rewards We derive some reward

More information

The Agent-Environment Interface Goals, Rewards, Returns The Markov Property The Markov Decision Process Value Functions Optimal Value Functions

The Agent-Environment Interface Goals, Rewards, Returns The Markov Property The Markov Decision Process Value Functions Optimal Value Functions The Agent-Environment Interface Goals, Rewards, Returns The Markov Property The Markov Decision Process Value Functions Optimal Value Functions Optimality and Approximation Finite MDP: {S, A, R, p, γ}

More information

SOLVING ROBUST SUPPLY CHAIN PROBLEMS

SOLVING ROBUST SUPPLY CHAIN PROBLEMS SOLVING ROBUST SUPPLY CHAIN PROBLEMS Daniel Bienstock Nuri Sercan Özbay Columbia University, New York November 13, 2005 Project with Lucent Technologies Optimize the inventory buffer levels in a complicated

More information

Introduction to Reinforcement Learning. MAL Seminar

Introduction to Reinforcement Learning. MAL Seminar Introduction to Reinforcement Learning MAL Seminar 2014-2015 RL Background Learning by interacting with the environment Reward good behavior, punish bad behavior Trial & Error Combines ideas from psychology

More information

Reasoning with Uncertainty

Reasoning with Uncertainty Reasoning with Uncertainty Markov Decision Models Manfred Huber 2015 1 Markov Decision Process Models Markov models represent the behavior of a random process, including its internal state and the externally

More information

A simple wealth model

A simple wealth model Quantitative Macroeconomics Raül Santaeulàlia-Llopis, MOVE-UAB and Barcelona GSE Homework 5, due Thu Nov 1 I A simple wealth model Consider the sequential problem of a household that maximizes over streams

More information

Problem 1: Random variables, common distributions and the monopoly price

Problem 1: Random variables, common distributions and the monopoly price Problem 1: Random variables, common distributions and the monopoly price In this problem, we will revise some basic concepts in probability, and use these to better understand the monopoly price (alternatively

More information

Decision Theory: Value Iteration

Decision Theory: Value Iteration Decision Theory: Value Iteration CPSC 322 Decision Theory 4 Textbook 9.5 Decision Theory: Value Iteration CPSC 322 Decision Theory 4, Slide 1 Lecture Overview 1 Recap 2 Policies 3 Value Iteration Decision

More information

Part 1: q Theory and Irreversible Investment

Part 1: q Theory and Irreversible Investment Part 1: q Theory and Irreversible Investment Goal: Endogenize firm characteristics and risk. Value/growth Size Leverage New issues,... This lecture: q theory of investment Irreversible investment and real

More information

Available online at ScienceDirect. Procedia Computer Science 95 (2016 )

Available online at   ScienceDirect. Procedia Computer Science 95 (2016 ) Available online at www.sciencedirect.com ScienceDirect Procedia Computer Science 95 (2016 ) 483 488 Complex Adaptive Systems, Publication 6 Cihan H. Dagli, Editor in Chief Conference Organized by Missouri

More information

Admissioncontrolwithbatcharrivals

Admissioncontrolwithbatcharrivals Admissioncontrolwithbatcharrivals E. Lerzan Örmeci Department of Industrial Engineering Koç University Sarıyer 34450 İstanbul-Turkey Apostolos Burnetas Department of Operations Weatherhead School of Management

More information

A Robust Option Pricing Problem

A Robust Option Pricing Problem IMA 2003 Workshop, March 12-19, 2003 A Robust Option Pricing Problem Laurent El Ghaoui Department of EECS, UC Berkeley 3 Robust optimization standard form: min x sup u U f 0 (x, u) : u U, f i (x, u) 0,

More information

CS221 / Spring 2018 / Sadigh. Lecture 7: MDPs I

CS221 / Spring 2018 / Sadigh. Lecture 7: MDPs I CS221 / Spring 2018 / Sadigh Lecture 7: MDPs I cs221.stanford.edu/q Question How would you get to Mountain View on Friday night in the least amount of time? bike drive Caltrain Uber/Lyft fly CS221 / Spring

More information

Lecture 7: MDPs I. Question. Course plan. So far: search problems. Uncertainty in the real world

Lecture 7: MDPs I. Question. Course plan. So far: search problems. Uncertainty in the real world Lecture 7: MDPs I cs221.stanford.edu/q Question How would you get to Mountain View on Friday night in the least amount of time? bike drive Caltrain Uber/Lyft fly CS221 / Spring 2018 / Sadigh CS221 / Spring

More information

3.4 Copula approach for modeling default dependency. Two aspects of modeling the default times of several obligors

3.4 Copula approach for modeling default dependency. Two aspects of modeling the default times of several obligors 3.4 Copula approach for modeling default dependency Two aspects of modeling the default times of several obligors 1. Default dynamics of a single obligor. 2. Model the dependence structure of defaults

More information

Multi-period Portfolio Choice and Bayesian Dynamic Models

Multi-period Portfolio Choice and Bayesian Dynamic Models Multi-period Portfolio Choice and Bayesian Dynamic Models Petter Kolm and Gordon Ritter Courant Institute, NYU Paper appeared in Risk Magazine, Feb. 25 (2015) issue Working paper version: papers.ssrn.com/sol3/papers.cfm?abstract_id=2472768

More information

Final exam solutions

Final exam solutions EE365 Stochastic Control / MS&E251 Stochastic Decision Models Profs. S. Lall, S. Boyd June 5 6 or June 6 7, 2013 Final exam solutions This is a 24 hour take-home final. Please turn it in to one of the

More information

Sequential Coalition Formation for Uncertain Environments

Sequential Coalition Formation for Uncertain Environments Sequential Coalition Formation for Uncertain Environments Hosam Hanna Computer Sciences Department GREYC - University of Caen 14032 Caen - France hanna@info.unicaen.fr Abstract In several applications,

More information

Approximate Revenue Maximization with Multiple Items

Approximate Revenue Maximization with Multiple Items Approximate Revenue Maximization with Multiple Items Nir Shabbat - 05305311 December 5, 2012 Introduction The paper I read is called Approximate Revenue Maximization with Multiple Items by Sergiu Hart

More information

CE 191: Civil and Environmental Engineering Systems Analysis. LEC 15 : DP Examples

CE 191: Civil and Environmental Engineering Systems Analysis. LEC 15 : DP Examples CE 191: Civil and Environmental Engineering Systems Analysis LEC 15 : DP Examples Professor Scott Moura Civil & Environmental Engineering University of California, Berkeley Fall 2014 Prof. Moura UC Berkeley

More information

MATH3075/3975 FINANCIAL MATHEMATICS TUTORIAL PROBLEMS

MATH3075/3975 FINANCIAL MATHEMATICS TUTORIAL PROBLEMS MATH307/37 FINANCIAL MATHEMATICS TUTORIAL PROBLEMS School of Mathematics and Statistics Semester, 04 Tutorial problems should be used to test your mathematical skills and understanding of the lecture material.

More information

Application of an Interval Backward Finite Difference Method for Solving the One-Dimensional Heat Conduction Problem

Application of an Interval Backward Finite Difference Method for Solving the One-Dimensional Heat Conduction Problem Application of an Interval Backward Finite Difference Method for Solving the One-Dimensional Heat Conduction Problem Malgorzata A. Jankowska 1, Andrzej Marciniak 2 and Tomasz Hoffmann 2 1 Poznan University

More information