Nivaar Exam Prep

23-Ind-B1 Applied Probability and Statistics · December 2019

Question 4 of 9: Joint Probability Function — Correlation and Independence

Printed on the paper as 17-Ind-B1 Applied Probability and Statistics.

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

Notes on this paper

Total marks: 100”, which is internally inconsistent with 20+40+20=80 from its own section breakdown and every question's printed mark value).

Reference texts: Montgomery & Runger, Applied Statistics and Probability for Engineers (7th ed., Wiley) — probability density functions and moments (ch. 4), point/interval estimation (ch. 8), two-sample hypothesis testing and the sign test (ch. 9–10, 16), simple linear regression (ch. 11), single-factor ANOVA and multiple comparisons (ch. 13). Montgomery, Peck & Vining, Introduction to Linear Regression Analysis (6th ed., Wiley) — multiple regression by matrices, confidence/prediction intervals (ch. 2–3). Montgomery, Design and Analysis of Experiments (9th ed., Wiley) — Bartlett's test, Tukey's HSD, $2^k$ factorial designs (ch. 3, 6).

Question 4 (Section A.4): Joint Probability Function — Correlation and Independence (10 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. Joint pmf $p(x,y)$:

$x\backslash y$012$p_X(x)$
00.050.100.200.35
10.050.150.050.25
20.250.100.050.40
$p_Y(y)$0.350.350.301.00

Find. (a) The correlation coefficient $\rho_{xy}$; (b) whether $X$ and $Y$ are independent.

Approach. Compute the marginals directly from the table, then $E[X],E[Y],E[XY]$ (the last via the full nine-term sum over the joint table), then $\mathrm{Cov}(X,Y)$ and $\rho_{xy}=\mathrm{Cov}/\sqrt{\mathrm{Var}(X)\mathrm{Var}(Y)}$; check independence by comparing every joint cell against the product of its marginals.

  1. Marginals and their moments. $p_X=(0.35,0.25,0.40)$ for $x=0,1,2$; $p_Y=(0.35,0.35,0.30)$ for $y=0,1,2$ (each sums to 1, and the table's own row/column sums confirm them). $$E[X]=0(.35)+1(.25)+2(.40)=1.05,\qquad E[X^2]=0(.35)+1(.25)+4(.40)=1.85,\qquad \mathrm{Var}(X)=1.85-1.05^2=0.7475$$ $$E[Y]=0(.35)+1(.35)+2(.30)=0.95,\qquad E[Y^2]=0(.35)+1(.35)+4(.30)=1.55,\qquad \mathrm{Var}(Y)=1.55-0.95^2=0.6475$$
  2. Joint moment and covariance. Summing $xy\cdot p(x,y)$ over all nine cells (only cells with $x,y\ne0$ contribute): $$E[XY]=1(1)(.15)+1(2)(.05)+2(1)(.10)+2(2)(.05)=0.15+0.10+0.20+0.20=0.65$$ $$\mathrm{Cov}(X,Y)=E[XY]-E[X]E[Y]=0.65-(1.05)(0.95)=\boxed{-0.3475}$$
  3. (a) Correlation coefficient. $$\rho_{xy}=\frac{\mathrm{Cov}(X,Y)}{\sqrt{\mathrm{Var}(X)\,\mathrm{Var}(Y)}}=\frac{-0.3475}{\sqrt{(0.7475)(0.6475)}}=\boxed{-0.499}$$ A moderate negative linear association: larger $X$ tends to pair with smaller $Y$ and vice versa.
  4. (b) Independence check (essay + verification). $X,Y$ are independent iff $p(x,y)=p_X(x)\,p_Y(y)$ for every cell. Testing just one cell is enough to disprove it: $p(0,0)=0.05$ but $p_X(0)p_Y(0)=(0.35)(0.35)=0.1225\ne0.05$. $X$ and $Y$ are NOT independent. This is also guaranteed by part (a) alone: independent random variables always have $\rho=0$, and here $\rho_{xy}=-0.499\ne0$, so a nonzero correlation is already sufficient (though not the only possible route) to rule out independence.
Final Results
QuantityValue
$E[X],\ \mathrm{Var}(X)$$1.05,\ 0.7475$
$E[Y],\ \mathrm{Var}(Y)$$0.95,\ 0.6475$
$\mathrm{Cov}(X,Y)$$-0.3475$
$\rho_{xy}$$-0.499$
Independent?No ($\rho\ne0$; joint table $\ne$ product of marginals)