0% found this document useful (0 votes)
15 views5 pages

STA301

Uploaded by

ashoomehar9
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)
15 views5 pages

STA301

Uploaded by

ashoomehar9
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/ 5

STA 301 STATISTICS AND PROBABILITY

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 (Age of Car) y (Resale x² y² xy


Value)
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
According to formula we have to find:

∑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

Substitute the values into the formula:

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.

Range = 5.5 - 0.5 = 5.0

2. Class Width: Divide the range by the number of classes (6):

Class Width = Range / Number of Classes = 5.0 / 6 ≈ 0.833

Round up to 1 for simplicity.

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

The frequency distribution table is as follows:


Class Interval: 0.0 - 0.9
Data points in this range: 0.5, 0.5, 0.5
Frequency: 3

Class Interval: 1.0 - 1.9


Data points in this range: 1.0, 1.5, 1.5, 1.0, 1.0, 1.5, 1.5, 1.0
Frequency: 8

Class Interval: 2.0 - 2.9


Data points in this range: 2.0, 2.5, 2.0, 2.5, 2.0, 2.5, 2.5, 2.0, 2.0, 2.0, 2.5
Frequency: 11

Class Interval: 3.0 - 3.9


Data points in this range: 3.0, 3.0, 3.5, 3.5, 3.0, 3.0, 3.0, 3.5, 3.5, 3.5, 3.0
Frequency: 11

Class Interval: 4.0 - 4.9


Data points in this range: 4.0, 4.5, 4.0, 4.5, 4.0, 4.0, 4.5, 4.5, 4.0, 4.0
Frequency: 10

Class Interval: 5.0 - 5.9


Data points in this range: 5.0, 5.5, 5.0, 5.0, 5.5, 5.0, 5.0
Frequency: 7

Class Interval Frequency


0.0 - 0.9 3
1.0 - 1.9 8
2.0 - 2.9 11
3.0 - 3.9 11
4.0 - 4.9 10
5.0 - 5.9 7

Total Frequency = 3+ 8 + 11 + 11 + 10 + 7 = 50

which matches the number of data points provided.

Midpoint= (Lower Bound +Upper Bound)/2

For the class interval 0.0−0.9


Midpoint = (0.0+0.9) / 2
Midpoint = 0.45
Here are the calculations for all the class intervals:

For the class interval 1.0−1.9


Midpoint = (1.0+1.9) / 2
Midpoint = 1.45

For the class interval 2.0+2.9


Midpoint = (2.0+2.9) / 2
Midpoint = 2.5
For the class interval 3.0+3.9
Midpoint = (3.0+3.9) / 2
Midpoint = 3.5

For the class interval 4.0+4.9


Midpoint = (4.0+4.9) / 2
Midpoint = 4.5

For the class interval 5.0+5.9


Midpoint = (5.0+5.9) / 2
Midpoint = 5.5

Class Interval Frequency Midpoint


0.0 - 0.9 4 0.5
1.0 - 1.9 8 1.4
2.0 - 2.9 12 2.5
3.0 - 3.9 11 3.5
4.0 - 4.9 9 4.5
5.0 - 5.9 6 5.5

You might also like