public static function cumulativeRelativeFrequency(array $values): array
    {
        $sample_size            = count($values);
        $cumulative_frequencies = self::cumulativeFrequency($values);
        return array_map(
            function ($frequency) use ($sample_size) {
                return $frequency / $sample_size;
            },
            $cumulative_frequencies
        );
    }