Calculating statistics for time series data
Another useful function is series_stats()
. The series_stats()
function takes one or multiple time series as an argument and returns the following statistical information:
min
: The minimum value in the time series.min_idx
: The index of the minimum value in the time series.max
: The maximum value in the time series.max_idx
: The index of the maximum value in the time series.avg
: The average value of the time series.variance
: The sample variance of the time series. The sample variance is the squared deviation of the time series's mean. The sample variance is used to calculate the standard deviation.stdev
: The sample standard deviation. The standard deviation is the amount of variation in the values of the time series.
The following screenshot shows the statistics for our security patching time series:
As you...