> For the complete documentation index, see [llms.txt](https://sliu583.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sliu583.gitbook.io/blog/specific-work/wisr-group/cache/index/important-sampling.md).

# Important Sampling

### Monte Carlo&#x20;

* Repeated random sampling&#x20;
* RL: estimate directly from experiences&#x20;
* DP
  * Agent knows the transition probabilities&#x20;
* Monte Carlo: Estimate values by averaging over a large number of random samples&#x20;

![](/files/-MkB3WlTyIJKs3SuCPDo)

![](/files/-MkB3be5Rj8Bc0TEwhk2)

![](/files/-MkB3dcK0JpeCVRAglzB)

### Epsilon-soft policies&#x20;

![](/files/-MkBJ2cjnL6a5QHhvssr)

* Continuously explore&#x20;
* Non-zero probability to each action in every state&#x20;
* Always stochastic (probability)&#x20;

![](/files/-MkBJSQwKT7QS9be7jPe)

![](/files/-MkBJnJWFtitSppA0GXZ)

![](/files/-MkBJvpDLPLx01_uocvr)
