hollyschwerdt

28 Reputation

2 Badges

16 years, 292 days

MaplePrimes Activity


These are questions asked by hollyschwerdt

Each line in my data file reads

[elm1, elm2, elm3, elm4]

I have the following lines to tally column 1:

> data:= map2(op, 1, datafile);

> Statistics[Tally](data);

I would like to tally the 3-tuples, [elm1,elm2,elm3], and it doesn't seem that Tally is able to handle a 3-tuple. 

I appreciate any help you can offer.

 

My data file is a list, where each line is

[elm1,elm2,elm3,elm4].

 

I would like to read through and calculate the mean of all of the elm1's.

I would like to get a distribution of the elm1 data.  For example, in 800 lines of data, if elm1 takes on values 5,6 and 7, I want to know that there are 300 5's 400 6's and 100 7's.

stats[mean](data) needs the numbers inputted.  I even thought I could pull off the elm1's into a separate list, but stats[mean] won't take a list.

Any help is appreciated.

Page 1 of 1