609 views
0 0 votes

A data analyst is studying the relationship between the number of study hours $(\mathrm{X})$ and the test scores $(\mathrm{Y})$ of $5$ students. The data is as follows:

\[
\begin{array}{ccc}
\text{Student} & \text{Study Hours (X)} & \text{Test Score (Y)} \\
1 & 2 & 40 \\
2 & 4 & 50 \\
3 & 6 & 60 \\
4 & 8 & 70 \\
5 & 10 & 80 \\
\end{array}
\]

Compute the covariance between $\mathrm{X}$ and $\mathrm{Y}$.

2 Answers

1 1 vote

By applying formula of covariance :

Cov(X,Y) = E(XY) - E(X)E(Y)

E(XY) = (80+200+360+560+800)/5 = 400

E(X) = 6

E(Y) = 60

applying in formula we got,

Cov(X,Y) = E(XY) - E(X)E(Y)

Cov(X,Y) = 400-360 = 40

Cov(X,Y) = 40

0 0 votes

Given :
\[
\begin{array}{ccc}
\text{Student} & \text{Study Hours (X)} & \text{Test Score (Y)} \\
1 & 2 & 40 \\
2 & 4 & 50 \\
3 & 6 & 60 \\
4 & 8 & 70 \\
5 & 10 & 80 \\
\end{array}
\]

There are two formulas for covariance depending on the context:

1. Population covariance:

$$
\operatorname{Cov}(X, Y)=\frac{\sum\left(X_i-\tilde{X}\right)\left(Y_i-\tilde{Y}\right)}{n}
$$

2. Sample covariance:

$$
\operatorname{Cov}(X, Y)=\frac{\sum\left(X_i-\bar{X}\right)\left(Y_i-\bar{Y}\right)}{n-1}
$$


Since we are dealing with a sample of 5 students (not the entire population), we should divide by $n-1=4$.
 

Step 1: Calculate means

$$
\begin{aligned}
& \bar{X}=(2+4+6+8+10) / 5=30 / 5=6 \\
& \bar{Y}=(40+50+60+70+80) / 5=300 / 5=60
\end{aligned}
$$


Step 2: Compute $(\mathrm{Xi}-\overline{\mathrm{X}})$ and $(\mathrm{Yi}-\overline{\mathrm{Y}})$

\[
\begin{array}{ccccc}
X & Y & X_i - \overline{X} & Y_i - \overline{Y} & (X_i - \overline{X})(Y_i - \overline{Y}) \\
2 & 40 & -4 & -20 & 80 \\
4 & 50 & -2 & -10 & 20 \\
6 & 60 & 0 & 0 & 0 \\
8 & 70 & 2 & 10 & 20 \\
10 & 80 & 4 & 20 & 80 \\
\end{array}
\]

Step 3: Sum of products

\begin{aligned}
&\Sigma[(X i-\bar{X})(Y i-\bar{Y})]=80+20+0+20+80=200\\
&\operatorname{Cov}(X, Y)=\frac{200}{4}=50
\end{aligned}

1 flag:
✌ Low quality (Ansh_Gupta 1 “ans is 40 ( E(XY) = 400 ; E(X)*E(Y) = 6*60=360)”)
Answer:
Position:
Show:

Related questions

1 1 vote
1 1 answer
198
198 views
GO Classes asked Nov 11, 2025
198 views
YOU ROLL A FAIR SIX-SIDED DIE. LET THE OUTCOME BE $N$. YOU THEN TOSS A FAIR COIN $N$ TIMES. LET $X$ BE THE TOTAL NUMBER OF HEADS.WHAT IS THE VARIANCE, $\operatorname{Var}...
0 0 votes
1 1 answer
198
198 views
GO Classes asked Nov 11, 2025
198 views
LET $X$ BE AN EXPONENTIAL RANDOM VARIABLE WITH THE PROBABILITY DENSITY FUNCTION (P.D.F.) $f(x)=e^{-x}$ FOR $x \geq 0$.LET A NEW RANDOM VARIABLE $Y$ BE DEFINED AS $Y=X^2$....
0 0 votes
1 1 answer
201
201 views
GO Classes asked Nov 11, 2025
201 views
YOU ROLL A FAIR SIX-SIDED DIE.IF THE RESULT IS EVEN, YOU DRAW A BALL FROM URN A. IF THE RESULT IS ODD, YOU DRAW A BALL FROM URN B. URN A CONTAINS $3$ BALLS MARKED "$10$" ...
0 0 votes
1 1 answer
184
184 views
GO Classes asked Nov 11, 2025
184 views
AN URN CONTAINS $20$ DISTINCT BALLS, $5$ OF WHICH ARE WHITE AND $15$ ARE BLACK. YOU DRAW BALLS ONE BY ONE, WITHOUT REPLACEMENT. LET $X$ BE THE RANDOM VARIABLE REPRESENTIN...