Data were collected on the mass of a kitten, in kilograms, and its age in weeks.
A g e ( w e e k s ) 1 2 3 4 5 6 7 M a s s ( k g ) 0.8 1.1 1.2 1.4 1.5 1.5 1.7 \def\arraystretch{1.5}
\begin{array}{c: c: c: c:c: c: c: c}
Age(weeks) & 1 & 2 & 3 & 4 & 5 & 6 & 7 \\ \hline
Mass(kg) & 0.8 & 1.1 & 1.2 & 1.4 & 1.5 & 1.5 & 1.7
\end{array} A g e ( w ee k s ) M a ss ( k g ) 1 0.8 2 1.1 3 1.2 4 1.4 5 1.5 6 1.5 7 1.7
n = 7 , ∑ i x i = 28 , x ˉ = ∑ i x i n = 4 n=7,\sum_ix_i=28, \bar{x}=\dfrac{\sum_ix_i}{n}=4 n = 7 , i ∑ x i = 28 , x ˉ = n ∑ i x i = 4
n = 7 , ∑ i y i = 9.3 , y ˉ = ∑ i x i n = 9.2 7 n=7,\sum_iy_i=9.3, \bar{y}=\dfrac{\sum_ix_i}{n}=\dfrac{9.2}{7} n = 7 , i ∑ y i = 9.3 , y ˉ = n ∑ i x i = 7 9.2
S x x = ∑ i ( x i − x ˉ ) 2 = ∑ i x i 2 − n x ˉ 2 = S_{xx}=\sum_i(x_i-\bar{x})^2=\sum_ix_i^2-n\bar{x}^2= S xx = i ∑ ( x i − x ˉ ) 2 = i ∑ x i 2 − n x ˉ 2 = = 140 − 7 ( 4 ) 2 = 28 =140-7(4)^2=28 = 140 − 7 ( 4 ) 2 = 28
S y y = ∑ i ( y i − y ˉ ) 2 = ∑ i y i 2 − n y ˉ 2 = S_{yy}=\sum_i(y_i-\bar{y})^2=\sum_iy_i^2-n\bar{y}^2= S yy = i ∑ ( y i − y ˉ ) 2 = i ∑ y i 2 − n y ˉ 2 = = 12.64 − 7 ( 9.2 7 ) 2 = 0.548571 =12.64-7(\dfrac{9.2}{7})^2=0.548571 = 12.64 − 7 ( 7 9.2 ) 2 = 0.548571
S x y = ∑ i ( x i − x ˉ ) ( y i − y ˉ ) = ∑ i x i y i − n x ˉ y ˉ = S_{xy}=\sum_i(x_i-\bar{x})(y_i-\bar{y})=\sum_ix_iy_i-n\bar{x}\bar{y}= S x y = i ∑ ( x i − x ˉ ) ( y i − y ˉ ) = i ∑ x i y i − n x ˉ y ˉ = = 40.6 − 7 ( 4 ) ( 9.2 7 ) = 3.8 =40.6-7(4)(\dfrac{9.2}{7})=3.8 = 40.6 − 7 ( 4 ) ( 7 9.2 ) = 3.8 Therefore, based on the above calculations, the regression coefficients (the slope m , m, m ,
and the y-intercept n n n ) are obtained as follows:
m = S S x y S S x x = 3.8 28 = 0.135714 m=\dfrac{SS_{xy}}{SS_{xx}}=\dfrac{3.8}{28}=0.135714 m = S S xx S S x y = 28 3.8 = 0.135714
n = y ˉ − m ⋅ x ˉ = 9.2 7 − 3.8 28 ⋅ 4 = 5.4 7 ≈ 0.771429 n=\bar{y}-m\cdot\bar{x}=\dfrac{9.2}{7}-\dfrac{3.8}{28}\cdot 4=\dfrac{5.4}{7}\approx0.771429 n = y ˉ − m ⋅ x ˉ = 7 9.2 − 28 3.8 ⋅ 4 = 7 5.4 ≈ 0.771429 Therefore, we find that the regression equation is:
y = 0.771429 + 0.135714 x y=0.771429+0.135714x y = 0.771429 + 0.135714 x
y ( 10 ) = 0.771429 + 0.135714 ( 10 ) = 2.13 ( k g ) y(10)=0.771429+0.135714(10)=2.13(kg) y ( 10 ) = 0.771429 + 0.135714 ( 10 ) = 2.13 ( k g )
r = S S x y S S x x S S y y r=\dfrac{SS_{xy}}{\sqrt{SS_{xx}}\sqrt{SS_{yy}}} r = S S xx S S yy S S x y
r = 3.8 28 0.548571 = 0.9696 r=\dfrac{3.8}{\sqrt{28}\sqrt{0.548571}}=0.9696 r = 28 0.548571 3.8 = 0.9696 0.7 < r ≤ 1 0.7<r\leq1 0.7 < r ≤ 1 strong correlation
Comments