0% found this document useful (0 votes)
11 views

Assignment # 01

Uploaded by

Qaziwasif khan
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 views

Assignment # 01

Uploaded by

Qaziwasif khan
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/ 3

Assignment # 01

STA-301
Question # 01

Age of a Car (X) Resale Value (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
36 64 266 808 310

Substitute the values into the formula:

r=n(∑XY)−(∑X)(∑Y)[n∑X2−(∑X)2][n∑Y2−(∑Y)2]r = \frac{n(\sum XY) - (\sum X)(\sum Y)}


{\sqrt{[n \sum X^2 - (\sum X)^2][n \sum Y^2 - (\sum Y)^2]}}

Where n=6n = 6 (the number of data points).

1. Numerator:

n(∑XY)=6×310=1860n(\sum XY) = 6 \times 310 = 1860 (∑X)(∑Y)=36×64=2304(\sum X)(\sum


Y) = 36 \times 64 = 2304 Numerator=1860−2304=−444\text{Numerator} = 1860 - 2304 = -444

2. Denominator:

For XX:

n(∑X2)=6×266=1596n(\sum X^2) = 6 \times 266 = 1596 (∑X)2=362=1296(\sum X)^2 = 36^2 =


1296 Term for X=1596−1296=300\text{Term for } X = 1596 - 1296 = 300

For YY:

n(∑Y2)=6×808=4848n(\sum Y^2) = 6 \times 808 = 4848 (∑Y)2=642=4096(\sum Y)^2 = 64^2 =


4096 Term for Y=4848−4096=752\text{Term for } Y = 4848 - 4096 = 752

Now, calculate the denominator:

300×752=225600≈474.83\sqrt{300 \times 752} = \sqrt{225600} \approx 474.83

Step 4: Final calculation for rr

Now that we have the numerator and denominator, we can compute the final value for rr:
r=−444474.83≈−0.935r = \frac{-444}{474.83} \approx -0.935

Step 5: Interpretation

The Pearson correlation coefficient r≈−0.935r \approx -0.935 indicates a strong negative linear
relationship between the age of the car and its resale value. This means that as the age of the
car increases, its resale value tends to decrease, and this relationship is quite strong.

Summary:

 The correlation coefficient r≈−0.935r \approx -0.935 suggests a strong negative


correlation.
 As the age of the car increases, its resale value decreases significantly.

Question # 02

To construct a frequency distribution table, we first need to divide the given data into 6 classes
starting from 0.0−0.90.0 - 0.9 and proceed with equal intervals.

The data is:

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.50.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

Step 1: Identify the range of the data

The smallest value is 0.5, and the largest value is 5.5. Therefore, the range is:

Range=5.5−0.5=5\text{Range} = 5.5 - 0.5 = 5

Step 2: Divide the range into 6 equal classes

The class width will be:

Class Width=Range6=56≈0.8333\text{Class Width} = \frac{\text{Range}}{6} = \frac{5}{6} \


approx 0.8333

We will round the class width to 1.01.0 for simplicity.


Step 3: Create the class intervals

We start with 0.0−0.90.0 - 0.9, and continue with intervals of width 1.01.0 for the subsequent
classes:

 0.0−0.90.0 - 0.9
 1.0−1.91.0 - 1.9
 2.0−2.92.0 - 2.9
 3.0−3.93.0 - 3.9
 4.0−4.94.0 - 4.9
 5.0−5.95.0 - 5.9

Step 4: Count the frequency for each class

Now, we count how many values from the dataset fall into each class:

 0.0−0.90.0 - 0.9: Values: 0.5, 0.5, 0.5, 0.5 (4 values)


 1.0−1.91.0 - 1.9: Values: 1.0, 1.0, 1.5, 1.5, 1.0, 1.0, 1.5, 1.5 (8 values)
 2.0−2.92.0 - 2.9: Values: 2.0, 2.5, 2.0, 2.5, 2.5, 2.0, 2.0, 2.5, 2.0, 2.5 (10 values)
 3.0−3.93.0 - 3.9: Values: 3.0, 3.0, 3.0, 3.5, 3.5, 3.0, 3.0, 3.5, 3.5, 3.0, 3.5, 3.0 (12 values)
 4.0−4.94.0 - 4.9: Values: 4.0, 4.5, 4.0, 4.0, 4.5, 4.0, 4.5, 4.0, 4.0, 4.5, 4.0, 4.5 (12 values)
 5.0−5.95.0 - 5.9: Values: 5.0, 5.5, 5.0, 5.0, 5.5, 5.0, 5.0, 5.0 (8 values)

Cumulative Frequency
Class Interval Frequency
(CF)
0.0 - 0.9 4 4
1.0 - 1.9 8 12
2.0 - 2.9 10 22
3.0 - 3.9 12 34
4.0 - 4.9 12 46
5.0 - 5.9 8 54
54 172

You might also like