Please provide steps to solutions 2 Consider the information
Solution
Given that
X = amount of drug administered to a randomly selected lavoratory rat and
Y = number of tumors the rat developes
Here we have to find cov(X,Y) and correlation between X and Y.
The formula for covariance is,
Cov(X , Y) = E(XY) - E(X) * E(Y)
E(X) = x*p(x) = (0 * 0.4) + (1 * 0.5) + (2 * 0.1) = 0.7
E(Y) = y*p(y) = (0 * 0.963)+(1 * 0.025)+(2 * 0.012) = 0.049
E(XY) = xy * p(x,y)
= (0 * 0.388) + (0 * 0.009) + (0 * 0.003) + (0 * 0.485) + (1 * 0.01) + (2 * 0.005) + (0 * 0.09)+(2 * 0.006)+(4 * 0.004) = 0.048
Cov(X,Y) = 0.048 - 0.7 * 0.049 = 0.0137
Covariance is positive that means there is positive correlation between X and Y.
Next we find correlation between X and Y.
= Cov(X , Y) / x * y
2x = x2 p(x) - E(X)2
= (02 * 0.4) + (12 * 0.5) + (22 * 0.1) - 0.72 = 0.41
x = sqrt(0.41) = 0.6403
2y = y2 p(y) - E(Y)2
= (02 * 0.963) + (12 * 0.025) + (22 * 0.012) - 0.0492 = 0.070599
y = sqrt(0.070599) = 0.2657
= 0.0137 / (0.6403 * 0.070599) = 0.3031
The linear correlation between X and Y is 0.3031.
| y | |||||
| p(x,y) | 0 | 1 | 2 | total | |
| 0 | 0.388 | 0.009 | 0.003 | 0.4 | |
| x | 1 | 0.485 | 0.01 | 0.005 | 0.5 |
| 2 | 0.09 | 0.006 | 0.004 | 0.1 | |
| total | 0.963 | 0.025 | 0.012 | 1 |
