Consider a simple structure, where animals go back and forth between two environments A and B.  The decision then becomes of whether to stay or leave each environment.  This can be represented by the following diagram, which displays transition probabilities: