in reply to Array statistics

Well I imagine you would want to divide the number of occurances of each thing by the total number of things. Unfortunately I don't think anyone on this site could tell you how to do this, unless you are willing to thank perlmonks.com on your homework sheet.