Re: Basic Statistics in Mathematica 3.0
- To: mathgroup@smc.vnet.net
- Subject: [mg12483] Re: [mg12439] Basic Statistics in Mathematica 3.0
- From: Hugh Walker <hwalker@gvtc.com>
- Date: Tue, 19 May 1998 13:31:47 -0400
Massy Soedirman at jcahn@worldnet.fr writes: "The calculation of ,for example, the mean and the variance of a statistical series is staighforward in Mathematica but I don't know how to do it if, instead of having the complete list of values of the statistical variable I only have the set of diifferent values that variable takes with their respective frequencies. I have trouble thinking Mathematica cannot handle such a basic task but I can't find a way to do it." Let data, a list, be the data set and freq be the corresponding frequency list. The the average and variance of the data can be calculated by dataAve = data.freq dataVar = ((data - dataAve)^2).freq Hugh Walker Professsor Emeritus University of Houston Gnarly Oaks