Answer on Question #73785 – Math – Statistics and Probability
Consider the following five data points:
X − 1 0 1 2 3 Y − 1 1 2 4 5 \begin{array}{l}
X \quad - 1 \quad 0 \quad 1 \quad 2 \quad 3 \\
Y \quad - 1 \quad 1 \quad 2 \quad 4 \quad 5 \\
\end{array} X − 1 0 1 2 3 Y − 1 1 2 4 5
a) use regression analysis to calculate by hand the estimated coefficients of the equation Y = B + A X Y = B + AX Y = B + A X
Solution
mean of x = x ˉ = ∑ x i n mean of y = y ˉ = ∑ y i n \begin{array}{l}
\text{mean of } x = \bar{x} = \frac{\sum x_i}{n} \\
\text{mean of } y = \bar{y} = \frac{\sum y_i}{n} \\
\end{array} mean of x = x ˉ = n ∑ x i mean of y = y ˉ = n ∑ y i trend line: Y = B + A X , A = S x y S x x , B = y ˉ − A x ˉ S x x = ∑ ( x i − x ˉ ) 2 n = ∑ ( x i ) 2 n − ( x ˉ ) 2 S y y = ∑ ( y i − y ˉ ) 2 n = ∑ ( y i ) 2 n − ( y ˉ ) 2 S x y = ∑ ( x i − x ˉ ) ( y i − y ˉ ) n = ∑ x i ⋅ y i n − x ˉ ⋅ y ˉ \begin{array}{l}
\text{trend line: } Y = B + AX, A = \frac{S_{xy}}{S_{xx}}, B = \bar{y} - A\bar{x} \\
S_{xx} = \frac{\sum (x_i - \bar{x})^2}{n} = \frac{\sum (x_i)^2}{n} - (\bar{x})^2 \\
S_{yy} = \frac{\sum (y_i - \bar{y})^2}{n} = \frac{\sum (y_i)^2}{n} - (\bar{y})^2 \\
S_{xy} = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{n} = \frac{\sum x_i \cdot y_i}{n} - \bar{x} \cdot \bar{y} \\
\end{array} trend line: Y = B + A X , A = S xx S x y , B = y ˉ − A x ˉ S xx = n ∑ ( x i − x ˉ ) 2 = n ∑ ( x i ) 2 − ( x ˉ ) 2 S yy = n ∑ ( y i − y ˉ ) 2 = n ∑ ( y i ) 2 − ( y ˉ ) 2 S x y = n ∑ ( x i − x ˉ ) ( y i − y ˉ ) = n ∑ x i ⋅ y i − x ˉ ⋅ y ˉ mean of x = x ˉ = − 1 + 0 + 1 + 2 + 3 5 = 1 mean of y = y ˉ = − 1 + 1 + 2 + 4 + 5 5 = 2.2 S x x = ( − 1 ) 2 + ( 0 ) 2 + ( 1 ) 2 + ( 2 ) 2 + ( 3 ) 2 5 − ( 1 ) 2 = 2 S y y = ( − 1 ) 2 + ( 1 ) 2 + ( 2 ) 2 + ( 4 ) 2 + ( 5 ) 2 5 − ( 2.2 ) 2 = 4.56 S x y = ( − 1 ) ( − 1 ) + ( 0 ) ( 1 ) + ( 1 ) ( 2 ) + ( 2 ) ( 4 ) + ( 3 ) ( 5 ) 5 − ( 1 ) ( 2.2 ) = 3 A = 3 2 = 1.5 B = 2.2 − 1.5 ( 1 ) = 0.7 Y = 0.7 + 1.5 X \begin{array}{l}
\text{mean of } x = \bar{x} = \frac{-1 + 0 + 1 + 2 + 3}{5} = 1 \\
\text{mean of } y = \bar{y} = \frac{-1 + 1 + 2 + 4 + 5}{5} = 2.2 \\
S_{xx} = \frac{(-1)^2 + (0)^2 + (1)^2 + (2)^2 + (3)^2}{5} - (1)^2 = 2 \\
S_{yy} = \frac{(-1)^2 + (1)^2 + (2)^2 + (4)^2 + (5)^2}{5} - (2.2)^2 = 4.56 \\
S_{xy} = \frac{(-1)(-1) + (0)(1) + (1)(2) + (2)(4) + (3)(5)}{5} - (1)(2.2) = 3 \\
A = \frac{3}{2} = 1.5 \\
B = 2.2 - 1.5(1) = 0.7 \\
Y = 0.7 + 1.5X \\
\end{array} mean of x = x ˉ = 5 − 1 + 0 + 1 + 2 + 3 = 1 mean of y = y ˉ = 5 − 1 + 1 + 2 + 4 + 5 = 2.2 S xx = 5 ( − 1 ) 2 + ( 0 ) 2 + ( 1 ) 2 + ( 2 ) 2 + ( 3 ) 2 − ( 1 ) 2 = 2 S yy = 5 ( − 1 ) 2 + ( 1 ) 2 + ( 2 ) 2 + ( 4 ) 2 + ( 5 ) 2 − ( 2.2 ) 2 = 4.56 S x y = 5 ( − 1 ) ( − 1 ) + ( 0 ) ( 1 ) + ( 1 ) ( 2 ) + ( 2 ) ( 4 ) + ( 3 ) ( 5 ) − ( 1 ) ( 2.2 ) = 3 A = 2 3 = 1.5 B = 2.2 − 1.5 ( 1 ) = 0.7 Y = 0.7 + 1.5 X
(b) compute the standard error and the t-statistics for the coefficient of determination of X X X
**Solution**
r = S x y S x x S y y r = \frac {S _ {x y}}{\sqrt {S _ {x x} \sqrt {S _ {y y}}}} r = S xx S yy S x y
the coefficient of determination of X X X
r 2 = ( S x y ) 2 S x x S y y r ^ {2} = \frac {\left(S _ {x y}\right) ^ {2}}{S _ {x x} S _ {y y}} r 2 = S xx S yy ( S x y ) 2 r 2 = ( 3 ) 2 2 ( 4.56 ) = 0.986842105 r ^ {2} = \frac {(3) ^ {2}}{2 (4 . 5 6)} = 0. 9 8 6 8 4 2 1 0 5 r 2 = 2 ( 4.56 ) ( 3 ) 2 = 0.986842105 r = 0.993399267 r = 0.993399267 r = 0.993399267
S S T = ∑ i ( y i − y ˉ ) 2 = 22.8 S S T = \sum_ {i} (y _ {i} - \bar {y}) ^ {2} = 2 2. 8 SST = i ∑ ( y i − y ˉ ) 2 = 22.8 S S R = ∑ i ( y ^ i − y ˉ ) 2 = 22.5 S S R = \sum_ {i} (\hat {y} _ {i} - \bar {y}) ^ {2} = 2 2. 5 SSR = i ∑ ( y ^ i − y ˉ ) 2 = 22.5 r 2 = S S R S S T = 22.5 22.8 ≈ 0.986842105 r ^ {2} = \frac {S S R}{S S T} = \frac {2 2 . 5}{2 2 . 8} \approx 0. 9 8 6 8 4 2 1 0 5 r 2 = SST SSR = 22.8 22.5 ≈ 0.986842105 S E E = ∑ ( y ^ − y ) 2 n − 2 S E E = \sqrt {\frac {\sum (\hat {y} - y) ^ {2}}{n - 2}} SEE = n − 2 ∑ ( y ^ − y ) 2 S E E = 0.04 + 0.09 + 0.04 + 0.09 + 0.04 5 − 2 = 0.1 ≈ 0.316227766 S E E = \sqrt {\frac {0 . 0 4 + 0 . 0 9 + 0 . 0 4 + 0 . 0 9 + 0 . 0 4}{5 - 2}} = \sqrt {0 . 1} \approx 0. 3 1 6 2 2 7 7 6 6 SEE = 5 − 2 0.04 + 0.09 + 0.04 + 0.09 + 0.04 = 0.1 ≈ 0.316227766
Standard error of slope
S E A = S E E ∑ ( x − x ˉ ) 2 S E _ {A} = \frac {S E E}{\sqrt {\sum (x - \bar {x}) ^ {2}}} S E A = ∑ ( x − x ˉ ) 2 SEE S E A = 0.1 ( − 1 − 1 ) 2 + ( 0 − 1 ) 2 + ( 1 − 1 ) 2 + ( 2 − 1 ) 2 + ( 3 − 1 ) 2 = 0.1 S E _ {A} = \frac {\sqrt {0 . 1}}{\sqrt {(- 1 - 1) ^ {2} + (0 - 1) ^ {2} + (1 - 1) ^ {2} + (2 - 1) ^ {2} + (3 - 1) ^ {2}}} = 0. 1 S E A = ( − 1 − 1 ) 2 + ( 0 − 1 ) 2 + ( 1 − 1 ) 2 + ( 2 − 1 ) 2 + ( 3 − 1 ) 2 0.1 = 0.1
The test for the significance of regression for the data in the table
The test is carried out using the t − t - t − test on the coefficient A A A
H 0 : A = 0 H _ {0}: A = 0 H 0 : A = 0 H 1 : A ≠ 0 H _ {1}: A \neq 0 H 1 : A = 0
The test statistic can be calculated using the following equation:
Test Statistic: t 0 = A − 0 S E A = 1.5 0.1 = 15 \text{Test Statistic: } t_0 = \frac{A - 0}{SE_A} = \frac{1.5}{0.1} = 15 Test Statistic: t 0 = S E A A − 0 = 0.1 1.5 = 15
This statistic based on the t t t distribution with 3 (n − 2 = 5 − 2 = 3 n - 2 = 5 - 2 = 3 n − 2 = 5 − 2 = 3 ) degrees of freedom can be obtained as follows:
α = 0.01 \alpha = 0.01 α = 0.01 α / 2 = 0.005 \alpha/2 = 0.005 α /2 = 0.005 d f = n − 2 = 5 − 2 = 3 df = n - 2 = 5 - 2 = 3 df = n − 2 = 5 − 2 = 3 Critical value: = 5.841 \text{Critical value: } = 5.841 Critical value: = 5.841
Statistical conclusion:
Reject H 0 H_0 H 0 , there is evidence that A A A is not equal to zero and that a significant relationship exists between y y y and x x x .
The coefficient of non-determination was used in the t t t -test to see if there was significant linear correlation.
The standard error of the estimate is the square root of the coefficient of non-determination divided by its degrees of freedom.
s e = 1 − r 2 n − 2 s_e = \sqrt{\frac{1 - r^2}{n - 2}} s e = n − 2 1 − r 2 s e = 1 − 0.986842105 5 − 2 ≈ 0.066226618 s_e = \sqrt{\frac{1 - 0.986842105}{5 - 2}} \approx 0.066226618 s e = 5 − 2 1 − 0.986842105 ≈ 0.066226618
The test is carried out using the t t t -test on the coefficient 1 − r 2 1 - r^2 1 − r 2 .
H 0 : 1 − r 2 = 1 H_0: 1 - r^2 = 1 H 0 : 1 − r 2 = 1 H 1 : 1 − r 2 < 0 H_1: 1 - r^2 < 0 H 1 : 1 − r 2 < 0
The test statistic can be calculated using the following equation:
Test Statistic: t 0 = ( 1 − r 2 ) − 1 s e = − 0.986842105 0.066226618 ≈ − 14.90098898 \text{Test Statistic: } t_0 = \frac{(1 - r^2) - 1}{s_e} = \frac{-0.986842105}{0.066226618} \approx -14.90098898 Test Statistic: t 0 = s e ( 1 − r 2 ) − 1 = 0.066226618 − 0.986842105 ≈ − 14.90098898
This statistic based on the t t t distribution with 3 (n − 2 = 5 − 2 = 3 n - 2 = 5 - 2 = 3 n − 2 = 5 − 2 = 3 ) degrees of freedom can be obtained as follows:
α = 0.01 \alpha = 0.01 α = 0.01 d f = n − 2 = 5 − 2 = 3 df = n - 2 = 5 - 2 = 3 df = n − 2 = 5 − 2 = 3 Critical value: = 4.54070 \text{Critical value: } = 4.54070 Critical value: = 4.54070
Statistical conclusion:
Reject H 0 H_0 H 0 , there is evidence that ( 1 − r 2 ) (1 - r^2) ( 1 − r 2 ) is not equal to 1 and that a significant relationship exists between y y y and x x x .
Answer provided by https://www.AssignmentExpert.com