Minimum of Data Set

minimum_value(data)

Determines the smallest value of a data set

Parameters

data (list of int or float) – List of numbers to analyze

Raises
  • TypeError – Argument must be a 1-dimensional list

  • TypeError – Elements of argument must be integers or floats

Returns

minimum – Smallest value from the data set

Return type

int or float

Notes

  • Set of numbers: \(a_i = \{ a_1, a_2, \cdots, a_n \}\)

  • Minimum value of set: \(a_{min} \leq a_j, \forall a_j \in a_i\)

  • Sample Minimum

Examples

Import minimum_value function from regressions library
>>> from regressions.statistics.minimum import minimum_value
Determine the minimum of the set [21, 53, 3, 68, 43, 9, 72, 19, 20, 1]
>>> minimum_even = minimum_value([21, 53, 3, 68, 43, 9, 72, 19, 20, 1])
>>> print(minimum_even)
1
Determine the minimum of the set [12, 81, 13, 8, 42, 72, 91, 20, 20]
>>> minimum_odd = minimum_value([12, 81, 13, 8, 42, 72, 91, 20, 20])
>>> print(minimum_odd)
8