MathGroup Archive 2001

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

Search the Archive

Re: Statistics on Matrices

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28349] Re: [mg28323] Statistics on Matrices
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Thu, 12 Apr 2001 02:18:12 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Load Statistics`DescriptiveStatistics`:

In[1]:==
<< Statistics`DescriptiveStatistics`;

Here is a list of 5 2x2 matrices:

In[2]:==
mats == Table[Table[Random[Integer, {0, 9}], {2}, {2}], {5}]
Out[2]==
{{{1, 6}, {3, 4}}, {{1, 1}, {1, 6}}, {{8, 3}, {1, 5}}, {{9, 2}, {5, 1}},
{{1,
      4}, {2, 9}}}

Here is the LocationReport on each matrix position:

In[3]:==
LocationReport /@ Partition[Flatten[MapThread[List, mats, 2]], Length[mats]=
]
Out[3]==
{{Mean -> 4, HarmonicMean -> 360/233, Median -> 1},
  {Mean -> 16/5, HarmonicMean -> 20/9, Median -> 3},
  {Mean -> 12/5, HarmonicMean -> 150/91, Median -> 2},
  {Mean -> 5, HarmonicMean -> 900/311, Median -> 5}}

Sorry, what is a DistributionReport?

Tomas Garza
Mexico City
----- Original Message -----
From: <Moranresearch at aol.com>
To: mathgroup at smc.vnet.net
Subject: [mg28349] [mg28323] Statistics on Matrices


> I have a series of 2x2 matrices
> How can I get a LocationReport on each element
> {{ai,bi},{ci,di}} , {i,1,n}
> or even simpler a mean for each element
> {{Mean[a],Mean[b]},{Mean[c],Mean[d}}
> I prefer to use the Location Report, DistributionReport etc if possible
> Thankyou.


  • Prev by Date: Re: MATHEMATICA WARNING
  • Next by Date: fixed point in a function of two variables
  • Previous by thread: Re: Statistics on Matrices
  • Next by thread: Re: Statistics on Matrices