lisa.stats.guess_mean_kind#

lisa.stats.guess_mean_kind(unit, control_var)[source]#

Guess which kind of mean should be used to summarize results in the given unit.

Returns:

'arithmetic' if an arithmetic mean should be used, or 'harmonic'. Geometric mean uses cannot be inferred by this function.

Parameters:
  • unit (str) – Unit of the values, e.g. 'km/h'.

  • control_var (str) – Control variable, i.e. variable that is fixed during the experiment. For example, in a car speed experiment, the control variable could be the distance (fixed distance), or the time. In that case, we would have unit='km/h' and control_var='h' if the time was fixed, or control_var='km' if the distance was fixed.