0% found this document useful (0 votes)
11 views2 pages

Fall 2024 - STA301 - 1 - BC240414411

Uploaded by

sitechecker582
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Fall 2024 - STA301 - 1 - BC240414411

Uploaded by

sitechecker582
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

STUDENT ID :BC240414411

STUDENT NAME: MUHAMMAD SHAHZAD

Assignment No.1 (Course STA 301)


Fall 2024 (Total Marks 20)
Assignment no. 1 (Lessons 10-15)
Question 1: Marks: 10
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 t
he necessary steps.

Age of a C 2 4 5 6 8 11
ar(x)

x −X -4 -2 -1 0 2 5
Resale Val 18 15 11 8 7 5
ue(Y)

Y −Y 7 4 0 -3 -4 -6

−=(2+4 +5+6 +8+11)/6=6


❑X

❑Y =(18 + 15 + 11 + 8 + 7 + 5) / 6 = 11

r = Σ((x - mean of x)(y - mean of y)) / √(Σ(x - mean of x)^2 * Σ(y - mean of y)^2)

r = -74 / √(50 * 126) ≈ -0.86


The correlation coefficient (r) is approximately -0.86, indicating a strong negative linear
relationship 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.

Question 2: Marks: 10
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
SOLUTION:

Class interval Tally marks frequencies

0-0.9 IIII 5

1-1.9 IIIIII 6

2-2.9 IIIIIIIII 9

3-3.9 IIIIIIIII 9

4-4.9 IIIIIII 7

5-5.9 IIIIII 6

You might also like