ExamSaathi learning library · School · CBSE Class 9 Mathematics 2026-27; teacher review pending · Mathematics

Weighted averages and stacked bar graphs: reading data made of parts

Combine group averages, mixtures and marks with a weighted average, the sum of weight x value divided by the sum of the weights, see why a plain average of averages can mislead, and read stacked and 100 percent stacked bar graphs for amounts and for shares.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

The mean of a list is its sum divided by the number of values. A statistical investigation usually starts with a statistical investigative question, one that is answered by collecting data that vary, such as 'How long do students in our school take to reach school each day?' rather than 'How long did Ravi take today?' Once the data are in, two needs come up again and again. One is combining averages from groups of different sizes, or mixing quantities of different strengths. The other is showing totals that are made of parts. This lesson handles the first with the weighted average and the second with stacked bar graphs.

The weighted average

In a weighted average every value gets a weight that says how much it counts. Weighted average = (w1 x v1 + w2 x v2 + ...)/(w1 + w2 + ...), where v1, v2 and so on are the values and w1, w2 and so on are their weights. The weights can be group sizes, quantities in a mixture or the parts of a marks scheme. Take Section A with 30 students averaging 62 marks and Section B with 20 students averaging 72. The section totals are 30 x 62 = 1860 and 20 x 72 = 1440, so the average for all 50 students is (1860 + 1440)/50 = 3300/50 = 66. The plain average of 62 and 72 is 67, which is wrong here because it treats the smaller section as if it were as big as the larger one. With positive weights, a weighted average always lies between the smallest and the largest value; with just two values it sits nearer the one with the bigger weight, and raising any value's weight pulls the average towards that value. When all the weights are equal it is just the ordinary mean, so a plain average of group averages is sure to give the combined average when the groups have the same size; otherwise use the group sizes as weights.

Mixtures and marks schemes

When two quantities of different strengths are mixed, the strength of the mixture is a weighted average of the strengths, with the quantities as weights. A dairy mixes 40 litres of milk with 6 percent fat and 60 litres with 3.5 percent fat. Fat in the mixture = (40 x 6 + 60 x 3.5)/(40 + 60) = (240 + 210)/100 = 4.5 percent, nearer 3.5 because there is more of that milk. Marks schemes work the same way. If a school combines project, tests and final exam in the ratio 1 : 1 : 3, the weights are 1, 1 and 3. A student with 85, 70 and 64 gets (1 x 85 + 1 x 70 + 3 x 64)/(1 + 1 + 3) = 347/5 = 69.4, while the plain mean of the three marks is 73. The ratio tells you how much each part counts, so divide by the sum of the ratio numbers, not by the number of parts.

Stacked and 100 percent stacked bar graphs

A stacked bar graph shows each total as one bar cut into pieces, one piece for each part. The full length of a bar gives the total, so totals are easy to compare. Only the bottom piece starts at 0; every other piece starts where the one below it ends. To read a middle piece, subtract the scale value at its lower edge from the value at its upper edge. In a 100 percent stacked bar graph every bar has the same length, standing for 100 percent of that bar's own total, and each piece shows a share. It is useful for comparing how different totals are split, but it hides the actual amounts. A stacked bar graph can always be turned into a 100 percent one by dividing each piece by its bar's total, but a 100 percent graph cannot be turned back without knowing the totals. Older books call these graphs sub-divided or component bar diagrams and percentage bar diagrams.

Common mistakes

Averaging the averages of groups of different sizes is the classic slip; weight each average by its group size. Dividing by the number of groups or parts instead of by the sum of the weights is another. Percentages of different amounts cannot simply be added, and their plain average is right only when the amounts are equal: 6 percent fat and 3.5 percent fat do not give 9.5 percent, and give 4.75 percent only for equal quantities. In a stacked bar graph, the scale value at the top of a middle piece is a running total, not the size of that piece. In a 100 percent stacked bar graph, a bigger share does not mean a bigger amount: 50 percent of 200 students is 100, but 40 percent of 400 students is 160. And all the bars in a 100 percent graph look equal even when the real totals are very different.

A short routine

For a weighted average: 1. List each value with its weight (group size, quantity or ratio number). 2. Multiply each value by its weight and add the products. 3. Add the weights. 4. Divide the first sum by the second. 5. Check that the answer lies between the smallest and the largest value; with two values it should sit nearer the one with the bigger weight. For a stacked bar graph: read each total from the end of its bar, read each piece as upper edge minus lower edge, and find a share as piece divided by total x 100. For a 100 percent stacked bar graph: compare shares within and across bars, but compare amounts only when the totals are given.

Worked examples

  1. Class 9A has 36 students whose average quiz score is 58, and Class 9B has 24 students whose average is 68. Find the average for all 60 students and compare it with the plain average of 58 and 68.

    1. Total score of 9A = 36 x 58 = 2088, and total score of 9B = 24 x 68 = 1632.
    2. Combined average = (2088 + 1632)/(36 + 24) = 3720/60 = 62.
    3. The plain average of 58 and 68 is 63, which is too high: it gives the smaller class 9B as much say as 9A.
    4. The answer 62 lies between 58 and 68 and nearer 58, because 9A has more students.

    Answer: The average for all 60 students is 62, not the plain average 63.

  2. Meera scores 80 in projects, 65 in periodic tests and 70 in the final exam. Her school combines these in the ratio 2 : 3 : 5. Find her overall score.

    1. The weights are 2, 3 and 5, and their sum is 10.
    2. Sum of weight x score = 2 x 80 + 3 x 65 + 5 x 70 = 160 + 195 + 350 = 705.
    3. Overall score = 705/10 = 70.5.
    4. The plain mean (80 + 65 + 70)/3 is about 71.7. The weighted score is lower because her best mark, 80, carries only 2 of the 10 weights, while the 65 and the 70 carry 8 of them.

    Answer: Meera's overall score is 70.5.

  3. A stacked bar graph shows the monthly spending of two households in rupees. Household P's bar has food up to Rs. 6,000, rent from there up to Rs. 15,000 and travel from there up to Rs. 18,000. Household Q's bar has food up to Rs. 10,000, rent up to Rs. 21,000 and travel up to Rs. 25,000. Each bar has only these three pieces. Which household spends more on rent, and which spends a bigger share of its total on rent?

    1. Read each rent piece as upper edge minus lower edge: P spends 15,000 - 6,000 = Rs. 9,000 and Q spends 21,000 - 10,000 = Rs. 11,000 on rent.
    2. The totals are the ends of the bars: Rs. 18,000 for P and Rs. 25,000 for Q.
    3. Share of rent: for P, 9,000/18,000 x 100 = 50 percent; for Q, 11,000/25,000 x 100 = 44 percent.
    4. So Q spends more rupees on rent, but rent takes a bigger share of P's spending; a 100 percent stacked bar graph would show only the second fact.

    Answer: Q spends more on rent (Rs. 11,000 against Rs. 9,000), but P spends a bigger share of its total (50 percent against 44 percent).

Practice checks

  1. Section A has 40 students with an average of 70 marks, and Section B has 10 students with an average of 50 marks. What is the average for all 50 students?
  2. 5 litres of milk with 6 percent fat are mixed with 15 litres of milk with 4 percent fat. What is the fat percentage of the mixture?
  3. At a science fair, a team scores 8 for the idea, 6 for the model and 9 for the presentation. The judges combine these in the ratio 3 : 2 : 1. What is the final score?
  4. In a 100 percent stacked bar graph of favourite sports, cricket fills 50 percent of School X's bar and 40 percent of School Y's bar. Which statement can be concluded?
  5. A stacked bar graph of a shop's June sales has a bar with only two pieces: cash at the bottom, ending at Rs. 30,000, and UPI on top, ending at Rs. 80,000, where the bar ends. What were the UPI sales, and what share of the total were they?

Sources checked