Fig. 4From: Linking fine-scale behaviour to the hydraulic environment shows behavioural responses in riverine fishBasic dependence structure of an HMM. The state at time t + 1 (St+1) is dependent on the observation at t + 1 (Ot+1) through the state distribution, and the state at the previous observation (St) through the transition matrix. The environment can act on the transition matrix and can thus affect the probabilities of a fish changing behaviour between detections. The Viterbi algorithm calculates the most probable state sequence for St:St+3 based on the observation sequence Ot:Ot+3 and the transition matrix [39]Back to article page