Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: Mean

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32991] Re: [mg32981] Mean
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Sat, 23 Feb 2002 02:38:10 -0500 (EST)
  • References: <200202220649.BAA12088@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

My first guess is that you tried to use Mean before loading the package
DescriptiveStatistics, and you ran into a shadowing problem. Try a new
session and load the package before attempting to use any of its functions.
It works all right. Whenever you get into this problem, i,e,, calling a
function prior to loading the respective package, use Remove to remove the
name of the function and then try again.

In[1]:=
<< "Statistics`DescriptiveStatistics`"
In[2]:=
data = {4.3, 7.2, 8.4, 5.8, 9.2, 3.9}
Out[2]=
{4.3, 7.2, 8.4, 5.8, 9.2, 3.9}
In[3]:=
Mean[data]
Out[3]=
6.466666666666666
In[4]:=
Variance[data]
Out[4]=
4.6946666666666665


Tomas Garza
Mexico City


----- Original Message -----
From: "poonam" <poonam_pandey at hotmail.com>
To: mathgroup at smc.vnet.net
Subject: [mg32991] [mg32981] Mean


> << Statistics`DescriptiveStatistics`
>
> data = {4.3, 7.2, 8.4, 5.8, 9.2, 3.9}
> {4.3, 7.2, 8.4, 5.8, 9.2, 3.9}
>
> Mean[data]
> Mean[{4.3, 7.2, 8.4, 5.8, 9.2, 3.9}]
>
> Variance[data]
> 4.69467
>
> I took this code exactly as in the help browser. Tried this in my
> notebook. Why do I not get an answer for Mean? I get an answer for
> Variance, and I also see an answer for Mean in the help browser for
> the same data.
>



  • References:
    • Mean
      • From: poonam_pandey@hotmail.com (poonam)
  • Prev by Date: Re: complexity of AppendTo
  • Next by Date: Re: Reading .csv files
  • Previous by thread: Mean
  • Next by thread: Re: Mean