Inferensys

Glossary

Markov Decision Process (MDP)

A mathematical framework for modeling sequential decision-making in cognitive radios, defined by a set of spectrum states, possible actions, state transition probabilities, and a reward function.
Governance lead reviewing model governance framework on laptop, policy documents visible, executive office setup.
SEQUENTIAL DECISION FRAMEWORK

What is Markov Decision Process (MDP)?

A mathematical framework for modeling decision-making in situations where outcomes are partly random and partly under the control of a decision maker, fundamental to reinforcement learning in cognitive radio.

A Markov Decision Process (MDP) is a discrete-time stochastic control process defined by the tuple (S, A, P, R), where an agent observes a state s from state space S, takes an action a from action space A, transitions to a new state s' according to the state transition probability P(s'|s, a), and receives an immediate scalar reward R(s, a). The Markov property dictates that state transitions depend solely on the current state and action, not the prior history.

The objective is to derive an optimal policy π(s) mapping states to actions that maximizes the expected cumulative discounted reward. In cognitive radio, an MDP models spectrum access where states represent channel occupancy, actions represent transmitting or switching channels, and the reward function penalizes collisions with primary users while rewarding successful throughput. Solving the MDP enables the radio to learn an optimal dynamic spectrum access strategy.

FRAMEWORK ANATOMY

Key Components of an MDP

A Markov Decision Process provides the formal mathematical scaffolding for sequential decision-making under uncertainty. Each component defines a critical aspect of how a cognitive radio agent perceives, acts, and learns from the RF environment.

01

State Space (S)

The finite set of all possible situations the cognitive radio can encounter. A state is a distinct configuration of the environment at a specific time step.

  • Spectrum Context: A state might encode the occupancy status of N channels (idle/busy), the current signal-to-noise ratio (SNR), and the remaining battery level.
  • Markov Property: The state must capture all relevant history. The probability of transitioning to a future state depends only on the current state and action, not the sequence that preceded it.
  • Discretization: Continuous metrics like SNR are typically quantized into discrete bins to maintain a manageable state space size.
S = {s₁, s₂, ..., sₙ}
Formal Notation
02

Action Space (A)

The finite set of all possible operations the cognitive radio agent can execute in any given state. The agent's goal is to learn which action to take in which state.

  • Spectrum Actions: Examples include SENSE_CHANNEL_5, TRANSMIT_ON_CHANNEL_3, INCREASE_POWER, SWITCH_MODULATION, or STAY_IDLE.
  • Policy Dependency: The action space directly constrains the agent's behavior. A larger action space offers more control but increases the complexity of finding an optimal policy.
  • Deterministic vs. Stochastic: While the action choice can be probabilistic (e.g., epsilon-greedy), the action set itself is a defined list of discrete operations.
A(s) ⊆ A
State-Dependent Actions
03

Transition Probability (P)

The core stochastic model of the environment, defining the probability of moving from state s to state s' after taking action a. This captures the uncertainty inherent in wireless channels.

  • Formal Definition: P(s' | s, a) = Pr{S_{t+1} = s' | S_t = s, A_t = a}.
  • RF Dynamics: This matrix encodes the likelihood that a channel becomes occupied by a primary user, the probability of packet loss due to fading, or the chance of successful handoff.
  • Model-Based vs. Model-Free: In model-based reinforcement learning, the agent learns this transition function explicitly. In model-free methods like Q-Learning, the agent learns the value of actions without ever modeling P directly.
P: S × A × S → [0,1]
Function Signature
04

Reward Function (R)

A scalar feedback signal that defines the immediate goal of the cognitive radio. The agent's sole objective is to maximize the cumulative sum of these rewards over time.

  • Design is Critical: The reward function shapes all learned behavior. A poorly designed reward leads to unintended and often destructive policies.
  • Spectrum Rewards: Common examples include:
    • +10 for each successfully transmitted packet.
    • -100 for causing interference to a primary user.
    • -1 per time step to penalize latency and encourage spectral efficiency.
    • +5 for maintaining a target bit error rate.
  • Immediate vs. Delayed: The function R(s, a, s') provides the immediate reward, but the agent must learn to sacrifice short-term gain for long-term cumulative return.
R(s,a,s')
Immediate Scalar Feedback
05

Discount Factor (γ)

A parameter between 0 and 1 that determines the present value of future rewards. It mathematically bounds the infinite sum of rewards and controls the agent's farsightedness.

  • Mathematical Role: The return G_t = R_{t+1} + γR_{t+2} + γ²R_{t+3} + ...
  • γ → 0 (Myopic): The agent is extremely short-sighted, caring only about maximizing the immediate next reward. It will exploit a high-throughput channel even if it risks imminent collision.
  • γ → 1 (Farsighted): The agent heavily weights distant future rewards. It will patiently explore or sacrifice a time slot now to secure a long-term, interference-free channel later.
  • Convergence: A discount factor less than 1 ensures that the infinite sum of rewards converges to a finite value, making policy evaluation mathematically tractable.
0 ≤ γ < 1
Valid Range
06

Policy (π)

The agent's strategy—a mapping from every possible state to a probability of selecting each action. This is the ultimate output of the MDP solving process.

  • Deterministic Policy: π(s) = a. The agent always takes the same action in state s.
  • Stochastic Policy: π(a|s) = Pr{A_t = a | S_t = s}. The agent chooses actions probabilistically, which is crucial for exploration and in multi-agent game-theoretic equilibria.
  • Optimal Policy (π)**: The policy that maximizes the expected cumulative discounted reward from any starting state. In a cognitive radio, π dictates the perfect sequence of sensing, channel selection, and power control decisions to maximize throughput without causing interference.
π*
Optimal Strategy
MDP FUNDAMENTALS

Frequently Asked Questions

Clear, technically precise answers to the most common questions about applying Markov Decision Processes to cognitive radio and dynamic spectrum access.

A Markov Decision Process (MDP) is a mathematical framework for modeling sequential decision-making in stochastic environments where outcomes are partly random and partly under the control of a decision-maker. An MDP is formally defined by a 5-tuple: a finite set of states (S) representing distinct environmental conditions, a finite set of actions (A) available to the agent, a state transition probability function P(s'|s,a) that defines the probability of moving to state s' after taking action a in state s, a reward function R(s,a) that provides immediate scalar feedback, and a discount factor γ that weights the importance of future rewards. The defining property is the Markov property, which asserts that the future state depends only on the current state and action, not on the history of prior states. The objective is to compute an optimal policy π*(s) that maps each state to the action maximizing the expected cumulative discounted reward over time.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.