Question

In: Statistics and Probability

The data for a college bookstore for 12 semesters is below (X= number of students registered...

The data for a college bookstore for 12 semesters is below (X= number of students registered in a course, Y= number of books sold for that course):

X: 36,28,35,39,30,30,31,38,36,38,29,26

Y: 31,29,34,35,29,30,30,38,34,33,29,26

Answer the following questions BY HAND

a) Calculate the least squares regression line for these data.

b) Calculate and explain R^2. Calculate adjusted R^2.

c) Under the simple linear regression model assumptions, what is the unbiased estimator of variance?

d) Calculate the 95% confidence intervals of beta and alpha.

e) Conduct a hypothesis test to verify the number of students registered is a significant predictor for the number of books actually sold for a course at 0.05 significance level.

f) Find the 90% confidence interval for µY |x when x=31, and the prediction interval for a new observation of Y when x=31. Which interval is wider?

Solutions

Expert Solution

X Y X^2 Y^2 XY
36 31 1296 961 1116
28 29 784 841 812
35 34 1225 1156 1190
39 35 1521 1225 1365
30 29 900 841 870
30 30 900 900 900
31 30 961 900 930
38 38 1444 1444 1444
36 34 1296 1156 1224
38 33 1444 1089 1254
29 29 841 841 841
26 26 676 676 676
0 0 0
0 0 0
SUM 396 378 13288 12030 12622
n 12 df1 1 k-1
Mean 33 31.5 df2 10 n-k
SSxx 220 Sum(x^2) - ((Sum(x))^2 /n) SSR 99.56364 slope * Ssxy MSR 99.56364 SSR/df1
Ssyy 123 Sum(y^2) - ((Sum(y))^2 /n) SSE 23.43636 SST-SSR MSE 2.343636 SSE/df2
Ssxy 148 Sum(xy) - (Sum(x)*Sum(y)/n) SST 123 Ssyy F 42.48254 MSR/MSE
slope 0.672727 Ssxy/SSxx
intercept 9.3 Mean Y - Mean X * Slope
Se 1.530894 SQRT(SSE/(n-2))
Sb1 0.103213 Se/SQRT(SSxx)
Sb0 3.4346 Se*SQRT(1/n+(Xbar/SSxx))
r 0.8997 Ssxy/SQRT(SSxx*Ssyy)
r^2 0.80946

a)

the least squares regression line for these data

Y = 9.3+0.6727*X

b)

R^2 = 0.8095

80.95% of variation in Y variable is explained by X variable(or regression)

Adj R^2 = 1-[(1-R^2)(N-1)/(n-k)] = 0.7904

If adjusted R^2 nearer to 1 which means regression fits the data

c)

Variance σ^2 = MSE = 2.3436

Variance of β1 = VAR(β1) = σ^2/SSxx = 2.3436/220 = 0.0106 it is nearer to 0

d)

95% CI

Vaiables Lower 95% Upper 95%
Intercept 1.647290781 16.95270922
X 0.44275471 0.902699836

95% CI Intercept = (β0 +/- tc * Sb0)

95% C X = (β1 +/- tc * Sb1)

e)

Hypothesis:

H0: β1 = 0

Ha: β1 not = 0

Test:

t stat = b1/Sb1 = 6.5179

P value = 0 < 0.05

the number of students registered is a significant predictor for the number of books actually sold for a course at 0.05 significance level

f)

If x=31

Y = 9.3+0.6727*X = 9.3+0.6727*31 = 30.1545

df = n-k = 10

alpha = 0.1

tc​=1.813 (Use t table)


Related Solutions

Statistics students in Oxnard College sampled 9 textbooks in the Condor bookstore and recorded the number...
Statistics students in Oxnard College sampled 9 textbooks in the Condor bookstore and recorded the number of pages in each textbook and its cost. The bivariate data are shown below: Number of Pages (xx) Cost(yy) 470 65.4 980 135.6 300 53 888 117.56 982 128.84 762 110.44 267 41.04 571 88.52 640 91.8 A student calculates a linear model yy =  xx + . (Please show your answers to two decimal places) Use the model to estimate the cost when number...
Statistics students in Oxnard College sampled 10 textbooks in the Condor bookstore, and recorded number of...
Statistics students in Oxnard College sampled 10 textbooks in the Condor bookstore, and recorded number of pages in each textbook and its cost. The bivariate data is shown below, Number of Pages (xx) Cost(yy) 526 52.08 625 59 589 56.12 409 25.72 489 34.12 500 53 906 78.48 251 26.08 595 50.6 719 68.52 A student calculates a linear model yy =  xx + . (Please show your answers to two decimal places) Use the model above to estimate the cost...
Statistics students in Oxnard College sampled 11 textbooks in the Condor bookstore and recorded the number...
Statistics students in Oxnard College sampled 11 textbooks in the Condor bookstore and recorded the number of pages in each textbook and its cost. The bivariate data are shown below: Number of Pages (xx) Cost(yy) 446 60.9 909 134.35 430 67.5 628 93.2 475 67.25 504 69.6 875 140.25 296 41.4 214 45.1 884 135.6 655 106.25 A student calculates a linear model y =  x ___ + ____. (Please show your answers to two decimal places) Use the model to...
Statistics students in Oxnard College sampled 11 textbooks in the Condor bookstore and recorded the number...
Statistics students in Oxnard College sampled 11 textbooks in the Condor bookstore and recorded the number of pages in each textbook and its cost. The bivariate data are shown below: Number of Pages (xx) Cost(yy) 761 66.27 855 57.85 681 60.67 658 42.06 218 24.26 587 44.09 973 72.11 925 68.75 672 45.04 426 28.82 243 28.01 A student calculates a linear model yy =  xx + . (Please show your answers to two decimal places) Use the model to estimate...
22 Statistics students in Oxnard College sampled 11 textbooks in the Condor bookstore, and recorded number...
22 Statistics students in Oxnard College sampled 11 textbooks in the Condor bookstore, and recorded number of pages in each textbook and its cost. The bivariate data is shown below, Number of Pages (xx) Cost(yy) 513 65.43 323 34.53 751 87.61 619 70.09 671 80.81 914 101.54 310 44.1 321 51.31 243 45.73 496 63.56 528 59.08 A student calculates a linear model yy =  xx + . (Please show your answers to two decimal places) Use the model above to...
The data below shows the number of registered guns, per one-hundred residents, and the raw number...
The data below shows the number of registered guns, per one-hundred residents, and the raw number of gun "accidents" for several major cities in the United States, over a one year period. Registered gun owners (per 100) 10 120 96 42 56 87 56 84 110 36 Number of gun accidents 25 250 285 126 110 216 165 210 280 75 a) Write the equation of the regression line for these values. b) How many gun accidents would you predict...
The college bookstore tells prospective students that the average cost of its textbooks is $52 with...
The college bookstore tells prospective students that the average cost of its textbooks is $52 with a σ of $4.50. A group of smart statistics students think that the average cost is much higher. In order to test the bookstore’s claim against their alternative, the students select a random sample of size 100. Assume that the mean from their random sample is $52.80. Use alpha value of 0.05 level to test the hypothesis.
The college bookstore tells prospective students that the average cost of its textbooks is $52 with...
The college bookstore tells prospective students that the average cost of its textbooks is $52 with a standard deviation of $4.50. A group of smart statistics students thinks that the average cost is higher. In order to test the bookstore’s claim against their alternative, the students will select a random sample of size 100. Assume that the mean from their random sample is $52.80. Test at 10% significance level. --> Perform a hypothesis test and state your decision.
An online bookstore predicts that the percentage of college students buying anthropology books online is not...
An online bookstore predicts that the percentage of college students buying anthropology books online is not equal to 45 %, on average. Several of the bookstore’s client universities would like to know if this is likely, so the online bookstore decides to do a hypothesis test at a 10% significance level. Data is collected from 11 universities providing the following information: H0: μ=45; Ha: μ≠45 x¯=51 σ=4 α=0.1 (significance level) The test statistic is z0=x¯−μ0σn√=51−45411√=4.97 The critical values are −z0.05=−1.64...
The college bookstore tells prospective students that the average cost of its textbooks is $108 with...
The college bookstore tells prospective students that the average cost of its textbooks is $108 with a standard deviation of $4.50. A group of smart statistics students thinks that the average cost is higher. In order to test the bookstore’s claim against their alternative, the students will select a random sample of size 100. Assume that the mean from their random sample is $112.80. Perform a hypothesis test (using R) at the 5% level of significance and state your decision....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT