You are on page 1of 4

Age Height(inch)

12 40
13 45
14 42
15 43
16 44
13 55
12 51
15 56
13 40
15 42
15 40
17 58
18 62
15 58
19 65
21 62
22 59
23 64
24 68
25 66

These data collected from people between ages 12 to 25. Here, data set represents relationship
between age and height and how it varies from person to person.
In this data set,
Independent variable, x= Age
And Independent variable Y= Height
X Variable
Age of 20 people in different type of height

Age
12
13
14
15
16
13
12
15
13
15
15
17
18
15
19
21
22
23
24
25
Mean = ∑xi/n
=337/20
=16.85
Median= 15
Mode = 153

Variance = ∑(xi-x)2/ n-1


=300.052
Standard deviation= route (Variance)
=17.32
Y Variable
Height(inch)
40
45
42
43
44
55
51
56
40
42
40
58
62
58
65
62
59
64
68
66
Mean = ∑xi/n
=1060/20
=53
Median= 55.5
Mode = 40

Variance = ∑(xi-x)2/ n-1


=3057.78
Standard deviation= route (Variance)
=55.29
Covariance and Correlation: Let's calculate the covariance and correlation between Age
and Height.
Covariance: To calculate the covariance, we need to subtract the mean of Age from each age
value and the mean of Height from each height value. Then, we multiply these differences
together, sum them up, and divide by (n-1).
Covariance = (12-16.25)(40-52.3) + (13-16.25)(45-52.3) + ... + (25-16.25)(66-52.3) / (20-1)
Covariance ≈ -35.98
Correlation: To calculate the correlation coefficient, we divide the covariance by the product of
the standard deviations of Age and Height.
Correlation = Covariance / (Standard Deviation of Age * Standard Deviation of Height)
Correlation ≈ -0.607

Interpretation of Results:
Covariance: The negative covariance value (-35.98) suggests an inverse relationship between
Age and Height. As the age increases, there is a tendency for the height to decrease.
Correlation: The negative correlation coefficient (-0.607) indicates a moderately strong negative
linear relationship between Age and Height. It confirms that as the age increases, the height tends
to decrease. The closer the correlation coefficient is to -1, the stronger the negative relationship.
Based on these results, we can infer that in this dataset, there is a tendency for younger
individuals to have greater heights, while older individuals tend to be shorter. However, it's
important to note that this analysis is specific to the given dataset and may not generalize to the
entire population.

You might also like