STA301
STA301
ASSIGNMENT 1
”SOLUTION 1”
SRUDENT NAME: Urwa Arshad
Student I.D : BC220204291
Question no 1
Solution:
Correlation Coefficient Calculation
Formula
The formula to calculate Pearson’s correlation coefficient is:
∑x = 2 + 4 + 5 + 6 + 8 + 11 = 36
∑y = 18 + 15 + 11 + 8 + 7 + 5 = 64
∑x² = 4 + 16 + 25 + 36 + 64 + 121 = 266
∑y² = 324 + 225 + 121 + 64 + 49 + 25 = 808
∑xy = 36 + 60 + 55 + 48 + 56 + 55 = 310
r=
r
r=
r ≈−0.935
The correlation coefficient r ≈−0.935 indicates a strong negative correlation between the age of
a car and its resale value. This means that as the age of a car increases, its resale value tends to
decrease significantly.
QUESTION 2
Solution:
1. Data Range: The smallest value is 0.5, and the largest value is 5.5.
3. Class Intervals: Start from 0 and use a width of 1. The intervals are:
- 0.0 - 0.9
- 1.0 - 1.9
- 2.0 - 2.9
- 3.0 - 3.9
- 4.0 - 4.9
- 5.0 - 5.9
Total Frequency = 3+ 8 + 11 + 11 + 10 + 7 = 50