NivaarExam PrepOfficial exam papers ↗

04-BS-2 · December 2013

Question 4 of 8: Tree Diagram and Bayes' Theorem for Customer Satisfaction

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

National Examinations, December 2013 — 04-BS-2 Probability and Statistics, 2 hours, closed book except one hand-written information sheet and an approved calculator. Statistical tables (Normal, t, chi-square, F) are supplied with the paper. The instructions state that any 5 of the 8 questions constitute a complete paper; every question is answered in full below.

Reference texts: Walpole, Myers, Myers & Ye, Probability & Statistics for Engineers and Scientists (9th ed.) — sampling distributions Ch. 8, estimation Ch. 9, hypothesis testing Ch. 10, ANOVA/chi-square Ch. 13–16.

Question 4: Tree Diagram and Bayes' Theorem for Customer Satisfaction (20 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. Education groups partition the customer base: $P(U)=0.25,\ P(C)=0.30,\ P(H)=0.25,\ P(R)=0.20$. Conditional dissatisfaction rates: $P(X'|U)=0.03,\ P(X'|C)=0.04,\ P(X'|H)=0.02,\ P(X'|R)=0.03$.

Find. (a) tree diagram; (b) $Pr(X)$, $Pr(H\cap X)$, $Pr(U\cap X')$; (c) $P(C\mid X')$; (d) $P(\text{fewer than 2 of 10 dissatisfied})$.

Approach. Use the law of total probability across the four education branches for (b)(i); multiply along a branch for the joint probabilities; invert with Bayes' theorem for (c); treat the ten files as Binomial trials with the overall dissatisfaction rate from (b) for (d).

0.25U0.970.03XX'0.3C0.960.04XX'0.25H0.980.02XX'0.2R0.970.03XX'
Fig. 4(a) — tree diagram: first-stage branches U/C/H/R with their marginal probabilities, second-stage branches X/X' with the conditional satisfaction/dissatisfaction rates given each group.
  1. (b)(i) $Pr(X)$ via total probability. First find $Pr(X')=\sum P(\text{group})P(X'|\text{group})$: $$Pr(X')=(0.25)(0.03)+(0.30)(0.04)+(0.25)(0.02)+(0.20)(0.03)=0.0075+0.0120+0.0050+0.0060=0.0305$$ so $$Pr(X)=1-Pr(X')=1-0.0305=\boxed{0.9695}$$
  2. (b)(ii) $Pr(H\cap X)$. Multiply along the H branch to its satisfied leaf: $Pr(H\cap X)=P(H)\big(1-P(X'|H)\big)=(0.25)(0.98)=\boxed{0.245}$
  3. (b)(iii) $Pr(U\cap X')$. Multiply along the U branch to its dissatisfied leaf: $Pr(U\cap X')=P(U)P(X'|U)=(0.25)(0.03)=\boxed{0.0075}$
  4. (c) Bayes' theorem for $P(C|X')$. Given that the customer is dissatisfied, the probability they came from group C reweights $Pr(C\cap X')$ against the total dissatisfaction probability found in (b)(i): $$P(C\mid X')=\dfrac{P(C)P(X'|C)}{Pr(X')}=\dfrac{(0.30)(0.04)}{0.0305}=\dfrac{0.0120}{0.0305}=\boxed{0.3934}$$
  5. (d) Ten independent files, Binomial. Treat each file as an independent Bernoulli trial with dissatisfaction probability $\pi=Pr(X')=0.0305$ from (b)(i), so the count of dissatisfied files among $n=10$ is $W\sim Binomial(10,0.0305)$. $$P(W\lt2)=P(W=0)+P(W=1)=(1-\pi)^{10}+10\pi(1-\pi)^{9}=0.7325+0.2319=\boxed{0.9644}$$
Final results — Question 4
PartResult
(b)(i) $Pr(X)$0.9695
(b)(ii) $Pr(H\cap X)$0.245
(b)(iii) $Pr(U\cap X')$0.0075
(c) $P(C\mid X')$0.3934
(d) $P(W\lt2)$0.9644