study was conducted to find whether there is any relationship between the weight and blood pressure of an individual. The following set of data was arrived at from a clinical study. The first column represents the serial number and the second and third columns represent the weight and blood pressure of each patient.
Weight (x)
65
82
71
73
63
72
71
77
71
77
Blood Pressure (y)(y)
136
145
123
132
175
165
152
158
117
129
Find the coefficient of correlation for this set of data.
Using MatLab:
>> x =[65 82 71 73 63 72 71 77 71 77]';
>> y = [136 145 123 132 175 165 152 158 117 129]';
>> corr(x,y)
ans =
-0.1960
"\\rho(x,y) = -0.1960"
Comments
Leave a comment