Basic MathematicsUnit 99 min read
Set Theory and Probability – Venn diagrams, counting, conditional probability, expectations
Unit 9 of Basic Mathematics: introduces sets, operations, counting techniques, basic probability rules, conditional probability, Bayes theorem and discrete random variables with worked examples and real‑world applications for TU students.
Key points
- Sets are described by clear notation; Venn diagrams visualize unions, intersections and complements.
- Counting principles (addition, multiplication, permutations, combinations) turn word problems into numbers.
- Probability is a normalized count; the axioms guarantee consistency.
- Conditional probability and Bayes theorem link events and update beliefs.
- Expectation and variance summarise the behaviour of discrete random variables.
- Real‑world examples (eSewa, Daraz, Ncell) illustrate each concept, helping exam recall.
1. Sets and Set Operations
A set is a collection of distinct objects, called elements.
Notation: ; means “ is an element of ”.
1.1 Common Operations
| Operation | Symbol | Meaning |
|---|---|---|
| Union | Elements in A or B (or both) | |
| Intersection | Elements in both A and B | |
| Complement | (relative to universal set ) | Elements in not in A |
| Difference | Elements in A but not in B | |
| Symmetric Difference | Elements in exactly one of A or B |
1.2 Worked Example – Newspaper Survey
A survey of 500 students gave:
- : read Kathmandu Post = 280
- : read Rising Nepal = 190
- : read Himalayan Times = 110
Find the number of students who read none of the three newspapers.
Solution (Inclusion–Exclusion):
Students reading none:
The diagram shows each region shaded with the exact count, making the inclusion–exclusion step visible.
2. Counting Principles
2.1 Addition Principle
If a task can be performed in m ways or n ways (mutually exclusive), total ways = .
2.2 Multiplication Principle
If a task consists of two independent stages, with m ways for stage 1 and n ways for stage 2, total ways = .
2.3 Permutations
Ordered arrangements of objects from distinct objects:
2.4 Combinations
Unordered selections of objects from :
2.5 Worked Example – Daraz Order Queue
Daraz processes orders in three stages:
- Pick a product (10 different items).
- Choose a delivery slot (4 slots).
- Select a payment method (3 options).
How many distinct order configurations are possible?
Using the multiplication principle:
If the marketing team wants to know how many ways to choose 2 products for a bundle (order does not matter):
3. Basics of Probability
3.1 Axioms
- Non‑negativity: .
- Normalization: where is the sample space.
- Additivity: For mutually exclusive , .
3.2 Classical Definition
If all outcomes are equally likely,
3.3 Worked Example – Lottery Ticket
A simple lottery draws 1 number from .
Probability of winning (choosing the exact number):
4. Conditional Probability and Bayes Theorem
4.1 Conditional Probability
4.2 Multiplication Rule
4.3 Bayes Theorem
4.4 Worked Example – Ncell Call Drop
Suppose Ncell reports:
- 5 % of all calls drop ().
- 30 % of calls are made during peak hours ().
- Among peak‑hour calls, 12 % drop ().
Find the probability that a dropped call occurred during peak hours, i.e., .
First compute .
Then apply Bayes:
So 72 % of dropped calls happen in peak hours.
5. Discrete Random Variables
A random variable assigns a real number to each outcome of a random experiment.
5.1 Probability Mass Function (PMF)
For discrete ,
5.2 Expectation and Variance
5.3 Worked Example – Bank Loan Interest
A bank offers a fixed‑rate loan with interest rates (in % per annum) based on credit score:
| Credit score | Probability |
|---|---|
| 600–649 | 0.25 |
| 650–699 | 0.40 |
| 700–749 | 0.20 |
| 750+ | 0.15 |
Corresponding interest rates: 12, 10, 8, 6 respectively.
Find the expected interest rate.
Variance:
6. Comparison of Counting Tools
| Tool | Ordered? | Repetition allowed? | Formula | Typical use |
|---------------------|----------|---------------------|--------------------------------------|-------------|
| Permutations \(P(n,r)\) | Yes | No | \(\frac{n!}{(n-r)!}\) | Seating arrangements |
| Combinations \(C(n,r)\) | No | No | \(\binom{n}{r}\) | Selecting a committee |
| Variations with repetition | Yes | Yes | \(n^{r}\) | Password generation |
| Multiset combinations | No | Yes | \(\binom{n+r-1}{r}\) | Distributing identical items |
7. Applications in the Real World
7.1 eSewa – Set Operations
When a user selects multiple payment methods (eSewa wallet, credit card, bank transfer), the system internally treats the set of available methods as .
- Union of promotions: .
- Intersection for eligibility: a user must belong to both registered and verified sets to use a high‑value transfer.
7.2 Daraz – Counting & Probability
Daraz’s flash sale offers 5 limited‑stock items. The probability that a randomly arriving customer gets the first item is
If the sale runs for 3 hours and each hour 200 customers arrive (independent), the expected number of first‑item sales is
7.3 Ncell – Conditional Probability
Network engineers use conditional probability to predict call drop during peak hours (as shown in the worked example). The result guides capacity planning: if , then upgrading peak‑hour towers reduces overall drop rate most efficiently.
7.4 NEPSE – Expectation
Investors model daily price changes as a discrete random variable with probabilities derived from historical frequencies. The expected daily return informs portfolio decisions.
8. Summary of Key Formulas
| Concept | Formula |
|---|---|
| Union (two sets) | |
| Inclusion–Exclusion (three sets) | |
| Permutation | |
| Combination | |
| Classical probability | |
| Conditional probability | |
| Bayes theorem | |
| Expectation | |
| Variance |
In the real world
- eSewa uses set theory to manage eligible payment options: a user belongs to the set Verified ∩ Has Wallet Balance to use the instant transfer feature.
- Daraz applies counting principles when generating bundle offers: choosing 3 items from 12 best‑sellers gives possible bundles, each displayed as a separate product page.
- Ncell relies on conditional probability to allocate extra bandwidth: if and peak traffic occupies 30 % of total time, the network team predicts that 72 % of all drops happen during peak, prompting targeted upgrades.
Exam tip
- Venn diagrams are worth 2 marks each; always label every region with the exact count before applying inclusion–exclusion.
- For probability questions, write the sample space size first, then apply the classical formula; this prevents arithmetic slips.
- When a problem mentions “ordered” vs “unordered”, instantly decide between permutations and combinations—the exam often tests this distinction.
- For conditional probability, sketch a two‑branch tree (use the provided tree figure as a template) to keep track of and .
- Remember the expectation shortcut: . If the PMF is symmetric (e.g., fair dice), you can use the known mean (3.5 for a die) to save time.
Focus on clear notation, step‑by‑step calculations, and a quick visual check (Venn, tree, or bar chart) before writing the final answer. Good luck!
Based on the TU BITM syllabus for Basic Mathematics (MTH204), unit 9.
Discussion
Loading…