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)
- Mean