2
$\begingroup$

Let's say I run a random generator to give me a number of apples when a number hits 0 in a certain range from 0 to 100 based on the percentages below.

50% for 1, 40% for 2, 7% for 3, 2% for 4 and only 1% to get 5

My question is what is the overall average for the above. For example if I had: 50% for 1 and 50% for 2 The average would be 1.5, since probably about half a time the above would give 2, and 1+2/2 = 1.5.

I guess I could use the same method as above, but expand it a little. Still, I am wondering if this sort of calculation has a particular name.

$\endgroup$
1
$\begingroup$

You have pretty much answered your own question. It's

$$ 0.5 \times 1 + 0.4 \times 2 +0.07 \times 3 +0.02 \times 4 +0.01 \times 5. $$

It's called a weighted average: https://en.wikipedia.org/wiki/Weighted_arithmetic_mean

$\endgroup$
  • $\begingroup$ So, 1.64. Thanks $\endgroup$ – Axonn May 11 '18 at 20:24
1
$\begingroup$

The name for this is process of average with different weights (the percentages) is weighted average. For your example, you would have $1*0.5+2*0.4+3*0.07+4*0.02+5*0.01$.

$\endgroup$
1
$\begingroup$

The operation is a particular case of weighted average, that is

$$\bar n=\frac{\sum_i p_i\cdot n_i}{\sum_i p_i}, \quad \sum_i p_i=100$$

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.