src/Utilities/ArtificialIntelligence.php
public function expecting()
    {
        $possibilities = count($this->samples);
        $orderedByOccurance = array_count_values($this->samples);
        array_multisort($orderedByOccurance, SORT_DESC);

        $probabilities = [];

        foreach ($orderedByOccurance as $item => $value) {
            $probabilities[$item] = $value / $possibilities;
        }

        return $probabilities;
    }
public function expecting()
    {
        $possibilities = count($this->samples);
        $orderedByOccurance = array_count_values($this->samples);
        array_multisort($orderedByOccurance, SORT_DESC);

        $probabilities = [];

        foreach ($orderedByOccurance as $item => $value) {
            $probabilities[$item] = $value / $possibilities;
        }

        return $probabilities;
    }
Makes a best guess on the number of occurances.

@return mixed