Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Frequencies function' topicStudent Support Forum > General > "Frequencies function"

Help | Reply To Topic
Author Comment/Response
Michael Iwan Young
12/05/05 05:36am

Hi, Im tryin to get the frequencies of the elements in my list. I have input the statistics manipulation on. The used the equation below it.


<<Statistics`DataManipulation`

Input freq = Frequencies[{0, 0, 0, 0, 0,
0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7,
7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11,
11, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 15, 15, 16, 17, 18,
19, 20, 21, 21, 23, 24}]

Output Frequencies[{0, 0, 0, 0,
0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4,
4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7,
7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11,
11, 11, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 15, 15, 16, 17,
18, 19, 20, 21, 21, 23, 24}]

Obviously the output is not what Im looking for. How do I get the output in the correct form.

Yours faithfully Mr Michael Young
(Ist Year MMORSE Student @ University of Warwick)

URL: ,
Help | Reply To Topic