# MDP Definition

## Terminology and Notation

Let's begin with Markov Decision Process (MDP).

![MDP Notation](/files/-LiqrbUC3RrlCQokBHQf)

We choose action $$a\_t$$ at time $$t$$ when we saw observation $$o\_t$$, and the latent state $$s\_t$$ transfered to $$s\_{t+1}$$, and we got reward $$r(s,t)$$ from the environment.

## Definitions

### Fully Observed

Markov decision process $$\mathcal{M}={\mathcal{S,A,T,r}}$$

* $$\mathcal{S}$$ : state space; states $$s\in\mathcal{S}$$ (discrete or continuous)
* $$\mathcal{A}$$ : action space; actions $$a\in\mathcal{A}$$ (discrete or continuous)
* $$\mathcal{T}$$ : transition operator, a tensor
* $$r$$ : reward function; $$r(s\_t,a\_t):\mathcal{S}\times\mathcal{A}\to \mathbb{R}$$

### Partially Observed

partially observed Markov decision process $$\mathcal{M}={\mathcal{S,A,O,T,E, r}}$$

* $$\mathcal{S}$$ : state space; states $$s\in\mathcal{S}$$ (discrete or continuous)
* $$\mathcal{A}$$ : action space; actions $$a\in\mathcal{A}$$ (discrete or continuous)
* $$\mathcal{O}$$ : observation space; observations $$o\in\mathcal{O}$$ (discrete or continuous)
* $$\mathcal{T}$$ : transition operator, a tensor
* $$\mathcal{E}$$ : emission probability $$p(o\_t|s\_t)$$
* $$r$$ : reward function; $$r(s\_t,a\_t):\mathcal{S}\times\mathcal{A}\to \mathbb{R}$$


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://drdh.gitbook.io/rl/deep-rl-course/intro-to-rl/mdp-definition.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
