Student ID: BC240417208 Assignment No.
01 Fall 2024 STA301
Question 1:
Calculate the correlation coefficient using the following data and interpret the result.
Create a table for the necessary calculations, use the appropriate formula, and include all the
necessary steps.
Age of a 2 4 5 6 8 11
Car
Resale 18 15 11 8 7 5
Value
Answer: For calculating the correlation coefficient we have the following formula,
∑ XY −(∑ X )(∑ Y )/n
Formula r꓿
√ 2 2
∑ X −( ∑ X ) /n}{
Y 2− ( ∑ Y ) 2
n
}
X Y X
2
Y
2
XY
2 18 4 324 36
4 15 16 225 60
5 11 25 121 55
6 8 36 64 48
8 7 64 49 56
11 5 121 25 55
∑X꓿36 ∑Y꓿64 ∑ X 2 =266 ∑Y 2=808 ∑XY̳꓿310
∑ XY −(∑ X )(∑ Y )/n
Now put the values in the Formula r꓿
√ 2
∑ X −( ∑ X ) /n}{
2 Y 2− ( ∑ Y ) 2
n
}
310−(36)(64 )/6
We get r꓿
√ 2
{266−(266) /6 }{
808−( 808 )2
6
}
Student ID: BC240417208 Assignment No.01 Fall 2024 STA301
310−( 2304 ) /6
r꓿
√ {266−(1296)/6 }{
808−4096
6
}
Taking L.C.M.
6(310)−( 2304 ) /6
r꓿
√ {6(266)−1296/6 }{
6 (808)−4096
6
}
1860−2304
6
r꓿
√ (
1596−1296 4848−4096
6
)(
6
)
̵ 4 44
6
r꓿
√ (
300 752
6
)(
6
)
−74
r꓿
√6266.7
−74
r꓿ 79.1625
r꓿ ‒0.9348
Hence we derived that there is negative correlation between the age of the car and its resale
value.
Question 2:
Construct a frequency distribution table for the given sample data.
Divide the data into 6 classes, starting with the first class as 0–0.9, and so on.
0.5, 1.0, 1.5, 1.5, 1.0, 2.0, 2.5, 2.0, 3.0, 2.5, 3.5, 3.5, 4.0, 4.5, 3.0, 3.0, 2.5, 2.0, 1.0, 0.5, 2.5, 3.0,
4.0, 3.5, 4.5, 5.0, 5.5, 5.0, 4.0, 3.5, 2.0, 1.5, 2.0, 2.5, 3.5, 4.0, 4.5, 5.5, 5.0, 5.0, 4.0, 3.0, 2.0, 1.0,
0.5, 0.5, 1.5, 2.5, 3.5, 4.5
Student ID: BC240417208 Assignment No.01 Fall 2024 STA301
Answer:
Arrange the data into ascending order:
0.5, 0.5, 0.5, 0.5, 1.0, 1.0, 1.0, 1.0, 1.5, 1.5, 1.5, 1.5, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.5, 2.5, 2.5, 2.5,
2.5, 2.5, 3.0, 3.0, 3.0, 3.0, 3.0, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 4.0, 4.0, 4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 4.5,
5.0, 5.0, 5.0, 5.0, 5.5, 5.5
Class interval Frequency
0.0 ̵ 0.9 4
1.0 ̵ 1.9 8
2.0 ̵ 2.9 12
3.0 ̵ 3.9 11
4.0 ̵ 4.9 9
5.0 ̵ 5.9 6