the following hypothesis are given
H0:p=0
h1:p#0
A random sample of 12 paired observations indicated a correlation of 0.32. Can we
conclude that the correlation in the population is equal to zero? Use 0.05 level of
significance. (3 marks)
the following sample observations were randomly selected
x 4 5 3 6 10
y 4 6 5 7 7
a.
From the data above, the correlation coefficient is and
The hypothesis tested are,
and apply the student's t distribution to make a decision.
The test statistic is given as,
is compared with the table value at with degrees of freedom.
Now, and the null hypothesis is rejected if
Since , we fail to reject the null hypothesis and conclude that there is sufficient evidence to show that the correlation coefficient of in the population is equal to zero at 5% level of significance.
b.
To find the regression equation, we enter the following commands in .
x=c(4,5,3,6,10)
y=c(4,6,5,7,7)
lm(y~x)
The output for these commands is
Call:
lm(formula = y ~ x)
Coefficients:
(Intercept) x
3.767 0.363
This shows that the and the . The regression line is of the form where is the slope and is the y-intercept. Therefore, the regression line equation is,
When x=7, the value of y is obtained by substituting for x in the regression line equation line as follows,
y=(0.363*7)+3.767= 6.308
Therefore, the value of y when x=7 is 6.308.
Comments