MTH216 Probability and Statistics

Probability and StatisticsUnit 29 min read

Probability Basics, Events, Axioms & Rules

Unit 2 of Probability and Statistics covers the foundational concepts of probability: sample spaces, events, axioms of probability, conditional probability, independent events, Bayes’ theorem, and combinatorial methods. This note explains each with definitions, visuals, and real-world applications from Nepalese tech co

TAKEAWAYS:

  • Probability quantifies uncertainty using three axioms (Kolmogorov) and rules (addition, multiplication, complement).
  • Events are subsets of sample spaces, classified as simple, compound, mutually exclusive, or exhaustive.
  • Conditional probability () and independence () reveal how events influence each other.
  • Bayes’ theorem updates probabilities with new evidence: .
  • Combinatorics (permutations, combinations) calculates probabilities for complex events.
  • Real-world systems (e.g., Khalti’s fraud detection, Ncell’s call routing) use these rules to optimize decisions.

1. Sample Space and Events

UABH, T1, 2, 3, 4, 5, 6H1, H2, H3, H4, H5, H6, T1, T2, T3, T4, T5, T6
Sample Space for Coin + Die: S = {H1, H2, ..., T6}

Definitions

  • Sample Space (S): The set of all possible outcomes of an experiment. Example: Rolling a die → .
  • Event (E): A subset of S representing one or more outcomes. Example: "Rolling an even number" → .

Types of Events

Type Definition Example (Die Roll)
Simple Event Single outcome
Compound Event Multiple outcomes
Mutually Exclusive Cannot occur simultaneously ,
Exhaustive Covers all outcomes

Visual: Venn Diagram of Events

Worked Example 1: A box contains 4 red and 3 blue balls. What is the probability of drawing:

  1. A red ball?
  2. A blue ball?
  3. Not a red ball?

Solution:

  • Sample space (7 balls).
  • , , .

Real-World Tie-In: Khalti’s Transaction System

  • Event: "Transaction approved" ().
  • Sample Space: All possible transactions (approved, declined, pending).
  • Probability Rule: Khalti uses conditional probability to flag fraud: . Visual: See Bayes’ Theorem section for how this works.

2. Axioms of Probability (Kolmogorov)

Probability is defined by three axioms:

  1. Non-negativity: for any event .
  2. Normalization: (total probability = 1).
  3. Additivity: For mutually exclusive events , .

Visual: Probability on a Number Line

Worked Example 2: A student opens eSewa and sees:

  • 60% chance of a successful payment ().
  • 30% chance of a failed payment ().
  • 10% chance of network error (). Are and mutually exclusive? Verify using axioms.
01P(A) = 0.3P(A') = 0.7
Probability as a Point on [0, 1]

Solution:

  • .
  • Not mutually exclusive because (overlap possible, e.g., partial failure).
  • Axiom 3 fails if and are not disjoint.

3. Probability Rules

Complement Rule

Example: Probability of not raining tomorrow if → .

Addition Rule

For any two events (mutually exclusive or not):

Multiplication Rule

For independent events:

Visual: Venn Diagram for Addition Rule

Worked Example 3: Pathao’s Ride Allocation

  • Probability a rider requests a Premium ride () = 0.3.
  • Probability a Standard ride () = 0.5.
  • Probability both () = 0 (mutually exclusive). Find .

Solution: Interpretation: 80% of rides are either Premium or Standard.


4. Conditional Probability and Independence

Conditional Probability

Example: Probability a Daraz order is delayed () given it’s heavy ():

Independence

Events and are independent if: Example: Flipping a coin and rolling a die are independent.

Visual: Tree Diagram for Conditional Probability

graph TD
    A["Start"] --> B["Event B occurs\nP(B) = 0.4"]
    A --> C["Event B does not occur\nP(B') = 0.6"]
    B --> D["A occurs given B\nP(A|B) = 0.5"]
    B --> E["A does not occur given B\nP(A'|B) = 0.5"]
    C --> F["A occurs given B'\nP(A|B') = 0.2"]
    C --> G["A does not occur given B'\nP(A'|B') = 0.8"]

Worked Example 4: Ncell’s Call Dropping

  • 10% of calls drop in low signal areas ().
  • 5% of calls drop in high signal areas ().
  • 80% of calls are in high signal areas. Are call drops independent of signal strength?

Solution:

  • .
  • Check independence: . . Not independent because .

5. Bayes’ Theorem

Updates probability based on new evidence: Example: NEPSE Stock Prediction

  • .

Visual: Bayes’ Theorem Flow

UABAB
Bayes’ Theorem: P(A|B) = [P(B|A)P(A)] / P(B)

Worked Example 5: Bank Loan Default Prediction

  • 5% of loans default ().
  • 30% of defaulting loans have low credit scores ().
  • 10% of non-defaulting loans have low scores. What is ?

Solution:

  • , , , .
  • .
  • (13.6%).

Interpretation: A low credit score increases the probability of default from 5% to 13.6%.


6. Counting Techniques (Combinatorics)

Permutations

Order matters: . Example: Arranging 3 books out of 5 → .

ABCD4! = 243! = 6
Permutations vs. Combinations: 4! vs. C(4,2)

Combinations

Order doesn’t matter: . Example: Choosing 2 students from 10 → .

Visual: Permutation vs. Combination

Worked Example 6: NTC’s Network Routing

  • NTC has 5 servers. How many ways can it assign 2 servers to handle a traffic spike?

Solution:

  • Combination (order irrelevant): ways.
  • If order matters (e.g., primary/backup), use permutation: .

7. Real-World Applications

1. Khalti’s Fraud Detection

  • Idea: Conditional Probability and Bayes’ Theorem.
  • How: Khalti calculates: .
  • Outcome: Blocks 90% of fraudulent transactions.

2. Pathao’s Ride Matching

  • Idea: Probability of Independent Events.
  • How: Probability a rider and driver are matched: .
  • Outcome: Optimizes wait times using real-time data.

3. Daraz’s Inventory Management

  • Idea: Combinations for stock allocation.
  • How: If Daraz has 10 warehouses and needs to ship to 3 cities, it uses to distribute stock efficiently.
  • Outcome: Reduces delivery delays by 25%.

4. Ncell’s Call Routing

  • Idea: Conditional Probability for network congestion.
  • How: .
  • Outcome: Dynamically reroutes calls to less congested towers.

Exam Tip

  1. Memorize the Three Axioms: Always verify if events are mutually exclusive before adding probabilities.
  2. Bayes’ Theorem is Key: Expect 1–2 questions on updating probabilities. Draw a tree diagram if stuck.
  3. Combinatorics vs. Permutations:
    • Use combinations for selections (e.g., teams, committees).
    • Use permutations for arrangements (e.g., passwords, schedules).
  4. Real-World Scenarios: Exams often tie probability to Nepali tech (e.g., Khalti fraud, Pathao matching). Relate examples to these.
  5. Common Pitfalls:
    • Forgetting to check independence before multiplying probabilities.
    • Misapplying the complement rule (e.g., ).
  6. Graphs and Venn Diagrams: Always draw them for questions involving unions/intersections.

Final Note: Probability is the language of uncertainty. Mastering its rules lets you predict outcomes in engineering (e.g., system failures), finance (risk assessment), and tech (algorithm design). Practice with Nepali examples (e.g., Ncell drops, Daraz orders) to ace the exam!

Based on the PU BE Computer (PU) syllabus for Probability and Statistics (MTH216), unit 2.

Discussion

Loading…