looping through averages, need average of these

# Thread: looping through averages, need average of these

1. Senior Member
Join Date
Dec 1969
Posts
702

## looping through averages, need average of these

In my loop statements I am calculating subtotals on amounts which seems easy by just doing stuff like: subtot=subtot + newamount (at the end of the looping, subtot is my subtotal)<BR><BR>but one of my variables is an average so... I would like to loop through all the iterations and get an average of the averages. Can you show me how this is done?<BR>er.. can it be done?<BR><BR><BR>total = 0<BR> do while..<BR>total = total + subtotal<BR>loop

2. Senior Member
Join Date
Dec 1969
Posts
293

## There is nothing intrinsically different

about an average of averages ... it doesn&#039;t mean a whole lot tho. You need to do some kind of scaling. <BR><BR>For example, if one set has an average of 15 with 100 entries each randomly between 10 and 20, it is (in some sense) more "accurate" than an Average of 15 with 10 entries randomly scattered between 1 and 30.<BR>

3. Senior Member
Join Date
Dec 1969
Posts
11,334

## Doesn't he want Standard Deviation

then? His "average of averages"?

4. Senior Member
Join Date
Dec 1969
Posts
293

## Hmmmm....maybe, but there DOES

exist such a notion at the average of averages and it doesn&#039;t have much to do with the StdDeviation .... In fact, I&#039;m not sure that you could DO std dev between datasets ... maybe tho, I&#039;m REAL dangerous with statistics.<BR><BR>I ran into the Mode of the Means in a JAMA article once. But the article was on Zen reducing cholesterol counts so who the hell knows if that meant anything...<BR><BR>

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•