Fitting NormalDistribution to 2D List
- To: mathgroup at smc.vnet.net
- Subject: [mg31424] Fitting NormalDistribution to 2D List
- From: post_12 at hotmail.com (postman)
- Date: Sat, 3 Nov 2001 05:29:37 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi: Appreciate any help people can offer! I have saved the output of a lengthy simulation where I have "binned" the data as such: {{1,2},{2,8},{3,16},{4,7},{5,3}} where the 1st number is the "bin" and the 2nd the number of occurences. Of course, the real data set has several thousand bins and occurences as high as 10^5. I would like to calculate a Mean and Standard Deviation of this data, however, the only way I could see to do it in Mathematica would be to "unroll" the list; i.e. print out 2 1s in succession followed by 8 2s, 16 3s etc. How can I fit this 2 dimensional list to a NormalDistribution? Thanks! postman