ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Stages > Creating stage end rules > Stage end rules wizard : Number of trials

Stage end rules wizard : Number of trials

In this step, you can specify whether an animal's trials should end following the first trial in which it satisfies the rule, or whether it has to satisfy the rule in a number of repeated trials.

For example, in a water-maze training stage, you might have defined a rule that specifies that the animal has to find the island within 30 seconds of the test start. However, you probably wouldn't consider the animal to be 'trained' after the first trial in which it does this - after all, it might just be coincidence. So you would perhaps want to specify that the animal has to find the island within 30 seconds in 3 consecutive trials - in which case, you could be confident that it really does know where the island is.

 •If you choose the option for a series of consecutive trials, then a field will appear where you can specify the number of consecutive trials - you can enter any value from 1 to the maximum number of trials in the stage.  
 •If you choose the option for X out of Y trials, then fields will appear where you can specify values for X and Y. For example, you might specify that the animal has to satisfy the rule in '3 out of 4 trials'. You can enter any values for X and Y, provided X ≤ Y and Y ≤ the maximum number of trials in the stage.  
 •If you choose the option for X trials, then fields will appear where you can specify how many trials this has to happen. You can enter any value for X, provided it is ≤ the maximum number of trials in the stage.  

Checking variability

This option is only enabled when you have chosen to end the stage after the animal satisfies the criteria in a number of consecutive trials. If you would like to use it in other situations, such as in X out of Y trials, then please contact ANY-maze Support.

In some cases, ANY-maze can also check that the variability between the trials is not more than a certain limit - this is useful when you want to end the stage when the animal's behaviour has stabilised. For example, you might want to end the stage when the animal presses a lever at least 20 times in 3 consecutive trials, but you want the number of presses to be fairly consistent between these trials; so, for example, if the animal were to press the lever 25, 24 and 27 times in three consecutive trials you would end the stage, but if it presses it 25, 24 and 56 times you would not.

ANY-maze can only assess variability when the stage end rule is based on some sort of count, for example, how many times the animal entered a zone, or how many times a lever has been pressed. This is because a single trial will only have a single value for these sorts of results, in contrast a stage end rule such as The animal is in Zone X for at least Y seconds will have one result for each visit to the zone making it very hard to assess the variability between the trials.

To have ANY-maze check variability you should select the Also check variability button. You will then need to specify the acceptable variability as a percentage.

The variability calculation used is:

  

  ((Max value - Min value) / (Max value + Min value)) * 100

  

For example, in the case of the values 25, 24, 27, the variability would be

  

  = ((27 - 24) / (27 + 24)) * 100

  = (3 / 51) * 100

  = 5.9%

  

Whereas for the values 25, 24, 56 the variability would be:

  

  = ((56 - 24) / (56 + 24)) * 100

  = (32 / 80) * 100

  = 40%

  

So if you had specified that the stage should end when 3 consecutive trials had at least 20 lever presses with less than 20% variability, then the first set of trials would satisfy the criteria and the stage would end, whereas the second set would not and the animal would continue to be tested in the stage.

You can enter any variability percentage between 1% and 100%. If you enter 0 then the variability won't be assessed at all and if you enter a value > 100% it will automatically be adjusted to 100%.

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0404