HPSC HCS course‹› 0:00 studied

HPSC HCS · Module 68 · Mains depth · 16 min

Venn diagrams and set counting

What HPSC HCS asks from this chapter

Syllabus lines this chapter covers:

  • Prelims Paper I: General Studies · General mental ability
  • Prelims Paper II: CSAT · Logical reasoning and analytical ability

HPSC HCS has asked 9 questions from this chapter (2023, 2022, 2021); 65 from its whole module.

Read at full depth: basics, the standard layer and the Mains analysis.

Start from zero: tea, coffee and the overlap

In a class of 40, 25 students like tea and 20 like coffee, and 10 like both. How many like at least one of the two? Adding 25 and 20 gives 45, which is more than the class, so something is wrong.

Tea, coffee and the overlap

The 10 who like both were counted in the 25 and again in the 20. Remove the double count: 25 + 20 − 10 = 35 like at least one. The other 40 − 35 = 5 like neither.

Draw two overlapping circles inside a box for the class. The middle holds 10, tea only holds 25 − 10 = 15, coffee only holds 20 − 10 = 10 and outside holds 5. Add them, 15 + 10 + 10 + 5 = 40, and the picture checks itself.

Why this topic exists. Surveys, beneficiary lists and census tables constantly overlap: households with a toilet and with a gas connection, students with a scholarship and with hostel seats. Counting such groups without double counting is a basic skill of planning, and a wrong total can misstate how many people a scheme reaches.

Which diagram fits three words?

The one question per pair. For each pair of classes ask: is every member of one also a member of the other, do some but not all members overlap, or do they share nothing? Inside, overlap or separate: three pairs, three answers, and the diagram is fixed.

Five common Venn shapes

Five shapes cover almost every question. India, Bihar and Patna are three nested circles, since Patna is inside Bihar and Bihar inside India. Fruits, apples and vegetables give apples inside fruits, with vegetables as a separate circle. Rivers, mountains and lakes are three separate circles.

The two tricky shapes. Women, mothers and doctors: every mother is a woman, so mothers sit inside women, while doctors overlap both, because some doctors are women and some are mothers. Teachers, graduates and men overlap all three ways, since a person can be any mix of the three.

Read the words, not the picture in your head. "Animals, dogs, pets": all dogs are animals, but not every dog is a pet and not every pet is a dog. So dogs sit inside animals, pets also sit inside animals, and dogs and pets overlap. The clue is always the logical relation, not what feels typical.

Why it matters. Classification questions are quick marks if the pair test is done carefully. Most wrong answers come from assuming two classes are separate when they actually overlap.

Two sets: one formula, four questions

The formula. n(A ∪ B) = n(A) + n(B) − n(A ∩ B). The union is everyone in at least one set, and the intersection is everyone in both. Add a total T and you get the fourth number, neither = T − n(A ∪ B).

Any one unknown can be found. In a survey of 100 people, 60 read a Hindi paper, 50 read an English paper and 20 read neither. Then 80 read at least one, so both = 60 + 50 − 80 = 30. Hindi only is 60 − 30 = 30 and English only is 50 − 30 = 20.

Percentages are counts out of 100. If 80% passed English, 70% passed maths and 10% failed both, then 90% passed at least one. So 80 + 70 − 90 = 60% passed both. If we are told 300 students passed both, the total is 300 ÷ 0.6 = 500.

Four regions, always. Two sets inside a total split everyone into four regions: A only, both, B only and neither. Every two-set question gives you some of these, directly or through sums, and asks for another; writing the four boxes and filling them is often faster than recalling the formula.

Why it matters. This single formula answers most set questions in aptitude papers. The skill is recognising which of the four numbers is missing.

Three sets: fill from the centre

The data. Of 100 students, 50 study maths, 40 science and 30 English. 15 study maths and science, 10 science and English, 12 maths and English, and 5 study all three.

Filling three circles from the centre

The formula. Union = 50 + 40 + 30 − 15 − 10 − 12 + 5 = 88, so 12 study none. Adding the singles counts every pair overlap twice and the centre three times; subtracting the pairs removes the centre three times, so it must be added back once.

Filling the regions. Start with the centre, 5. The pair-only regions are each pair minus the centre: maths–science only 15 − 5 = 10, science–English only 10 − 5 = 5 and maths–English only 12 − 5 = 7. Then each single-only region is its circle minus everything else inside it: maths only 50 − 10 − 7 − 5 = 28, science only 40 − 10 − 5 − 5 = 20 and English only 30 − 5 − 7 − 5 = 13.

The self-check. Add the seven regions: 28 + 20 + 13 + 10 + 5 + 7 + 5 = 88, the same as the formula. Add the 12 outside and the total is 100. If the regions do not add up, a subtraction went wrong, and the check catches it before you answer.

Why it matters. Questions on three sets rarely ask only for the union; they ask for "only maths", "exactly two" or "none". Filling the diagram from the centre gives every one of these at once.

Exactly one, exactly two, at least two

From the filled diagram. In the example above, exactly two is the sum of the pair-only regions, 10 + 5 + 7 = 22. Exactly one is the sum of the single-only regions, 28 + 20 + 13 = 61. At least two is exactly two plus all three, 22 + 5 = 27.

Without drawing. Each pair total counts its pair-only region once and the centre once, so the three pairs together count the centre three times. Hence exactly two = 37 − 3 × 5 = 22. Similarly, exactly one = (sum of singles) − 2 × (sum of pairs) + 3 × (triple) = 120 − 74 + 15 = 61.

Checking with the union. Exactly one + exactly two + all three should equal the union: 61 + 22 + 5 = 88. That is a quick test that every formula was applied correctly.

Which to use. If the question asks for several regions, fill the diagram. If it asks for just "exactly two" in a hurry, the formula is faster, but write the numbers down so a single slip does not decide the answer.

Why it matters. "Exactly" and "at least" are the words examiners use to separate careful readers from fast guessers. They are different counts, and both appear among the options on purpose.

Least and greatest overlap

The question. In a group of 100, 70 like tea and 60 like coffee. How many like both? With no more data the overlap is not fixed, but it can only lie in a range.

The least overlap. The two groups have 70 + 60 = 130 places to fill among only 100 people, so at least 130 − 100 = 30 people must be in both. In general the least overlap is n(A) + n(B) − T, or zero if that is negative.

The greatest overlap. The overlap cannot be bigger than the smaller group, so at most 60 like both, which happens when every coffee lover also likes tea. Then the union is just 70 and 30 people like neither.

Using the range. A question may ask "which of these cannot be the number who like both?" Any number below 30 or above 60 is impossible. Mains-style questions may ask you to explain the range, and the two sentences above are the full argument.

Why it matters. Range questions test understanding rather than formula recall. They also mirror real planning, where data give limits rather than exact figures and an officer must state what is certain.

Where and why this is asked

Why examiners test it. Overlapping groups are everywhere in public data: households covered by two schemes, villages with both a school and a health centre, voters in two lists. An officer who adds overlapping figures without removing the common part will overstate coverage, and set reasoning is the guard against that error.

Where it shows up. The union aptitude paper regularly asks two-set and three-set counting questions, often in percentages, and sometimes the least or greatest overlap. State papers and recruitment exams add classification questions where you pick the diagram that fits three words.

When it goes wrong. The common slips are adding two groups without subtracting the overlap, forgetting the "neither" group outside the circles, confusing "exactly two" with "at least two" and placing classes as separate when they overlap.

The habit to build. Always draw the box for the total, fill regions from the centre, and add all regions at the end to see that they make the total. For classification, test each pair with the inside, overlap or separate question.

Exam lens: five question types and how to beat each

These are practice questions written by us, in the styles the papers use. Real past questions from your exam appear in the PYQ panel of this module.

Type 1: classification. "Which diagram represents women, mothers and doctors?" Mothers inside women, and doctors overlapping both: a pair of nested circles crossed by a third circle.

Type 2: two-set count. "In a class of 40, 25 like tea, 20 like coffee and 10 like both. How many like neither?" At least one is 35, so 5 like neither.

Type 3: percentages. "80% passed English, 70% passed maths and 10% failed both. What percentage passed both?" At least one is 90%, so 60% passed both.

Type 4: three sets. "Of 100 students, 50 study maths, 40 science and 30 English; 15, 10 and 12 study the three pairs and 5 study all three. How many study none?" The union is 88, so 12 study none.

Type 5: least overlap. "In a group of 100, 70 like tea and 60 like coffee. What is the least number who like both?" 70 + 60 − 100 = 30.

Time plan. Types 1 to 3 should take under 30 seconds each. Three-set questions take about a minute with the diagram filled from the centre.

Practice set: twelve solved problems

Try each problem first, then read the steps. The problems go from easy to hard.

1. Which diagram represents India, Bihar and Patna?

Patna is inside Bihar and Bihar inside India. The answer is three nested circles.

2. In a class of 50, 30 play cricket, 25 play football and 10 play both. How many play neither?

At least one is 30 + 25 − 10 = 45, so 50 − 45 play neither. The answer is 5.

3. In problem 2, how many play only cricket?

Only cricket is 30 − 10. The answer is 20.

4. Of 120 people, 70 speak Hindi and 60 speak English, and everyone speaks at least one. How many speak both?

Both is 70 + 60 − 120. The answer is 10.

5. In a town, 65% like tea, 55% like coffee and 20% like neither. What percentage like both?

At least one is 80%, so both is 65 + 55 − 80. The answer is 40%.

6. In problem 5, if 200 people like both, what is the population?

40% of the population is 200, so it is 200 ÷ 0.4. The answer is 500.

7. Of 60 people, 30 like A, 25 like B and 20 like C; 10 like A and B, 8 like B and C, 6 like A and C, and 4 like all three. How many like none?

The union is 75 − 24 + 4 = 55, so 60 − 55 like none. The answer is 5.

8. In problem 7, how many like exactly two?

Exactly two is 24 − 3 × 4. The answer is 12.

9. In problem 7, how many like exactly one?

Exactly one is 75 − 2 × 24 + 3 × 4, and 39 + 12 + 4 = 55 checks it. The answer is 39.

10. In a group of 80, 40 like A and 55 like B. What is the least number who like both?

The least overlap is 40 + 55 − 80. The answer is 15.

11. Which diagram represents fruits, apples and vegetables?

Apples sit inside fruits, and vegetables share nothing with either. The answer is one circle inside another, with a separate third circle.

12. In a town of 1,000 families, 40% read paper A, 20% read B and 10% read C; 5% read A and B, 3% read B and C, 4% read A and C, and 2% read all three. How many families read none?

The union is 70 − 12 + 2 = 60%, so 40% read none, which is 40% of 1,000. The answer is 400.

Quick revision

One-page summary box
  • For each pair of classes: inside, overlap or separate.
  • n(A ∪ B) = n(A) + n(B) − n(A ∩ B); neither = total − union.
  • Only A = n(A) − n(A ∩ B).
  • Three sets: union = singles − pairs + triple.
  • Fill three circles from the centre: centre, then pair-only, then single-only.
  • Exactly two = pairs − 3 × triple; exactly one = singles − 2 × pairs + 3 × triple.
  • Least overlap = n(A) + n(B) − total (not below zero); greatest = the smaller set.
  • Percentages: treat the total as 100, then scale.
  • Check: all regions plus the outside must add up to the total.

HPSC HCS questions from this chapter

  1. 2023 · HPSC HCS Prelims · Civil Services Aptitude Test (Preliminary) · 1 marks

    Study the following informations carefully and answer the questions given below it. Alok and Parth like tea and milk, Deepak and Aditya like coffee and shake, Vijay and Parth like juice and milk. Aditya like coffee, milk and shake, Deepak like tea, coffee and juice. Which of the following do not like milk?

    1. (a) Parth
    2. (b) Deepak
    3. (c) Aditya
    4. (d) Vijay
    Show answer

    (b) Deepak · our answer; official key awaited

  2. 2023 · HPSC HCS Prelims · Civil Services Aptitude Test (Preliminary) · 1 marks

    Study the following informations carefully and answer the questions given below it. Alok and Parth like tea and milk, Deepak and Aditya like coffee and shake, Vijay and Parth like juice and milk. Aditya like coffee, milk and shake, Deepak like tea, coffee and juice. Which of the following do not like juice?

    1. (a) Vijay
    2. (b) Parth
    3. (c) Aditya
    4. (d) Deepak
    Show answer

    (c) Aditya · our answer; official key awaited

  3. 2023 · HPSC HCS Prelims · Civil Services Aptitude Test (Preliminary) · 1 marks

    Study the following informations carefully and answer the questions given below it. Alok and Parth like tea and milk, Deepak and Aditya like coffee and shake, Vijay and Parth like juice and milk. Aditya like coffee, milk and shake, Deepak like tea, coffee and juice. Who like tea, shake, juice and coffee but not milk?

    1. (a) Deepak
    2. (b) Parth
    3. (c) Aditya
    4. (d) Vijay
    Show answer

    (a) Deepak · our answer; official key awaited

  4. 2022 · HPSC HCS Prelims · Civil Services Aptitude Test (Preliminary) · 1 marks

    Avin, Mandar, Sarang, Sarfaraz, Balram and Samir are six friends who have invested in either Mutual Funds or Fixed Deposits or both. Only two friends have not invested in Mutual Funds. Balram has invested in Mutual Funds and also Fixed Deposits. Only one other friend has invested in both. Sarang has not invested in Mutual Funds. Samir does not have Fixed Deposits. Sarfaraz has invested in only one of the two. Mandar has invested in only Fixed Deposits. Who other than Balram has invested in both Mutual Funds and Fixed Deposits?

    1. (a) Samir
    2. (b) Sarfaraz
    3. (c) Avin
    4. (d) Mandar
    Show answer

    (c) Avin · our answer; official key awaited

  5. 2022 · HPSC HCS Prelims · Civil Services Aptitude Test (Preliminary) · 1 marks

    Which number is in the square, ellipse and triangle? (Figure of overlapping square, ellipse, triangle and rectangle with numbers 1 to 11.)

    1. (a) 1
    2. (b) 5
    3. (c) 6
    4. (d) 7
  6. 2022 · HPSC HCS Prelims · Civil Services Aptitude Test (Preliminary) · 1 marks

    Which of the following diagrams represents a relationship between players and footballers?

    1. (a) Two overlapping triangles
    2. (b) Two separate circles
    3. (c) Two separate triangles
    4. (d) One triangle inside another
    Show answer

    (d) One triangle inside another · our answer; official key awaited

  7. 2022 · HPSC HCS Prelims · Civil Services Aptitude Test (Preliminary) · 1 marks

    Out of four friends A, B, C and D; A and B play football and cricket. B and C play cricket and hockey. A and D play basketball and football. C and D play hockey and basketball. Which game is common to B, C and D?

    1. (a) Basketball
    2. (b) Hockey
    3. (c) Cricket
    4. (d) Football
    Show answer

    (b) Hockey · our answer; official key awaited

  8. 2021 · HPSC HCS Prelims · Civil Services Aptitude Test (Preliminary) · 1 marks

    Below is given a venn diagram. Irrespective of what normal belief is, the depictions in the venn diagrams are to be considered correct. Based on this diagram, select which of the given statements have a possibility of being true. Statement A: Some stickers are sheets Statement B: Some stickers are mats Statement C: No sheets are mats Statement D: Some carpets are stickers (Diagram 1: Mats overlaps Carpets; Carpets overlaps Sheets and Wallpapers; Sheets overlaps Wallpapers; Mats touches neither Sheets nor Wallpapers. Diagram 2: Stickers lies wholly inside Wallpapers.)

    1. (a) Statements A, B and C only
    2. (b) Statements A, B and D only
    3. (c) Statements A, C and D only
    4. (d) All Statements A, B, C and D
    Show answer

    (c) Statements A, C and D only · our answer; official key awaited

  9. 2021 · HPSC HCS Prelims · Civil Services Aptitude Test (Preliminary) · 1 marks

    Below is given a venn diagram. Irrespective of what normal belief is, the depictions in the venn diagrams are to be considered correct. Based on this diagram, select which of the given statements have a possibility of being true. Statement A: Some oceans are canals Statement B: No rivers are lakes Statement C: Some oceans are there which are river, pond and canal at the same time. Statement D: All lakes are ponds (Diagram: inside Oceans are two separate circles, Rivers and Lakes; Ponds and Canals overlap each other and the edge of Oceans, away from Rivers and Lakes.)

    1. (a) Statements A and C only
    2. (b) Statements A and B only
    3. (c) Statements C and D only
    4. (d) Statements A, B and C only
    Show answer

    (b) Statements A and B only · our answer; official key awaited

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 28 answered

  1. In a group of 149, 62 like tea, 88 like coffee and 18 like both. How many like neither?

  2. In a group of 149, 62 read Hindi papers, 88 read English papers and 18 read both. How many read only Hindi papers?

  3. In a group of 149, 62 play cricket, 88 play football and 17 play neither. How many play both?

  4. In a group of 149, 62 like A and 88 like B. What is the least number who like both?

  5. In a group of 110, 32 like tea, 52 like coffee and 12 like both. How many like neither?

  6. In a group of 110, 32 read Hindi papers, 52 read English papers and 12 read both. How many read only Hindi papers?

  7. In a group of 110, 32 play cricket, 52 play football and 38 play neither. How many play both?

  8. 88% of students passed English, 59% passed maths and 6% failed both. What percentage passed both?

  9. In a group of 85, 55 like tea, 28 like coffee and 13 like both. How many like neither?

  10. In a group of 85, 55 read Hindi papers, 28 read English papers and 13 read both. How many read only Hindi papers?

  11. In a group of 85, 55 play cricket, 28 play football and 15 play neither. How many play both?

  12. 72% of students passed English, 34% passed maths and 11% failed both. What percentage passed both?

  13. In a group of 72, 43 like tea, 39 like coffee and 37 like both. How many like neither?

  14. In a group of 72, 43 read Hindi papers, 39 read English papers and 37 read both. How many read only Hindi papers?

  15. In a group of 72, 43 play cricket, 39 play football and 27 play neither. How many play both?

  16. In a group of 72, 43 like A and 39 like B. What is the least number who like both?

  17. 64% of students passed English, 54% passed maths and 11% failed both. What percentage passed both?

  18. 57% of students passed English, 75% passed maths and 18% failed both. What percentage passed both?

  19. In a group of 124, 54 like A and 78 like B. What is the least number who like both?

  20. In a group of 174, 115 like A and 94 like B. What is the least number who like both?

  21. Of 64 people, 22 like A, 33 like B and 28 like C; 9 like A and B, 12 like B and C, 10 like A and C, and 6 like all three. How many like none?

  22. Of a group, 9 like A and B, 12 like B and C, 10 like A and C, and 6 like all three. How many like exactly two?

  23. Of 60 people, 22 like A, 20 like B and 41 like C; 7 like A and B, 12 like B and C, 13 like A and C, and 4 like all three. How many like none?

  24. Of a group, 7 like A and B, 12 like B and C, 13 like A and C, and 4 like all three. How many like exactly two?

  25. Of 78 people, 27 like A, 30 like B and 36 like C; 11 like A and B, 10 like B and C, 9 like A and C, and 5 like all three. How many like none?

  26. Of a group, 11 like A and B, 10 like B and C, 9 like A and C, and 5 like all three. How many like exactly two?

  27. Of 79 people, 40 like A, 40 like B and 21 like C; 15 like A and B, 14 like B and C, 10 like A and C, and 6 like all three. How many like none?

  28. Of a group, 15 like A and B, 14 like B and C, 10 like A and C, and 6 like all three. How many like exactly two?

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Frequently asked questions

Which Venn diagram fits India, Bihar and Asia?

Three nested circles: Bihar inside India inside Asia.

What is the three-set union formula?

A + B + C − (AB + BC + CA) + ABC.

Of 100 students, 60 like tea, 50 coffee and 20 both. How many like neither?

100 − (60 + 50 − 20) = 10.

How do you find those in exactly two sets?

Sum of the pairwise overlaps minus three times the triple overlap.