Group Percentages and Weighted Means
Group Percentages and Weighted Means
Combine two groups’ percentages or means, find an unknown group’s value, or the ratio of the groups.
- 152 bytes
- COMP mode
Worked examples
Example 1
A factory makes phone cases on two production lines. Line P makes 40 % of the cases. 2.5 % of line P’s cases and 1 % of line Q’s cases are faulty. What percentage of all the cases are faulty?
Answer
Standard solution (without a calculator)
- Shares of the whole: line P makes 40 % and line Q 100 % − 40 % = 60 %. The 2.5 % and 1 % have different bases, so they cannot simply be added or averaged.
- A model day: take 1000 cases (only a convenient scale): line P makes 400 and line Q 600. Faulty: 400 × 0.025 = 10 and 600 × 0.01 = 6.
- Combine: 10 + 6 = 16 faulty cases, and 16 ÷ 1000 × 100 % = 1.6 %, so the answer is A. In one line: (40 × 2.5 + 60 × 1) ÷ 100 = 1.6.
- Sense check: 1.6 % lies between 1 % and 2.5 %, nearer line Q’s 1 % because line Q makes more cases. 1.75 % is the unweighted average — a trap.
If the question asked for the cases that are not faulty, find 1.6 % first, then 100 % − 1.6 % = 98.4 %.
Example 2
A running club has 45 junior members and 30 senior members. The mean 5 km time of the juniors is 28 minutes, and the mean 5 km time of all 75 members is 26.4 minutes. Find the mean 5 km time of the seniors.
Answer
Standard solution (without a calculator)
- Weights: the means are per member, so the weights are the numbers of members, 45 juniors and 30 seniors. Let x minutes be the seniors’ mean time.
- Take the known group from the total: all members together take 75 × 26.4 = 1980 minutes, of which the juniors take 45 × 28 = 1260 minutes.
- Divide by the unknown group: the seniors take 1980 − 1260 = 720 minutes, so x = 720 ÷ 30 = 24. As an equation: 45 × 28 + 30x = 75 × 26.4.
- Check: (45 × 28 + 30 × 24) ÷ 75 = (1260 + 720) ÷ 75 = 26.4. In function 2 the known group (juniors) goes first, and D is the overall mean 26.4.
Function 2 also works for means, not only percentages; the result has the unit of C and D, here minutes.
Example 3
Tea A costs $60 per kg and tea B costs $90 per kg. x kg of tea A is mixed with y kg of tea B, where x and y are positive. The mixture costs $72 per kg, and the total mass and total cost do not change on mixing. Find x : y in its simplest whole-number form.
Answer
Standard solution (without a calculator)
- Totals: tea A costs 60x dollars and tea B 90y dollars; the total mass is x + y kg. The mixture price gives 60x + 90y = 72(x + y).
- Rearrange: 60x + 90y = 72x + 72y, so 18y = 12x. As x and y are positive, x ÷ y = 18 ÷ 12 = 1.5.
- Whole-number ratio: x : y = 1.5 : 1 = 3 : 2. The calculator shows x ÷ y, not tea A’s percentage of the mixture — 1.5 is not 1.5 %.
- Check: with x = 3 and y = 2 the mixture costs (3 × 60 + 2 × 90) ÷ 5 = 360 ÷ 5 = 72 dollars per kg. Tea A is cheaper and the mixture price is nearer $60, so there is more of tea A — 3 : 2 fits.
Function 3 has only the inputs M, A, B and C. Swapping teas A and B gives the reciprocal 2 ÷ 3, so enter them in the order the question’s ratio asks for.
When to use it
Percentage and mean problems often split a whole into two groups with different rates or means — two production lines in a factory, the junior and senior members of a club, two kinds of tea. 017 uses the one rule behind all of them, total amount = the groups’ amounts added, with three functions: combine the groups, find the unknown group, or find the ratio of the groups.
What it is for
- Function 1: the overall mean or percentage of two groups
- Function 2: the second group’s mean or percentage from the overall one
- Function 3: the ratio of the two groups’ sizes (weights) from their values and the overall value
What you enter
- M: the function number 1, 2 or 3
- Functions 1 and 2: A, B = weights of groups 1 and 2; C = value of group 1; D = value of group 2 (function 1) or the overall value (function 2)
- Function 3: A, B = values of groups 1 and 2; C = the overall value (no D)
What it shows
- One result: the overall value, the second group’s value, or group 1 ÷ group 2
- Percentages are typed and shown as plain numbers: 1.6 means 1.6 %
- Math ERROR for an invalid function number, a negative weight, a zero denominator or no positive ratio
Check before use
- Only for a linear mean of two non-overlapping groups that together make up the whole, weighted by numbers of people, time or mass. Compound interest, successive percentage changes and relative changes of percentages do not fit.
- Order for functions 1 and 2: M, then A = weight of group 1, B = weight of group 2, C = value of group 1, then D = value of group 2 (function 1) or the overall value (function 2); function 2 finds the second group’s value. Put the known group first.
- Weights may be counts, hours, masses or ratio numbers (37.5 and 62.5, or 3 and 5), but both on the same scale. Function 1 allows one weight to be 0 if their sum is positive; function 2 needs the second weight to be positive.
- Type percentages as numbers: 80 % is entered as 80, without the % key, and a result of 67.5 means 67.5 %. If both groups are entered as decimal ratios such as 0.8, the result is a decimal ratio too.
- Function 3 uses another order: M = 3, A = value of group 1, B = value of group 2, C = overall value, and no D. The two values must differ and the overall value must lie strictly between them. A result r means group 1 : group 2 = r : 1 (1.5 means 3 : 2).
- For an average speed the weights are times (such as 18 and 27 minutes), not distances; for a unit price they are masses; for a mean height, numbers of students. The program does not decide which weight a question needs.
- Uses COMP/Deg and an empty P1, and takes 152 bytes; all programs together must fit in 680. Entering it starts by clearing P1 — save an old program first or use another empty area.
- Type a number at every prompt; do not leave one empty. The program overwrites M, A, B, C (and D when used) and sets Norm 1. It shows one result: AC leaves, EXE runs it again from the start.
- A wrong function number, a negative weight, a zero denominator or no positive ratio in function 3 gives Math ERROR. In function 2 a percentage should lie between 0 and 100; the program also handles ordinary means, so it does not cut answers to that range.
Checking access…