Basic StatisticsUnit 49 min read
Probability Theory: Events, Rules, Variables & Distributions
Unit 4 of Basic Statistics covers fundamental probability concepts—sample spaces, events, axioms, conditional probability, Bayes’ theorem, random variables (discrete/continuous), probability mass/functions, expectation, and variance—with real-world applications in risk assessment, decision-making, and data-driven syste
TAKEAWAYS:
- Probability is a measure of uncertainty defined over a sample space using three axioms (Kolmogorov), where events are subsets of outcomes and for any two events.
- Conditional probability () and Bayes’ theorem () reverse probabilities to solve real-world inference problems (e.g., eSewa fraud detection).
- Random variables link numerical outcomes to probabilities: discrete (PMF) vs. continuous (PDF), with expectation or and variance .
- Key distributions include binomial (fixed trials, success/failure) and normal (bell curve, 68-95-99.7 rule), used in quality control (e.g., NTC’s call-center wait times) and finance (e.g., NEPSE stock returns).
- Independence () simplifies joint probabilities and is critical for modeling unrelated events (e.g., Daraz order delays vs. weather).
- Exam focus: Solve for unknown probabilities, derive in PMFs, compute expectations/variances, and apply Bayes’ theorem to real scenarios (e.g., Ncell’s network failure rates).
1. Sample Spaces and Events
Probability theory starts with a sample space (), the set of all possible outcomes of an experiment. An event () is any subset of .
Key Definitions
- Simple event: Single outcome (e.g., rolling a 3 on a die).
- Compound event: Combination of outcomes (e.g., rolling an even number).
- Complementary event: (e.g., not rolling a 3).
Visual: Sample Space for a Die Roll
Example 1.1: A computer virus enters via email (30%) or internet (40%). What is the probability it enters via either channel?
- Solution: . If independent: . Thus, or 58%.
2. Probability Axioms and Rules
Probability is defined by Kolmogorov’s axioms:
- for any event .
- .
- For mutually exclusive events , .
Key Rules
| Rule | Formula | When to Use |
|---|---|---|
| Addition | Any two events | |
| Multiplication | Joint probability | |
| Complement | Easier to compute | |
| Conditional | Given occurred | |
| Independent Events | Events unaffected by each other |
Example 2.1: Ncell Network Failures
- Scenario: 40% of Ncell’s calls fail due to network congestion (), 30% due to hardware issues (), and 15% due to both.
- Question: What is the probability a call fails due to either cause?
- Solution: or 55%.
3. Conditional Probability and Bayes’ Theorem
Conditional probability measures how one event affects another.
Bayes’ Theorem
Used in:
- eSewa fraud detection: If 5% of transactions are fraudulent () and 90% of frauds trigger alerts (), but only 10% of non-fraudulent transactions do, what is ? P(F|A) = \frac{0.9 \times 0.05}{0.9 \times 0.05 + 0.1 \times 0.95} = \frac{0.045}{0.135} \approx 0.33 \text{ (33%)}
Visual: Bayes’ Theorem Tree
4. Random Variables
A random variable () assigns numerical values to outcomes. Two types:
- Discrete: Finite/countable outcomes (e.g., number of heads in 10 coin flips).
- Continuous: Uncountable outcomes (e.g., battery life in hours).
Probability Mass Function (PMF) vs. Probability Density Function (PDF)
| Feature | Discrete (PMF) | Continuous (PDF) |
|---|---|---|
| Definition | where | |
| Example | Number of defective chips | Battery life (hours) |
| Expectation |
Example 4.1: Defective Chips
A factory tests chips with PMF: Find , , and .
Solution:
- Find : .
- : .
- Expectation: .
Visual: PMF Graph
5. Expectation and Variance
- Expectation (): Average value of .
- Variance (): Measures spread, .
Example 5.1: Daraz Order Delays
Daraz’s delivery delays () have PMF: Find mean delay and variance.
Solution:
- Mean: days.
- Variance: . .
Visual: Variance Interpretation
6. Binomial and Normal Distributions
Binomial Distribution
- Scenario: Fixed trials (), success probability ().
- PMF: .
- Example: 70% of chips pass coating. Probability at least 12 pass in 15 trials. P(X \geq 12) = 1 - P(X \leq 11) = 1 - \sum_{k=0}^{11} \binom{15}{k} (0.7)^k (0.3)^{15-k} \approx 0.7158 \text{ (71.58%)}
Normal Distribution
- Properties: Symmetric, bell-shaped, defined by mean () and standard deviation ().
- 68-95-99.7 Rule:
- 68% within
- 95% within
- 99.7% within
Example 6.1: NTC Call Wait Times
Wait times are minutes. Probability a call waits >7 minutes: Z = \frac{7 - 5}{1.5} = 1.33 \Rightarrow P(Z > 1.33) = 1 - \Phi(1.33) \approx 0.0918 \text{ (9.18%)}
Visual: Normal Distribution
In the Real World
eSewa Fraud Detection
- Idea: Bayes’ Theorem updates fraud probability given an alert.
- How: If (from earlier), eSewa uses this to flag high-risk transactions dynamically.
Ncell Network Reliability
- Idea: Binomial Distribution models call failures.
- How: If 55% of calls fail (from Example 2.1), Ncell uses this to predict outages and reroute traffic.
Daraz Delivery Optimization
- Idea: Expectation and Variance of delays.
- How: Mean delay = 0.9 days (Example 5.1) helps set customer expectations, while variance () guides warehouse stocking.
NEPSE Stock Returns
- Idea: Normal Distribution models returns.
- How: If daily returns are , traders use the 68-95-99.7 rule to assess risk (e.g., 95% of returns fall within to ).
Khalti Transaction Limits
- Idea: Conditional Probability for fraud.
- How: If , Khalti may impose stricter limits until user history builds.
Exam Tip
- Always check for independence before multiplying probabilities. If events are independent, .
- For PMFs, ensure to find unknown constants ().
- Bayes’ Theorem is tested often—draw a tree diagram to visualize .
- Normal distribution problems require converting to -scores: Use standard normal tables or calculators.
- Binomial problems often ask for "at least" or "at most"—use complements to simplify:
- Real-world ties: Relate problems to eSewa/Khalti (fraud), Ncell/Daraz (delays), or NEPSE (returns) to score application marks.
Past Exam Patterns:
- 50%: Derive or compute probabilities from PMFs.
- 30%: Apply Bayes’ Theorem or conditional probability.
- 20%: Binomial/normal distribution problems (e.g., "at least 12 out of 15").
Based on the TU BIT syllabus for Basic Statistics (STA154), unit 4.
Discussion
Loading…