MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Basic Statistics in Mathematica 3.0



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




  • Prev by Date: Re: how to replace...?
  • Next by Date: Re: How does a rule get applied?
  • Prev by thread: Re: Basic Statistics in Mathematica 3.0
  • Next by thread: Re: Basic Statistics in Mathematica 3.0