Is it possible to calculate the regular average of a sequence of numbers when i dont know everything of the sequence, but just everytime i get a new number i know the total count of numbers and the average for the numbers - 1. For example: 2, 3, 10 the average is of course: 5 But in the last step to calculate i only have access to the previous average of 2 and 3: 2,.5 the next number: 10 and the count of numbers: 3 If this is possible, how?

ormaybesaladqh 2022-10-20 Answered
Is it possible to calculate the regular average of a sequence of numbers when i dont know everything of the sequence, but just everytime i get a new number i know the total count of numbers and the average for the numbers 1.
for example: 2 , 3 , 10 the average is of course: 5
but in the last step to calculate i only have access to the previous average of 2 and 3 : 2.5 the next number: 10 and the count of numbers: 3
if this is possible, how?
You can still ask an expert for help

Expert Community at Your Service

  • Live experts 24/7
  • Questions are typically answered in as fast as 30 minutes
  • Personalized clear answers
Learn more

Solve your problem for the price of one coffee

  • Available 24/7
  • Math expert for every subject
  • Pay only if we can solve it
Ask Question

Answers (1)

broeifl
Answered 2022-10-21 Author has 11 answers
A very simple thought process results in the same formula for running average. If you have N previous measures (of course the measures could all be different) the average you calculate is exactly the same as if all measures were the same as the computed average value. Then, computing the running average of the N + 1 is equal to N times the previously computed average plus the N + 1 measure all divided by N + 1.
Did you like this example?
Subscribe for all access

Expert Community at Your Service

  • Live experts 24/7
  • Questions are typically answered in as fast as 30 minutes
  • Personalized clear answers
Learn more

You might be interested in

asked 2022-08-11
We talk about Average speed and Average time, why not Average Distance?
asked 2022-11-18
Calculate an average or typical time. If I would just use the median (or other "normal" types of calculating an average), for example 23 : 59 and 00 : 01 would yield 12 : 00 when it should 00 : 00. Is there a better method?
asked 2022-10-16
Is there any precise rigorous definition of "Average of a statistical population" in statistics (regardless of our knowledge about mean, median or mode)?
asked 2022-08-16
What is the argument for not using the average of an average?
asked 2022-09-27
a. Find the average rate of change of k over the interval [6.5,20] if k(6.5)=35 and k(20)=7
b.If j has a constant rate of change over the interval [6.5,20] equal to the average rate of change of k on[6.5,20] and j(6.5)=30, j(20)=?
asked 2022-11-07
Сalculate a windowed average where the newest value replaces the oldest value in a set of size 10. In this case, I have a real-time number stream and have access to current value, current average and the previous value.Is there any way to calculate this value incrementally storing minimal amount of historical state?
asked 2022-08-26
The average value of a diagnostic test from 10 students is 55. If we add 5 more student so the total number of students is 15, the average value changes to 53
How much is the average value from the last 5 students?

New questions