Question
Question: Find the correlation coefficient between age in years (x) and glucose level (y) from the data of 5 p...
Find the correlation coefficient between age in years (x) and glucose level (y) from the data of 5 people as follows.

0.621
Solution
The correlation coefficient (Pearson's r) between two variables x and y for a sample of n data points is given by the formula:
r=[n∑x2−(∑x)2][n∑y2−(∑y)2]n∑(xy)−(∑x)(∑y)
Given data:
n = 5
x: 43, 22, 25, 42, 58
y: 99, 65, 79, 75, 87
-
Calculate the sum of x values (∑x), sum of y values (∑y), sum of products of x and y values (∑xy), sum of squares of x values (∑x2), and sum of squares of y values (∑y2).
∑x=43+22+25+42+58=190
∑y=99+65+79+75+87=405
∑xy=(43×99)+(22×65)+(25×79)+(42×75)+(58×87)=4257+1430+1975+3150+5046=15858
∑x2=432+222+252+422+582=1849+484+625+1764+3364=8086
∑y2=992+652+792+752+872=9801+4225+6241+5625+7569=33461
-
Use the formula for the sample correlation coefficient: r=[n∑x2−(∑x)2][n∑y2−(∑y)2]n∑(xy)−(∑x)(∑y), where n is the number of data points.
-
Substitute the calculated sums into the formula and compute the value of r.
r=[5×8086−(190)2][5×33461−(405)2]5×15858−(190)(405)
r=[40430−36100][167305−164025]79290−76950
r=4330×32802340=142024002340≈3768.6192340≈0.62087
Rounding to three decimal places, we get 0.621.