1. University MCA (AI/ML) Semester 1
  2. PEA515
  3. Unit 1

PEA515 · Unit 1: Number system and averages

Average calculations and inclusion and exclusion

37 practice questions · in the MTE and ETE syllabus

Key points

  • Sum = average x count
  • Replacing one member shifts the average by the difference divided by n
  • Union = A + B - both
  • Remember the group that is in none of the sets

Average = sum of values / number of values, so sum = average x count. For an evenly spaced list (such as consecutive numbers) the average is (first + last)/2.

Changing the group: if one member is replaced, the average changes by (new - old)/n. If a member joins and the average rises by d, the newcomer exceeds the old average by d x (n + 1). Combining groups: new average = (n1 x a1 + n2 x a2)/(n1 + n2).

Inclusion and exclusion counts people in overlapping sets without double counting:

  • Two sets: |A union B| = |A| + |B| - |A and B|.
  • Three sets: |A union B union C| = |A| + |B| + |C| - |A and B| - |B and C| - |A and C| + |A and B and C|.

Example: in a class of 50, 30 take maths and 25 take physics, and 10 take neither. Then 40 take at least one, so both = 30 + 25 - 40 = 15.

Exam trap: forgetting the "neither" group, or adding the pairwise overlaps instead of subtracting them.

Try two questions

Question 1 · Tier 3, Apply

Find the average of the following 7 values: 68, 67, 78, 65, 78, 60, 102.

  1. 68
  2. 64.75
  3. 74
  4. 81
Show the answer

C. Sum = 518, divided by 7 gives 74.

Why not A: Reports the middle value instead of the arithmetic mean.

Why not B: Divides the total by one more than the number of values.

Why not D: Uses the midpoint of the extremes.

Question 2 · Tier 3, Apply

In an examination, 70% of the candidates passed in English, 65% passed in Mathematics and 10% failed in both. Using inclusion and exclusion, what percentage passed in both subjects?

  1. 35%
  2. 45%
  3. 55%
  4. 25%
Show the answer

B. Passed in at least one = 100 - 10 = 90%. Passed in both = 70 + 65 - 90 = 45%.

Why not A: Subtracts the 10% from the sum of passes without using the union.

Why not C: Adds the 10% failing in both instead of subtracting it from 100.

Why not D: Subtracts each failure rate from 100 and adds them.