Skip to main content

CT1 Sample Questions — Batch 3: Probability Distributions & Bayes

This document provides rigorous, textbook-style solutions for the probability distribution and advanced Bayes' Theorem questions (Q10, Q11, Q12, Q13, and Q21) from the IFS UNIT - 1 & 2 sample questions sheet. All formulas are rendered in LaTeX, with step-by-step mathematical derivations and formal academic inferences.


Question 10: Bayes' Theorem / Posterior Analysis of Electronic Devices

Given Data

Let X,Y,ZX, Y, Z represent the events that a produced device is of Type X, Type Y, or Type Z respectively. Let DD represent the event that a device is defective.

  • Defective conditional probabilities: P(DX)=0.01,P(DY)=0.04,P(DZ)=0.02P(D \mid X) = 0.01, \quad P(D \mid Y) = 0.04, \quad P(D \mid Z) = 0.02
  • Posteriors of device type given a defective is found: P(XD)=0.5,P(YD)=0.3,P(ZD)=0.2P(X \mid D) = 0.5, \quad P(Y \mid D) = 0.3, \quad P(Z \mid D) = 0.2

Analysis & Derivations

The question asks: "If a defective device is picked up from the factory, what is the most likely type of device?"

Interpretation A: Direct Posterior Comparison (MAP Decision)

If we are given that a defective device has been picked up from the factory, we are seeking to find the maximum posterior probability: argmaxk{X,Y,Z}P(kD)\operatorname{argmax}_{k \in \{X,Y,Z\}} P(k \mid D) Since the posteriors are explicitly provided in the problem statement:

  • P(XD)=0.5P(X \mid D) = 0.5 (or 50%50\%)
  • P(YD)=0.3P(Y \mid D) = 0.3 (or 30%30\%)
  • P(ZD)=0.2P(Z \mid D) = 0.2 (or 20%20\%)

Conclusion A: Type X is the most likely type of device among the defectives, with a probability of 0.50.5.


Interpretation B: Deriving the Production Proportions (Priors)

To demonstrate advanced mastery, we can derive the overall production proportions (the priors P(X),P(Y),P(Z)P(X), P(Y), P(Z)) to see which device type the factory produces the most.

According to Bayes' Theorem: P(kD)=P(Dk)P(k)P(D)    P(k)=P(kD)P(D)P(Dk)P(k \mid D) = \frac{P(D \mid k)P(k)}{P(D)} \implies P(k) = \frac{P(k \mid D)P(D)}{P(D \mid k)} Let P(D)=cP(D) = c represent the total probability of a defective device (constant). P(X)=0.5c0.01=50cP(X) = \frac{0.5 \cdot c}{0.01} = 50c P(Y)=0.3c0.04=7.5cP(Y) = \frac{0.3 \cdot c}{0.04} = 7.5c P(Z)=0.2c0.02=10cP(Z) = \frac{0.2 \cdot c}{0.02} = 10c

Since the probabilities must sum to 1 (P(X)+P(Y)+P(Z)=1P(X) + P(Y) + P(Z) = 1): 50c+7.5c+10c=1    67.5c=1    c=167.5=213550c + 7.5c + 10c = 1 \implies 67.5c = 1 \implies c = \frac{1}{67.5} = \frac{2}{135}

Now, substitute cc back to find the exact priors:

  • Prior of Type X: P(X)=50×2135=100135=20270.7407(74.07%)P(X) = 50 \times \frac{2}{135} = \frac{100}{135} = \frac{20}{27} \approx 0.7407 \quad (74.07\%)
  • Prior of Type Y: P(Y)=7.5×2135=15135=327=190.1111(11.11%)P(Y) = 7.5 \times \frac{2}{135} = \frac{15}{135} = \frac{3}{27} = \frac{1}{9} \approx 0.1111 \quad (11.11\%)
  • Prior of Type Z: P(Z)=10×2135=20135=4270.1481(14.81%)P(Z) = 10 \times \frac{2}{135} = \frac{20}{135} = \frac{4}{27} \approx 0.1481 \quad (14.81\%)

Conclusion B: If the question refers to the overall production volume of the factory, Type X is the most likely type of device produced by the factory, accounting for approximately 74.07%74.07\% of total production.


Question 11: Bayes' Theorem / Posterior Analysis of Food Products

Given Data

Let D,E,FD, E, F represent the events that an inspected food product is of Type D, Type E, or Type F respectively. Let DefDef represent the event that a product is defective.

  • Defective conditional probabilities: P(DefD)=0.03,P(DefE)=0.01,P(DefF)=0.04P(Def \mid D) = 0.03, \quad P(Def \mid E) = 0.01, \quad P(Def \mid F) = 0.04
  • Posteriors of product type given a defective is found: P(DDef)=0.2,P(EDef)=0.5,P(FDef)=0.3P(D \mid Def) = 0.2, \quad P(E \mid Def) = 0.5, \quad P(F \mid Def) = 0.3

Analysis & Derivations

The question asks: "If a defective product is selected, what is the most likely type of food product it belongs to?"

Interpretation A: Direct Posterior Comparison (MAP Decision)

Since we are given that a defective product has been selected, we compare the given posterior probabilities:

  • P(DDef)=0.2P(D \mid Def) = 0.2 (or 20%20\%)
  • P(EDef)=0.5P(E \mid Def) = 0.5 (or 50%50\%)
  • P(FDef)=0.3P(F \mid Def) = 0.3 (or 30%30\%)

Conclusion A: Type E is the most likely type of food product to have been selected among defectives, with a probability of 0.50.5.


Interpretation B: Deriving the Production Proportions (Priors)

Let us compute the total production distribution (the priors P(D),P(E),P(F)P(D), P(E), P(F)) across the factory.

According to Bayes' Theorem: P(k)=P(kDef)P(Def)P(Defk)P(k) = \frac{P(k \mid Def)P(Def)}{P(Def \mid k)} Let P(Def)=cP(Def) = c represent the total probability of a defective product. P(D)=0.2c0.03=203c=8012cP(D) = \frac{0.2 \cdot c}{0.03} = \frac{20}{3}c = \frac{80}{12}c P(E)=0.5c0.01=50c=60012cP(E) = \frac{0.5 \cdot c}{0.01} = 50c = \frac{600}{12}c P(F)=0.3c0.04=304c=9012cP(F) = \frac{0.3 \cdot c}{0.04} = \frac{30}{4}c = \frac{90}{12}c

Summing the probabilities to 1: 80+600+9012c=1    77012c=1    c=12770=6385\frac{80 + 600 + 90}{12} c = 1 \implies \frac{770}{12}c = 1 \implies c = \frac{12}{770} = \frac{6}{385}

Now, substitute cc back to find the priors:

  • Prior of Type D: P(D)=8012×12770=80770=8770.1039(10.39%)P(D) = \frac{80}{12} \times \frac{12}{770} = \frac{80}{770} = \frac{8}{77} \approx 0.1039 \quad (10.39\%)
  • Prior of Type E: P(E)=60012×12770=600770=60770.7792(77.92%)P(E) = \frac{600}{12} \times \frac{12}{770} = \frac{600}{770} = \frac{60}{77} \approx 0.7792 \quad (77.92\%)
  • Prior of Type F: P(F)=9012×12770=90770=9770.1169(11.69%)P(F) = \frac{90}{12} \times \frac{12}{770} = \frac{90}{770} = \frac{9}{77} \approx 0.1169 \quad (11.69\%)

Conclusion B: If the question refers to the overall production volume, Type E is the most likely type of food product produced by the facility, accounting for approximately 77.92%77.92\% of total production.


Question 12: Poisson Distribution - Fire Alarm Activations

Given Data

Let XX denote the number of fire alarm activations in a week.

  • Average rate of activation (λ\lambda) = 22 activations/week
  • Distribution model: XPois(λ=2)X \sim \operatorname{Pois}(\lambda = 2)

We seek the probability of exactly 3 alarm activations in a week: P(X=3)P(X = 3).


Step-by-Step Derivation

The Probability Mass Function (PMF) of a Poisson random variable is: P(X=x)=eλλxx!P(X = x) = \frac{e^{-\lambda} \lambda^x}{x!}

Substitute λ=2\lambda = 2 and x=3x = 3: P(X=3)=e2233!P(X = 3) = \frac{e^{-2} 2^3}{3!} P(X=3)=e2×86=43e2P(X = 3) = \frac{e^{-2} \times 8}{6} = \frac{4}{3} e^{-2}

Using the approximation e20.135335e^{-2} \approx 0.135335: P(X=3)43×0.1353350.180447P(X = 3) \approx \frac{4}{3} \times 0.135335 \approx 0.180447

Inference: The probability that exactly 3 fire alarms will activate in a given week is approximately 18.04%18.04\%.


Question 13: Poisson Distribution - Coffee Shop Customer Arrivals

Given Data

Let XX denote the number of customers arriving at a coffee shop in a given hour.

  • Average rate of arrival (λ\lambda) = 1010 customers/hour
  • Distribution model: XPois(λ=10)X \sim \operatorname{Pois}(\lambda = 10)

We seek the probability of exactly 15 customer arrivals in an hour: P(X=15)P(X = 15).


Step-by-Step Derivation

Using the Poisson PMF: P(X=x)=eλλxx!P(X = x) = \frac{e^{-\lambda} \lambda^x}{x!}

Substitute λ=10\lambda = 10 and x=15x = 15: P(X=15)=e10101515!P(X = 15) = \frac{e^{-10} 10^{15}}{15!}

Given:

  • 1015=101510^{15} = 10^{15}
  • 15!=1,307,674,368,000=1.307674368×101215! = 1,307,674,368,000 = 1.307674368 \times 10^{12}
  • e100.0000453999e^{-10} \approx 0.0000453999

Substitute these numerical values: P(X=15)0.0000453999×10151.307674368×1012=4.53999×10101.307674368×1012P(X = 15) \approx \frac{0.0000453999 \times 10^{15}}{1.307674368 \times 10^{12}} = \frac{4.53999 \times 10^{10}}{1.307674368 \times 10^{12}} P(X=15)4.53999130.76743680.034718P(X = 15) \approx \frac{4.53999}{130.7674368} \approx 0.034718

Inference: The probability that exactly 15 customers arrive in a given hour is approximately 3.47%3.47\%.


Question 21: Defective Bulbs - Binomial vs. Hypergeometric Models

Given Data

  • Total production batch size (NN) = 10001000
  • Probability of a bulb being defective (pp) = 0.010.01
  • Number of defective bulbs in the run (DD) = 1000×0.01=101000 \times 0.01 = 10
  • Number of non-defective bulbs (NDN - D) = 990990
  • Sample size selected (nn) = 22

Let XX denote the number of defective bulbs in our sample of size 22. We solve this using both standard models to ensure complete accuracy.


Model 1: Binomial Distribution (With Replacement Approximation)

Since NN is large relative to nn, we can model this as XBin(n=2,p=0.01)X \sim \operatorname{Bin}(n=2, p=0.01).

1. Probability that both are defective (P(X=2)P(X = 2))

P(X=2)=(22)p2(1p)0=(0.01)2=0.0001P(X = 2) = \binom{2}{2} p^2 (1-p)^0 = (0.01)^2 = 0.0001

2. Probability that both are non-defective (P(X=0)P(X = 0))

P(X=0)=(20)p0(1p)2=(0.99)2=0.9801P(X = 0) = \binom{2}{0} p^0 (1-p)^2 = (0.99)^2 = 0.9801

3. Probability that one is defective and the other is non-defective (P(X=1)P(X = 1))

P(X=1)=(21)p1(1p)1=2×0.01×0.99=0.0198P(X = 1) = \binom{2}{1} p^1 (1-p)^1 = 2 \times 0.01 \times 0.99 = 0.0198


Model 2: Hypergeometric Distribution (Exact Without Replacement)

Since the bulbs are drawn without replacement from a finite batch of 10001000, the exact model is XHypergeom(N=1000,D=10,n=2)X \sim \operatorname{Hypergeom}(N=1000, D=10, n=2). P(X=x)=(Dx)(NDnx)(Nn)P(X = x) = \frac{\binom{D}{x}\binom{N-D}{n-x}}{\binom{N}{n}}

Total combinations of choosing 2 bulbs out of 1000: (10002)=1000×9992=499500\binom{1000}{2} = \frac{1000 \times 999}{2} = 499500

1. Probability that both are defective (P(X=2)P(X = 2))

P(X=2)=(102)(9900)499500=45×1499500=1111000.00009009P(X = 2) = \frac{\binom{10}{2}\binom{990}{0}}{499500} = \frac{45 \times 1}{499500} = \frac{1}{11100} \approx 0.00009009

2. Probability that both are non-defective (P(X=0)P(X = 0))

P(X=0)=(100)(9902)499500=1×990×9892499500=489555499500=10879111000.980090P(X = 0) = \frac{\binom{10}{0}\binom{990}{2}}{499500} = \frac{1 \times \frac{990 \times 989}{2}}{499500} = \frac{489555}{499500} = \frac{10879}{11100} \approx 0.980090

3. Probability that one is defective and the other is non-defective (P(X=1)P(X = 1))

P(X=1)=(101)(9901)499500=10×990499500=9900499500=2211100.0198198P(X = 1) = \frac{\binom{10}{1}\binom{990}{1}}{499500} = \frac{10 \times 990}{499500} = \frac{9900}{499500} = \frac{22}{1110} \approx 0.0198198


Academic Summary of Results

EventBinomial Model (Approx)Hypergeometric Model (Exact)
Both Defective0.0001000.000100 (0.01%0.01\%)0.0000900.000090 (0.009%0.009\%)
Both Non-Defective0.9801000.980100 (98.01%98.01\%)0.9800900.980090 (98.01%98.01\%)
One Defective, One Non-Defective0.0198000.019800 (1.98%1.98\%)0.0198200.019820 (1.982%1.982\%)

Exam tip: Mentioning both models in your answer shows exceptional depth. Explain that because the sample size (n=2n=2) is extremely small compared to the population (N=1000N=1000), the Binomial model is an incredibly accurate approximation of the exact Hypergeometric process.


Quick-Facts & Formula Sheet (Probability Distributions)

Distribution ModelProbability Mass Function (PMF)Mean (μ\mu)Variance (σ2\sigma^2)Characteristics / Conditions
BinomialP(X=k)=(nk)pk(1p)nkP(X=k) = \binom{n}{k} p^k (1-p)^{n-k}npnpnp(1p)np(1-p)nn trials; binary outcomes; independent; constant success probability pp.
PoissonP(X=x)=eλλxx!P(X=x) = \frac{e^{-\lambda} \lambda^x}{x!}λ\lambdaλ\lambdaRare event count; continuous interval; rate λ\lambda is constant; independence.
HypergeometricP(X=x)=(Dx)(NDnx)(Nn)P(X=x) = \frac{\binom{D}{x}\binom{N-D}{n-x}}{\binom{N}{n}}n(DN)n \left(\frac{D}{N}\right)n(DN)(NDN)(NnN1)n\left(\frac{D}{N}\right)\left(\frac{N-D}{N}\right)\left(\frac{N-n}{N-1}\right)Finite population NN; DD items of interest; size nn sampled without replacement.