The frequency of a number in a list is the fraction of the list equal
to the number. The frequencies command finds the frequencies
of the numbers in a list.
frequences is a synonym for frequencies.
Example.
Input:
Output:
⎡ ⎢ ⎢ ⎢ ⎣ |
| ⎤ ⎥ ⎥ ⎥ ⎦ |
You can use this, for example, to simulate flipping a fair coin and
seeing how many times each side appears; to flip a coin 1000 times,
for example:
Input:
Output (for example):
⎡ ⎢ ⎣ |
| ⎤ ⎥ ⎦ |
(See Section 9.3.1 for information on rand.)