Comprehensive Lecture Notes on Probability and Probability Distributions

Basic Concepts of Probability

  • Fundamental Terminology of Random Phenomena:

    • Random Experiment (隨機實驗): Any repeatable process or phenomenon that yields uncertain outcomes under identical conditions.
    • Sample Space (樣本空間, SS): The collection or set of all possible outcomes of a random experiment.
    • Sample Point (樣本點): Each individual element or outcome residing within the sample space.
    • Event (事件): Any subset of the sample space SS.
    • Simple Event (簡單事件): An event consisting of exactly one sample point.
    • Composite Event (複合事件): An event consisting of two or more sample points.
  • Counting Principles and Combinatorics:

    • Permutation (排列, PrnP_r^n): The arrangement of rr elements selected from an nn-element set where selection sequence or order matters:     Prn=n!(n−r)!=n×(n−1)×⋯×(n−r+1)P_r^n = \frac{n!}{(n - r)!} = n \times (n - 1) \times \dots \times (n - r + 1)
    • Combination (組合, CrnC_r^n): The selection of rr elements from an nn-element set where order does not matter:     Crn=n!r!(n−r)!=n×(n−1)×⋯×(n−r+1)r!C_r^n = \frac{n!}{r!(n - r)!} = \frac{n \times (n - 1) \times \dots \times (n - r + 1)}{r!}
    • Excel Functions for Counting:
    • Factorial (n!n!): =FACT(n)
    • Combination (CrnC_r^n): =COMBIN(n, r)
    • Permutation (PrnP_r^n): =PERMUT(n, r)
  • Example 5-1: Competitor Selection and License Plate Number Generation:

    • Scenario 1 (Competition Selection): Selecting participants from 4 individuals (甲, 乙, 丙, 丁):
    • Selecting 3 individuals without ordering implies one individual is excluded:       S={甲乙丙,甲乙丁,甲丙丁,乙丙丁}S = \{\text{甲乙丙}, \text{甲乙丁}, \text{甲丙丁}, \text{乙丙丁}\}C34=C14=4!3!1!=4C_3^4 = C_1^4 = \frac{4!}{3!1!} = 4
    • Selecting 2 individuals without ordering:       S={甲乙,甲丙,甲丁,乙丙,乙丁,丙丁}S = \{\text{甲乙}, \text{甲丙}, \text{甲丁}, \text{乙丙}, \text{乙丁}, \text{丙丁}\}C24=4!2!2!=6C_2^4 = \frac{4!}{2!2!} = 6
    • Scenario 2 (Automobile License Plates): Selecting 4 digits from 10 digits (00 through 99) where digits cannot repeat and the sequence determines the license identity:     P410=10×9×8×7=5040P_4^{10} = 10 \times 9 \times 8 \times 7 = 5040
  • Example 5-2: Desert Island Dice Game:

    • Experiment: Rolling a fair die twice (or rolling two dice once).
    • Sample Space: Contains 62=366^2 = 36 sample points:     S={(1,1),(1,2),…,(1,6),(2,1),(2,2),…,(2,6),…,(6,1),(6,2),…,(6,6)}S = \{(1, 1), (1, 2), \dots, (1, 6), (2, 1), (2, 2), \dots, (2, 6), \dots, (6, 1), (6, 2), \dots, (6, 6)\}
    • Event AA (Escape the Island): Rolling identical values on both outcomes:     A={(1,1),(2,2),(3,3),(4,4),(5,5),(6,6)}A = \{(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)\}
    • Probability: Since there are 6 favorable outcomes out of 36 equally likely outcomes:     P(A)=636=16P(A) = \frac{6}{36} = \frac{1}{6}
  • Set Operations and Probability Rules:

    • Union (聯集, A∪BA \cup B): Represents the occurrence of at least one event (AA, BB, or both).
    • Intersection (交集, A∩BA \cap B): Represents the simultaneous joint occurrence of both events AA and BB.
    • Complement (餘集, ACA^C or ∼A\sim A): Represents the event that AA does not occur:     P(AC)=1−P(A)P(A^C) = 1 - P(A)
    • Mutually Exclusive Events (互斥事件): Two events that cannot occur at the same time (A∩B=∅A \cap B = \emptyset), meaning P(A∩B)=0P(A \cap B) = 0.
    • Addition Rule of Probability (加法法則):     P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)
    • Addition Rule for Mutually Exclusive Events:     P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B)

Venn Diagrams of Set Relations

  • Example 5-3: E-Commerce Product Purchasing Behavior:

    • Given Parameters:
    • Member purchase of daily necessities: P(A)=0.30P(A) = 0.30
    • Member purchase of electrical appliances: P(B)=0.20P(B) = 0.20
    • Member purchase of both product categories: P(A∩B)=0.10P(A \cap B) = 0.10
    • Calculations:
    • Probability of purchasing at least one category:       P(A∪B)=P(A)+P(B)−P(A∩B)=0.30+0.20−0.10=0.40P(A \cup B) = P(A) + P(B) - P(A \cap B) = 0.30 + 0.20 - 0.10 = 0.40
    • Probability of purchasing neither category:       P((A∪B)C)=1−P(A∪B)=1−0.40=0.60P((A \cup B)^C) = 1 - P(A \cup B) = 1 - 0.40 = 0.60
  • Approaches to Defining Probability:

    • Classical Approach (古典先驗機率法): Rooted in theoretical mathematical symmetry and limits; assumes all elementary outcomes in the sample space are equally likely.
    • Empirical / Relative Frequency Approach (實驗法 / 相對次數法): Establishes probabilities through repeated experimentation or historical empirical observations as the ratio of favorable outcomes to total trials.
    • Subjective Approach (主觀機率法): Based on an individual's personal belief, judgment, intuition, or qualitative assessment before empirical trials.
    • Uniform Distribution (均勻分配): Occurs when every elementary outcome has an identical probability of happening:
    • Discrete Uniform Distribution: Tossing a fair die where each face has probability 16\frac{1}{6}.
    • Continuous Uniform Distribution: The arrival time of a bus within a 5-minute window.
  • Example 5-4: Lottery Number Selection Classification:

    • Computer automated quick pick (電腦隨機選號): Classical probability approach.
    • Analyzing historical winning frequency records (研究過去開獎號碼出現次數): Empirical/relative frequency approach.
    • Self-selected lucky numbers (自己選號): Subjective probability approach.

Conditional Probability, Independence, and Contingency Analysis

  • Conditional Probability (條件機率):

    • The probability of an event AA occurring given that another event BB has already occurred:     P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}
    • Marginal Probability (邊際機率): The probability of a single event occurring without regard to other events (e.g., P(A)P(A) or P(B)P(B)).
    • Joint Probability (聯合機率): The probability of the simultaneous intersection of two events (P(A∩B)P(A \cap B)).
    • Multiplication Rule (乘法法則):     P(A∩B)=P(A∣B)×P(B)=P(B∣A)×P(A)P(A \cap B) = P(A|B) \times P(B) = P(B|A) \times P(A)
  • Event Independence (獨立事件):

    • Event BB does not affect the occurrence of event AA. Two events AA and BB are independent if and only if any of the following three equivalent conditions hold:     P(A∣B)=P(A)P(A|B) = P(A)P(B∣A)=P(B)P(B|A) = P(B)P(A∩B)=P(A)×P(B)P(A \cap B) = P(A) \times P(B)
  • Example 5-5: Weather Forecast and Umbrella Carrying:

    • Let event BB denote checking the weather forecast (BCB^C: not checking).
    • Let event AA denote carrying an umbrella (ACA^C: not carrying).
    • The sequential nature creates four sample path points: S={(B,A),(B,AC),(BC,A),(BC,AC)}S = \{(B, A), (B, A^C), (B^C, A), (B^C, A^C)\}.
    • Calculating joint probabilities along tree branches: P(Forecast∩Umbrella)=P(B)×P(A∣B)P(\text{Forecast} \cap \text{Umbrella}) = P(B) \times P(A|B).
    • Independence Analysis:
    • Individual 甲 checks the forecast (70% rain) and carries an umbrella because of it (P(A∣B)≠P(A)P(A|B) \neq P(A)), demonstrating dependent events.
  • Individual 乙 carries an umbrella regardless of the weather forecast (P(A∣B)=P(A)P(A|B) = P(A)), demonstrating independent events.

Conditional Probability Tree Diagram

  • Distinction Between Joint Probability and Conditional Probability:

    • Joint Probability: Pertains to intersection and simultaneous occurrence at the same moment in time (e.g., purchasing pizza and buying soda together at checkout).
    • Conditional Probability: Involves a time sequence or prior condition (e.g., given a consumer bought toilet paper during this promotion, predicting whether they will purchase toilet paper again six months later).
    • Independent events are not necessarily mutually exclusive.
  • Contingency Table (Cross-Tabulation) and Probability Trees:

    • Contingency analysis of retail food tasting and purchase behaviors:
ActionPurchase (BB)Did Not Purchase (BCB^C)Total
Sampled Food (AA)55%55\%20%20\%75%75\%
Did Not Sample (ACA^C)15%15\%10%10\%25%25\%
Total70%70\%30%30\%100%100\%
  • Derived Conditional Probabilities:

    • Given that a customer sampled the food, the probability they purchase is:       P(B∣A)=P(A∩B)P(A)=0.550.75≈0.733P(B|A) = \frac{P(A \cap B)}{P(A)} = \frac{0.55}{0.75} \approx 0.733

    • Given that a customer sampled the food, the probability they do not purchase is:       P(BC∣A)=P(A∩BC)P(A)=0.200.75≈0.267≈0.27P(B^C|A) = \frac{P(A \cap B^C)}{P(A)} = \frac{0.20}{0.75} \approx 0.267 \approx 0.27

    • Given that a customer did not sample the food, the probability they purchase is:       P(B∣AC)=P(AC∩B)P(AC)=0.150.25=0.60P(B|A^C) = \frac{P(A^C \cap B)}{P(A^C)} = \frac{0.15}{0.25} = 0.60

    • Given that a customer did not sample the food, the probability they do not purchase is:       P(BC∣AC)=P(AC∩BC)P(AC)=0.100.25=0.40P(B^C|A^C) = \frac{P(A^C \cap B^C)}{P(A^C)} = \frac{0.10}{0.25} = 0.40

    • Example 5-6: Examination Failure Analysis:

  • Event AA: Failing Mathematics (P(A)=10%P(A) = 10\% or 0.100.10).

  • Event BB: Failing English (P(B)=25%P(B) = 25\% or 0.250.25).

  • Event A∩BA \cap B: Failing both Mathematics and English (P(A∩B)=5%P(A \cap B) = 5\% or 0.050.05).

Examination OutcomeEnglish Fail (BB)English Pass (BCB^C)Total
Math Fail (AA)5%5\%5%5\%10%10\%
Math Pass (ACA^C)20%20\%70%70\%90%90\%
Total25%25\%75%75\%100%100\%
  • Conditional Probabilities:
    • Given a student failed Math, probability they also failed English:     P(B∣A)=P(A∩B)P(A)=0.050.10=50%P(B|A) = \frac{P(A \cap B)}{P(A)} = \frac{0.05}{0.10} = 50\%
    • Given a student failed English, probability they also failed Math:     P(A∣B)=P(A∩B)P(B)=0.050.25=20%P(A|B) = \frac{P(A \cap B)}{P(B)} = \frac{0.05}{0.25} = 20\%

Bayes' Theorem and Bayesian Inference

  • Foundations of Bayes' Theorem (貝式定理):

    • Used to update prior beliefs and infer the backward causal probability of an event given that an effect has been observed:     P(A∣B)=P(B∣A)P(A)P(B)=P(B∣A)P(A)P(B∣A)P(A)+P(B∣AC)P(AC)P(A|B) = \frac{P(B|A)P(A)}{P(B)} = \frac{P(B|A)P(A)}{P(B|A)P(A) + P(B|A^C)P(A^C)}
    • Key Components:
    • Prior Probability (先驗機率, P(A)P(A) ): Initial belief or subjective estimate before new evidence is collected.
    • Likelihood / Likelihood Probability (概似機率, P(B∣A)P(B|A) ): The conditional probability of observing evidence BB given hypothesis/state AA.
    • Posterior Probability (事後機率, P(A∣B)P(A|B) ): The updated probability of hypothesis AA after evidence BB has been observed.
  • Worked Example: Drunk Driving and Car Accidents:

    • Prior probabilities: Driver is drunk P(Drunk)=0.10P(\text{Drunk}) = 0.10; Driver is sober P(Sober)=0.90P(\text{Sober}) = 0.90.
    • Likelihoods: P(Accident∣Drunk)=0.35P(\text{Accident} | \text{Drunk}) = 0.35; P(Accident∣Sober)=0.02P(\text{Accident} | \text{Sober}) = 0.02.
    • Backward inference given an accident has occurred:     P(Drunk∣Accident)=0.10×0.350.10×0.35+0.90×0.02=0.0350.035+0.018=0.0350.053≈0.6604P(\text{Drunk} | \text{Accident}) = \frac{0.10 \times 0.35}{0.10 \times 0.35 + 0.90 \times 0.02} = \frac{0.035}{0.035 + 0.018} = \frac{0.035}{0.053} \approx 0.6604
    • Conclusion: 66.04%66.04\% of vehicle accidents in this jurisdiction are attributable to drunk driving.
  • Example 5-7: Factory Industrial Accident Attribution:

    • Two production facilities: New Taipei plant employs 70%70\% (P(New Taipei)=0.70P(\text{New Taipei}) = 0.70); Taoyuan plant employs 30%30\% (P(Taoyuan)=0.30P(\text{Taoyuan}) = 0.30).
    • Annual accident rates: P(Accident∣New Taipei)=0.03P(\text{Accident} | \text{New Taipei}) = 0.03; P(Accident∣Taoyuan)=0.05P(\text{Accident} | \text{Taoyuan}) = 0.05.
    • Overall accident probability:     P(Accident)=(0.70×0.03)+(0.30×0.05)=0.021+0.015=0.036P(\text{Accident}) = (0.70 \times 0.03) + (0.30 \times 0.05) = 0.021 + 0.015 = 0.036
    • Probability an injured employee belongs to the New Taipei plant:     P(New Taipei∣Accident)=0.70×0.03(0.70×0.03)+(0.30×0.05)=0.0210.036≈58.33%P(\text{New Taipei} | \text{Accident}) = \frac{0.70 \times 0.03}{(0.70 \times 0.03) + (0.30 \times 0.05)} = \frac{0.021}{0.036} \approx 58.33\%
  • In-Depth Case Study: Decision Making via Bayesian Inference:

    • Objective Probability vs. Subjective Probability:
    • Objective probability (frequentist) demands infinite repeatability under identical conditions and independent causal trials (e.g., rainfall probabilities derived from matching atmospheric profiles).
    • In complex enterprise strategy or space exploration (e.g., NASA), conditions are unique across missions; historical relative frequencies cannot serve as direct objective probabilities.
    • Thomas Bayes introduced subjective probability: setting a prior parameter, observing actual occurrences, and progressively updating beliefs.
    • Trust Re-evaluation Model:
    • Initial prior state: A new business counterpart is assigned 50%50\% probability of being "trustworthy" and 50%50\% "untrustworthy" (or 75%75\% untrustworthy if intuitively suspicious).
    • Behavioral assumptions (likelihoods):
      • If trustworthy: probability of telling the truth = 0.80.8, lying = 0.20.2.
      • If untrustworthy: probability of telling the truth = 0.10.1, lying = 0.90.9.
    • Joint probability grid:
      • Box I (Untrustworthy & Truth): 0.50×0.1=0.050.50 \times 0.1 = 0.05
      • Box II (Trustworthy & Truth): 0.50×0.8=0.400.50 \times 0.8 = 0.40
      • Box III (Trustworthy & Lie): 0.50×0.2=0.100.50 \times 0.2 = 0.10
      • Box IV (Untrustworthy & Lie): 0.50×0.9=0.450.50 \times 0.9 = 0.45
    • Observed result: The partner is caught telling a lie once. The evaluation space restricts strictly to Boxes III and IV:       P(Trustworthy∣Lie)=0.100.10+0.45=0.100.55≈0.18P(\text{Trustworthy} | \text{Lie}) = \frac{0.10}{0.10 + 0.45} = \frac{0.10}{0.55} \approx 0.18P(Untrustworthy∣Lie)=0.450.10+0.45=0.450.55≈0.82P(\text{Untrustworthy} | \text{Lie}) = \frac{0.45}{0.10 + 0.45} = \frac{0.45}{0.55} \approx 0.82
    • Updating belief raises the probability of the counterpart being untrustworthy from 50%50\% to 82%82\%.

Bayesian Updating Calculation Matrix

  • Real-World and High-Tech Applications of Bayesian Inference:
    • Medical Diagnostics: Textbooks teach disease to symptom (measles →\rightarrow red rash), but clinical diagnosis flows backward (observing a red rash to infer probability of measles).
    • Athletics: Tennis players update predictions of ball bounce and trajectory mid-rally using visual/auditory cues.
    • Information Technology: Spam mail filtering, operating system help assistance, medical diagnostic imaging.
    • Aerospace: NASA space shuttle propulsion health monitoring systems utilize Bayesian networks to detect faulty components from real-time sensor streams and determine immediate mitigations.

Random Variables, Expectation, and Variance

  • Concepts of Random Variables and Probability Distributions:
    • Random Variable (隨機變數, XX): A real-valued function that maps every outcome in sample space SS to a numerical value.
    • Probability Distribution (機率分配): A complete specification listing all possible values of a random variable alongside their associated probabilities, represented via equations, tables, or graphs.

Mapping from Random Experiment to Probability Distribution

  • Classification of Random Variables:

    • Discrete Random Variable (間斷隨機變數): Takes on countable values (finite or countably infinite).
    • Continuous Random Variable (連續隨機變數): Takes on any value within an unbroken interval on the real line.
    • Example 5-8 Classifications:
    • Number of games won out of 5 matches: Discrete (x∈{0,1,2,3,4,5}x \in \{0, 1, 2, 3, 4, 5\}, finite count).
    • Customer waiting time at checkout: Continuous (x≥0x \ge 0, infinite uncountable values).
    • Number of vehicles using a highway over New Year holiday: Discrete (x∈{0,1,2,… }x \in \{0, 1, 2, \dots\}, countably infinite).
  • Mathematical Formulation for Discrete vs. Continuous Random Variables:

PropertyDiscrete Random VariableContinuous Random Variable
Values (xx)x=0,1,…,nx = 0, 1, \dots, n or x=0,1,2,…x = 0, 1, 2, \dotsa≤x≤ba \le x \le b, x≤bx \le b, x≥ax \ge a, or −∞<x<∞-\infty < x < \infty
Probability FunctionProbability Function: P(X=x)P(X = x) or P(x)P(x)Probability Density Function (pdf): f(x)f(x)
Core Properties0≤P(x)≤10 \le P(x) \le 1 for all xx
∑xP(x)=1\sum_x P(x) = 1
0≤f(x)0 \le f(x) for all xx
∫−∞∞f(x) dx=1\int_{-\infty}^{\infty} f(x)\,dx = 1
P(X=x)=0P(X = x) = 0 at any exact point
Cumulative Distribution Function (cdf, F(x)F(x))F(a)=P(X≤a)=∑x≤aP(x)F(a) = P(X \le a) = \sum_{x \le a} P(x)
P(a≤X≤b)=F(b)−F(a−)P(a \le X \le b) = F(b) - F(a^-)
F(a)=P(X≤a)=∫−∞af(x) dxF(a) = P(X \le a) = \int_{-\infty}^a f(x)\,dx
P(a≤X≤b)=∫abf(x) dx=F(b)−F(a)P(a \le X \le b) = \int_a^b f(x)\,dx = F(b) - F(a)
Expected Value (E(X)E(X) or μ\mu)E(X)=μ=∑xxP(x)E(X) = \mu = \sum_x x P(x)E(X)=μ=∫−∞∞xf(x) dxE(X) = \mu = \int_{-\infty}^{\infty} x f(x)\,dx
Variance (V(X)V(X) or σ2\sigma^2)V(X)=∑x(x−μ)2P(x)=∑xx2P(x)−μ2V(X) = \sum_x (x - \mu)^2 P(x) = \sum_x x^2 P(x) - \mu^2V(X)=∫−∞∞(x−μ)2f(x) dx=∫−∞∞x2f(x) dx−μ2V(X) = \int_{-\infty}^{\infty} (x - \mu)^2 f(x)\,dx = \int_{-\infty}^{\infty} x^2 f(x)\,dx - \mu^2
  • Example 5-9: Sum of Points from Rolling Two Dice:

    • Random experiment has 62=366^2 = 36 outcomes. The sum XX ranges from 22 through 1212.
    • Probability Distribution Table:
    • P(X=2)=136≈0.0278P(X = 2) = \frac{1}{36} \approx 0.0278
    • P(X=3)=236≈0.0556P(X = 3) = \frac{2}{36} \approx 0.0556
    • P(X=4)=336≈0.0833P(X = 4) = \frac{3}{36} \approx 0.0833
    • P(X=5)=436≈0.1111P(X = 5) = \frac{4}{36} \approx 0.1111
    • P(X=6)=536≈0.1389P(X = 6) = \frac{5}{36} \approx 0.1389
    • P(X=7)=636≈0.1667P(X = 7) = \frac{6}{36} \approx 0.1667
    • P(X=8)=536≈0.1389P(X = 8) = \frac{5}{36} \approx 0.1389
    • P(X=9)=436≈0.1111P(X = 9) = \frac{4}{36} \approx 0.1111
    • P(X=10)=336≈0.0833P(X = 10) = \frac{3}{36} \approx 0.0833
    • P(X=11)=236≈0.0556P(X = 11) = \frac{2}{36} \approx 0.0556
    • P(X=12)=136≈0.0278P(X = 12) = \frac{1}{36} \approx 0.0278
    • Calculated Metrics:
    • Expected Value:       E(X)=μ=∑xP(x)=2(136)+3(236)+⋯+12(136)=7E(X) = \mu = \sum x P(x) = 2\left(\frac{1}{36}\right) + 3\left(\frac{2}{36}\right) + \dots + 12\left(\frac{1}{36}\right) = 7
    • Variance:       V(X)=σ2=∑(x−7)2P(x)=(2−7)2(136)+(3−7)2(236)+⋯+(12−7)2(136)≈5.83V(X) = \sigma^2 = \sum (x - 7)^2 P(x) = (2 - 7)^2\left(\frac{1}{36}\right) + (3 - 7)^2\left(\frac{2}{36}\right) + \dots + (12 - 7)^2\left(\frac{1}{36}\right) \approx 5.83
    • Standard Deviation:       σ=5.83≈2.42\sigma = \sqrt{5.83} \approx 2.42
    • Excel Implementation Steps:
    • Step 1: Input values xx into column A (A2:A12) and probabilities P(x)P(x) into column B (B2:B12).
    • Step 2: Compute expected value using =SUMPRODUCT(A2:A12, B2:B12) in cell G2, yielding 7.
    • Step 3: Populate column D with squared deviations using formula =(A2-$G$2)^2 and drag through D12.
    • Step 4: Compute variance in G3 using =SUMPRODUCT(D2:D12, B2:B12) (5.835.83), and standard deviation in G4 using =SQRT(G3) (2.422.42).
  • Linear Transformation Properties of Expectation and Variance:

    • For any constant cc, and constants a,ba, b:
Transformation PropertyExpected ValueVariance
ConstantE(c)=cE(c) = cV(c)=0V(c) = 0
Shift by ConstantE(X+c)=E(X)+cE(X + c) = E(X) + cV(X+c)=V(X)V(X + c) = V(X)
Scaling by ConstantE(cX)=cE(X)E(cX) = c E(X)V(cX)=c2V(X)V(cX) = c^2 V(X)
Linear CombinationE(aX+b)=aE(X)+bE(aX + b) = a E(X) + bV(aX±c)=a2V(X)V(aX \pm c) = a^2 V(X)
  • Example 5-10: Scaled Weight of an Apple Gift Box:
    • Random variable XX represents weight of one apple: E(X)=400 gE(X) = 400\text{ g}, V(X)=15 g2V(X) = 15\text{ g}^2.
    • Variable Y=6XY = 6X represents the scaled weight of a 6-apple gift box:
    • Expected Value: E(Y)=E(6X)=6E(X)=6×400=2400 gE(Y) = E(6X) = 6 E(X) = 6 \times 400 = 2400\text{ g}
    • Variance: V(Y)=V(6X)=62V(X)=36×15=540 g2V(Y) = V(6X) = 6^2 V(X) = 36 \times 15 = 540\text{ g}^2
    • Standard Deviation: σY=V(Y)=6×15≈23.24 g\sigma_Y = \sqrt{V(Y)} = 6 \times \sqrt{15} \approx 23.24\text{ g}

Discrete Probability Distributions

Binomial Distribution (二項分配)

  • Properties of a Binomial Experiment:

    • Fixed number of trials (nn).
    • Each trial has strictly two mutually exclusive outcomes: Success (SS) and Failure (FF).
    • Probability of success pp remains constant from trial to trial; failure probability is 1−p1 - p.
    • Trials are statistically independent.
  • Mathematical Formulation:

    • X∼Binomial(n,p)X \sim \text{Binomial}(n, p)
    • Probability Mass Function (pmf):     P(X=x)=Cxnpx(1−p)n−x,x=0,1,…,nP(X = x) = C_x^n p^x (1 - p)^{n - x}, \quad x = 0, 1, \dots, n
    • Expected Value: E(X)=npE(X) = np
    • Variance: V(X)=np(1−p)V(X) = np(1 - p)
    • Excel formula: =BINOM.DIST(x, n, p, cumulative) (where FALSE or 0 calculates P(X=x)P(X = x); TRUE or 1 calculates P(X≤x)P(X \le x)).
  • Example 5-11: Multiple-Choice Test Guessing Scenarios:

    • Baseline Test (10 Questions, 5 choices, 10 points each):
    • Parameters: n=10n = 10, p=0.20p = 0.20, score Y=10XY = 10X.
    • Most likely number of correct guesses: x=2x = 2 with P(X=2)=0.3020P(X = 2) = 0.3020.
    • Probability of passing (≥6\ge 6 correct answers):       P(X≥6)=1−P(X≤5)=1−0.9936=0.0064=0.64%P(X \ge 6) = 1 - P(X \le 5) = 1 - 0.9936 = 0.0064 = 0.64\%
    • Expected correct answers and test score:       E(X)=np=10×0.2=2E(X) = np = 10 \times 0.2 = 2E(Y)=E(10X)=10E(X)=20 pointsE(Y) = E(10X) = 10 E(X) = 20\text{ points}
    • Modified Test 1 (10 Questions, 4 choices, 10 points each):
    • Parameters: n=10n = 10, p=0.25p = 0.25, score Y=10XY = 10X.
    • Highest probability outcome: x=2x = 2 with P(X=2)=0.2816P(X = 2) = 0.2816.
    • Passing probability: P(X≥6)=1−P(X≤5)=1−0.9803=1.97%P(X \ge 6) = 1 - P(X \le 5) = 1 - 0.9803 = 1.97\%.
    • Expected values: E(X)=10×0.25=2.5E(X) = 10 \times 0.25 = 2.5, E(Y)=25 pointsE(Y) = 25\text{ points}.
    • Modified Test 2 (20 Questions, 4 choices, 5 points each):
    • Parameters: n=20n = 20, p=0.25p = 0.25, score Y=5XY = 5X.
    • Highest probability outcome: x=5x = 5 with P(X=5)=0.2023P(X = 5) = 0.2023.
    • Passing probability (≥12\ge 12 correct):       P(X≥12)=1−P(X≤11)=1−0.9998=0.0002=0.02%P(X \ge 12) = 1 - P(X \le 11) = 1 - 0.9998 = 0.0002 = 0.02\%
    • Expected values: E(X)=20×0.25=5E(X) = 20 \times 0.25 = 5, E(Y)=5×5=25 pointsE(Y) = 5 \times 5 = 25\text{ points}.

Hypergeometric Distribution (超幾何分配)

  • Hypergeometric Characteristics (Sampling Without Replacement):
    • Population size is finite (NN) containing kk successes and N−kN - k failures.
    • Sample size nn is drawn without replacement.
    • Individual trials are dependent because selection changes subsequent composition.

Hypergeometric Sampling Diagram

  • Mathematical Formulation:

    • X∼Hypergeometric(N,n,k)X \sim \text{Hypergeometric}(N, n, k)
    • Probability Mass Function:     P(X=x)=CxkCn−xN−kCnN,x=0,1,…,nP(X = x) = \frac{C_x^k C_{n - x}^{N - k}}{C_n^N}, \quad x = 0, 1, \dots, n
    • Expected Value:     E(X)=nkN=npE(X) = n \frac{k}{N} = np
    • Variance:     V(X)=np(1−p)×N−nN−1V(X) = np(1 - p) \times \frac{N - n}{N - 1}
    • Finite Population Correction Factor (有限母體校正因子): N−nN−1\frac{N - n}{N - 1}, adjusts variance downwards to account for sampling without replacement.
    • Excel formula: =HYPGEOM.DIST(x, n, k, N, cumulative).
  • Example 5-12: Shipment Defect Inspection:

    • Parameters: Total shipment N=50N = 50, defectives k=5k = 5, sample size n=10n = 10. Buyer rejects shipment if defective count X > 1$.\n * Probability of finding 0 defectives:\n    P(X = 0) = \frac{C_0^5 C_{10}^{45}}{C_{10}^{50}} \approx 0.3106\n * Probability of finding 1 defective:\n    P(X = 1) = \frac{C_1^5 C_9^{45}}{C_{10}^{50}} \approx 0.4313\n * Probability of rejection (> 1 defective):\n    P(X > 1) = 1 - P(X \le 1) = 1 - (0.3106 + 0.4313) = 1 - 0.7419 = 0.2581 = 25.81\%\n * **Process Improvement Scenario (Defect rate dropped to 4%)**:\n * New defective count: k = 50 \times 0.04 = 2.\n * Rejection probability:\n      P(X > 1) = 1 - P(X \le 1) = 1 - (P(0) + P(1)) = 1 - (0.6367 + 0.3265) = 1 - 0.9633 = 0.0367 = 3.67\%\n\n## Poisson Distribution (卜瓦松分配)\n\n* **Poisson Experiment Characteristics**:\n * Counts occurrences of a rare event across a continuous specified interval (time, length, area, volume).\n * Occurrences across non-overlapping intervals are independent.\n * Average rate of occurrence is \lambda per unit interval.\n * Expected occurrences scale proportionally with interval size (t\lambdaforanintervalofsizefor an interval of sizet).\n\n* **Mathematical Formulation**:\n * X \sim \text{Poisson}(\lambda)\n * Probability Mass Function:\n    P(X = x) = \frac{e^{-\lambda} \lambda^x}{x!}, \quad x = 0, 1, 2, \dots, \quad e \approx 2.71828\n * Expected Value: E(X) = \lambda\n * Variance: V(X) = \lambda\n * Excel formula: `=POISSON.DIST(x, lambda, cumulative)`.\n\n* **Example 5-13: Publishing Typo Analysis**:\n * Baseline: Typo rate is 1 error per 40 pages (\lambda = 1 per 40 pages).\n * For a 200-page book, the interval scales by t = \frac{200}{40} = 5,givingparameter, giving parametert\lambda = 5.\n * Probability of no typos:\n    P(X = 0) = \frac{e^{-5} 5^0}{0!} \approx 0.0067 = 0.67\%\n * Probability of 3 to 5 typos:\n    P(3 \le X \le 5) = P(3) + P(4) + P(5) = 0.1404 + 0.1755 + 0.1755 = 0.4913 = 49.13\%\n    P(X \le 5) - P(X \le 2) = 0.6160 - 0.1247 = 0.4913\n * Probability of more than 10 typos:\n    P(X > 10) = 1 - P(X \le 9) = 1 - 0.9682 = 0.0318 = 3.18\%\n\n## Relationships and Approximations Across Discrete Distributions\n\n* **Summary Comparison Table**:\n\n| Distribution | Probability Mass Function (P(X = x))∣Support() | Support (x)∣Mean() | Mean (E(X))∣Variance() | Variance (V(X)) |\n| :--- | :--- | :--- | :--- | :--- |\n| **Binomial** | C_x^n p^x (1 - p)^{n - x}∣|0, 1, \dots, n∣|np∣|np(1 - p) |\n| **Hypergeometric** | \frac{C_x^k C_{n - x}^{N - k}}{C_n^N}∣|0, 1, \dots, n∣|np∣|np(1 - p) \frac{N - n}{N - 1} |\n| **Poisson** | \frac{e^{-\lambda} \lambda^x}{x!}∣|0, 1, 2, \dots∣|\lambda∣|\lambda |\n\n* **Approximation Rules**:\n * **Hypergeometric to Binomial**: When sampling fraction \frac{n}{N} \le 0.05,theeffectofnon−replacementisnegligible,allowingsubstitutionbyBinomial(, the effect of non-replacement is negligible, allowing substitution by Binomial(n, p = \frac{k}{N}).\n * **Binomial to Poisson**: When sample size is large (n > 20)andsuccessprobabilityissmall() and success probability is small (np \le 7),BinomialcanbeapproximatedbyPoissonwith), Binomial can be approximated by Poisson with\lambda = np.\n\n![Discrete Distribution Approximations](https://assets.knowt.com/pdf-flow-prod/f631a6c9-a84c-4d76-a16e-6c15e551b362-figures/66.png)\n\n* **Example 5-14: Insurance Policy Claim Risk Comparison**:\n * Parameters: n = 700policyholders,claimprobabilitypolicyholders, claim probabilityp = 0.001.\n * Condition check: n = 700 > 20andandnp = 700 \times 0.001 = 0.70 \le 7.\n * Binomial calculation for zero claims:\n    P(X = 0) = C_0^{700} (0.001)^0 (0.999)^{700} \approx 0.4964\n * Poisson approximation calculation (\lambda = 0.70):\n    P(X = 0) = \frac{e^{-0.7} (0.7)^0}{0!} \approx 0.4966\n * The two models produce virtually identical probabilities (0.4964vs.vs.0.4966).\n\n# Continuous Probability Distributions\n\n## Normal Distribution (常態分配)\n\n* **Fundamental Properties**:\n * Often designated as the Gaussian distribution (高斯分配) or Z distribution.\n * Essential due to natural physical phenomena following normal structures and its foundational role in inferential statistics.\n * Continuous, bell-shaped, single-peaked (unimodal), and symmetrical around its mean \mu.\n * Asymptotic tails extend infinitely in both directions along the horizontal axis without touching it (-\infty < x < \infty).\n * Inflection points (反曲點) where the curvature changes from convex to concave occur exactly at \mu - \sigmaandand\mu + \sigma.\n\n* **Probability Density Function (pdf)**:\n  f(x) = \frac{1}{\sqrt{2\pi\sigma^2}} e^{-\frac{(x - \mu)^2}{2\sigma^2}}, \quad -\infty < x < \infty\n\n* **The Empirical Rule (經驗法則)**:\n * Area within \mu \pm 1\sigmaspansspans68.3\% of the total probability.\n * Area within \mu \pm 2\sigmaspansspans95.45\%(approx.(approx.95.4\%).\n * Area within \mu \pm 3\sigmaspansspans99.73\%(approx.(approx.99.7\%).\n\n![Normal Distribution Empirical Rule and Inflection Points](https://assets.knowt.com/pdf-flow-prod/f631a6c9-a84c-4d76-a16e-6c15e551b362-figures/71.png)\n\n* **Standardization Process**:\n * Any general normal distribution X \sim N(\mu, \sigma)isconvertedintotheStandardNormalDistributionis converted into the Standard Normal DistributionZ \sim N(0, 1) by subtracting the mean and dividing by the standard deviation:\n    Z = \frac{X - \mu}{\sigma}\n\n![Standardization Transformation Steps](https://assets.knowt.com/pdf-flow-prod/f631a6c9-a84c-4d76-a16e-6c15e551b362-figures/73.png)\n\n* **Comparison Table: Normal vs. Standard Normal Distribution**:\n\n| Property | Normal Distribution | Standard Normal Distribution |\n| :--- | :--- | :--- | \n| **Random Variable** | Before standardization: X \sim N(\mu, \sigma)∣Afterstandardization:| After standardization:Z \sim N(0, 1) |\n| **Mean** | \mu∣|0 |\n| **Standard Deviation** | \sigma∣|1 |\n| **Probability Density Function** | f(x) = \frac{1}{\sqrt{2\pi\sigma^2}} e^{-\frac{(x - \mu)^2}{2\sigma^2}}∣|f(z) = \frac{1}{\sqrt{2\pi}} e^{-\frac{z^2}{2}} |\n| **Domain of Values** | -\infty < x < \infty∣|-\infty < z < \infty |\n\n* **Example 5-15: Mock Examination Score Performance**:\n * Population parameters: N = 600students,students,X \sim N(72, 18^2)wherewhere\mu = 72,,\sigma = 18.\n * **Probability of Failing (< 60 points)**:\n    P(X < 60) = P\left(Z < \frac{60 - 72}{18}\right) = P(Z < -0.67) \approx 0.2525\n * Excel function: `=NORM.DIST(60, 72, 18, 1)` yields `0.2525`.\n * **Expected Number of Failing Students**:\n    \text{Count} = 600 \times 0.2525 = 151.5 \approx 152\text{ students}\n * **Probability of Scoring Above 80 Points**:\n    P(X > 80) = P\left(Z > \frac{80 - 72}{18}\right) = P(Z > 0.44) = 1 - P(Z \le 0.44) = 1 - 0.6716 = 0.3284\n * Excel function: `=1 - NORM.DIST(80, 72, 18, 1)` yields `0.3284`.\n * **Probability of Scoring Between 60 and 80 Points**:\n    P(60 < X < 80) = P(X < 80) - P(X < 60) = 0.6716 - 0.2525 = 0.4191\n * **Score Threshold for Top 10% Cutoff**:\n * Target condition: Top 10\%meanscumulativelower−tailareaismeans cumulative lower-tail area is0.90((P(Z \le z) = 0.90).\n * The Z−valuecorrespondingto-value corresponding to0.90isisZ = 1.282.\n * Solving for x:\n      1.28 = \frac{x - 72}{18} \implies x = 72 + (1.28 \times 18) = 72 + 23.04 = 95.04 \approx 95.07\n * Excel functions:\n * Finding Z-score: `=NORM.S.INV(0.90)` yields `1.282`.\n * Direct cutoff: `=NORM.INV(0.90, 72, 18)` yields `95.07`.\n * Conclusion: A student must score at least 95 points to have a chance of admission to their top choice school.\n\n## Exponential Distribution (指數分配)\n\n* **Exponential Nature and Relationship to Poisson**:\n * Whereas the Poisson distribution counts the number of event arrivals in a fixed span, the exponential distribution models the continuous elapsed time (or distance) between successive arrivals.\n * Memoryless continuous distribution.\n\n![Relationship between Time Interval and Event Count](https://assets.knowt.com/pdf-flow-prod/f631a6c9-a84c-4d76-a16e-6c15e551b362-figures/83.png)\n\n* **Comparative Structure: Exponential vs. Poisson**:\n\n| Attribute | Exponential Distribution | Poisson Distribution |\n| :--- | :--- | :--- |\n| **Random Variable (X)∗∗∣Elapseddurationbetweenoccurrences:)** | Elapsed duration between occurrences:X \sim \text{Exponential}(\beta)∣Numberofoccurrencesininterval:| Number of occurrences in interval:X \sim \text{Poisson}(\lambda) |\n| **Probability Density / Mass** | f(x) = \frac{1}{\beta} e^{-\frac{x}{\beta}}∣|P(X = x) = \frac{e^{-\lambda} \lambda^x}{x!} |\n| **Domain of Support** | x \ge 0(Continuous)∣(Continuous) |x = 0, 1, 2, \dots (Discrete) |\n| **Mean (E(X))∗∗∣)** |\beta = \frac{1}{\lambda}∣|\lambda |\n| **Variance (V(X))∗∗∣)** |\beta^2∣|\lambda |\n| **Real-World Examples** | • Time between vehicles entering a lot
      • Time elapsed between machine failures
      • Distance in kilometers between potholes | • Number of vehicles entering per hour
      • Number of machine failures per 30 minutes
      • Number of potholes per 10 km stretch |\n\n* **Example 5-16: Automobile Battery Lifespan**:\n * Mean lifespan: \beta = 24months(months (X \sim \text{Exponential}(\beta = 24)).\n * Rate parameter: \lambda = \frac{1}{\beta} = \frac{1}{24}.\n * Probability of requiring a replacement battery within 18 months (X < 18):\n    P(X < 18) = 0.5276\n * Excel Implementation:\n * Input formula: `=EXPON.DIST(18, 1/24, 1)`\n * Cumulative left-tail output: `0.5276`\n * Corresponding right-tail survival probability (P(X > 18)$$): 0.4724