2 Replies - 983 Views - Last Post: 28 December 2012 - 10:15 PM Rate Topic: -----

#1 Lavace  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 03-January 11

Creating a Probability Transition Matrix

Posted 28 December 2012 - 09:00 PM

I am trying to implement the following algorithm:
Posted Image

In a nutshell, we iterate over a set of 'states' to calculate a value for each.

Each state has multiple actions, and each multiple action has a 'transition probability' associated with it, such that if an action a is taken, there is a 0.8 chance it will proceed to a state s', and a 0.2 chance it will proceed to a different state.

When working through the algorithm, I am struggling to make a data structure that allows to locate a state, have a multiple actions available within that state, and for each action of that state, a probability matrix that when a particular action is taken to move to a new state, returns the probabilities of moving into a new state.

Any ideas to help me?

Many thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: Creating a Probability Transition Matrix

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10816
  • View blog
  • Posts: 40,316
  • Joined: 27-December 08

Re: Creating a Probability Transition Matrix

Posted 28 December 2012 - 09:07 PM

A decision tree or a graph sounds like a good data structure to me. Perhaps a directed graph, specifically. You could also design a probability matrix using a 2D array or a HashMap.
Was This Post Helpful? 0
  • +
  • -

#3 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10816
  • View blog
  • Posts: 40,316
  • Joined: 27-December 08

Re: Creating a Probability Transition Matrix

Posted 28 December 2012 - 10:15 PM

Thinking about this some more, you should look into Markov Chains with Eigenvalues and Eigenvectors. This is a topic in Linear Algebra.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1