# Behavior probability

Each behavior is associated with a probability, calculated per sample. Whether a behavior state is scored for a specific sample depends on a set of decision rules (for details see How behaviors are scored in Behavior recognition).

All behaviors but Twitching and Hopping are mutually-exclusive, therefore the sum of their probability values is 1. Twitching and Hopping have a probability too, but whether they are scored at a specific time does not depend on the probability of other behaviors.

How to specify Behavior probability

1.Click the Add button next to Behavior probability.

2.In the Behavior Probability tab, select the state(s) you would like to calculate the probability for.

3.Complete the procedure to add the variable. See Calculate statistics: procedure.

Application

You may want to filter the occurrences of a behavior based on their probability values. If the probability of that behavior is lower than a threshold at a specific sample, that sample is left out and the behavior state is re-calculated (see an example in Behaviors detected with Behavior recognition).

1.In the Analysis profile:

▪Add the behavior you are interested in.

▪Add the Behavior probability variable and, in the window that appears, select the same behavior.

2.Plot the integrated data to view the behavior detected and its probability together with the video. Check how those states correspond with the subject’s behavior in the video.

3.To filter data based on probability, in the Analysis profile click the behavior variable, and select a probability value for Behavior probability threshold.

4.Plot the data again to see the result of filtering.