Student Name: Zainab Kashani Student ID: 63075: Date of Submission: Sep 16, 2020
Student Name: Zainab Kashani Student ID: 63075: Date of Submission: Sep 16, 2020
Student ID : 63075
Solution: It has a positive relationship between x axis and y axis because when
the x-axis increases the Y-axis also increases positively
0.2033−0
For the t approach=T 1= =2.089
0.0976
0.6560−0
For the t approach=T 2= =3.346
0.9161
Df =N−K
Df =19−2=17
According to the T table at 17 with it’s two tail so at 0.05 significant CV at 17 will be
+2.110 and -2.110
The T1 value lies 2.089 as it is laying intside the CV so we accept the null.
The T2 value lies 3.346 as it is laying outside the CV so we reject the null.
0.0358 1−0.0544
R 2= =
0.0902 0.0902
0.9456
R2=0.397=
0.0902
R2=0.397=10.49
R2=0.0398
R2=0.397=10.49
d. Test the null hypothesis H0: B2=1 using the t-test at the 1% level of significance.
Solution:
Cofficient Estimated−HO
For the t approach=T 1=
Standard error
0.6560−1
T 1=
0.1961
−0.344
T 1=
0.1961
T 1=−1.754
Df =N−K
Df =19−2=17
+2.567
The T1 value lies -1.756 as it is laying outside the CV so we reject the HO
2. Table 5.5 gives data on the average public teacher pay (annual salary in dollars) and
spending on public schools per pupil (dollars) for several states in the US.
a. Prepare a scatter plot with salary on the Y axis and spending on the X axis. Also
fit a regression line through the scatter plot.
40000
35000
30000
25000
20000
. p wc or sa la ry s pe nd in g
sa la ry s pe nd in g
s al ar y 1. 0 0
s pe nd in g 0. 83 47 1 .0 0
Solution
. regress salary spending
f. Use the 95% confidence interval to test the null hypothesis that the slope
coefficient is equal to zero.
Solution :We reject the null hypothesis because the p value less than 0.05 at the 5%
level of significant.
g. Use the 99% confidence interval to test the null hypothesis that the slope
coefficient is equal to one.
Solution: We reject the null hypothesis as the p value is less than 0.01.
( 1) spending = 1
y x2 x3 x4 x5
y 1.0000
x2 0.1352 1.0000
x3 -0.4266 -0.3054 1.0000
x4 -0.5574 0.1820 0.8271 1.0000
x5 -0.5299 0.1609 0.8481 0.9906 1.0000
. regress y x2 x3 x4 x5
We accept the null hypothesis because it p value is greater than 0.05. We use
normally test because this is assumption and in this residuals must be distributed
normally so that it can make the assumption valid.