Question: Objective Reinforcement Learning Homework 3 : Model - Free Monte Carlo Prediction In this homework assignment, you will apply the Monte Carlo prediction method to

Objective
Reinforcement Learning
Homework 3: Model-Free Monte Carlo Prediction
In this homework assignment, you will apply the Monte Carlo prediction method to estimate the state values for a four-state problem. You will be provided with four episodes. Your task is to calculate the state values using the Monte Carlo method with a specified discount factor (gamma) and initial values for the states.
Problem Setup
- States (S): Four states, labeled as S1, S2, S3, and S4.
- Rewards (R): Provided within each episode, including a final reward. - Discount Factor (\gamma ): 0.9
- Initial State Values (V):
- V(S1)=0- V(S2)=0- V(S3)=0- V(S4)=0
Episodes
- S1,0, S2,1, S3,0, S4,10
- S1,0, S2,0, S2,0, S3,0, S4,-5- S1,0, S1,1, S2,0, S3,0, S4,8- S1,0, S2,0, S2,0, S3,1, S4,12
Tasks
1. Calculate the returns (G) for each state in each episode.
2. Use the Every-Visit Monte Carlo method to update the state values (V) based on the returns and the discount factor (\gamma ).
3. Calculate the updated values for each state after processing all four episodes.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!