Question

In: Statistics and Probability

A student wants to see if the number of times a book has been checked out...

A student wants to see if the number of times a book has been checked out of the library in the past year and the number of pages in the book are related. She guesses that the number of times a book has been checked out of the library in the past year will be a predictor of the number of pages it has. She randomly sampled 10 books from the library, test her claim at a 0.01 level of significance.

number of times checked out number of pages
4 277
31 303
15 242
12 382
25 329
22 263
37 361
43 323
44 278
31 350


The correlation coefficient:

r= ___ (round to 3 decimal places)

The equation y=a+bx is: (round to 3 decimal places)

y=___+__ x

The hypotheses are:

H0:ρ=0H0:ρ=0 (no linear relationship)
HA:ρ≠0HA:ρ≠0 (linear relationship) (claim)

Since αα is 0.01 the critical value is -3.355 and 3.355

The test value is: (round to 3 decimal places)

The p-value is: (round to 3 decimal places)

The decision is to

  • reject H0H0
  • do not reject H0H0

Thus the final conclusion sentence is

  • There is enough evidence to reject the claim that there is a linear relationship.
  • There is not enough evidence to reject the claim that there is a linear relationship.
  • There is enough evidence to support the claim that there is a linear relationship.
  • There is not enough evidence to support the claim that there is a linear relationship.

Solutions

Expert Solution

Solution :-

1). Thr correlation coefficient:

r= 0.182

To find this result run the following code in python.

  times_checked=[4,31,15,12,25,22,37,43,44,31]
pages=[277,303,242,382,329,263,361,323,278,350]

  from scipy.stats import pearsonr

  corr,_= pearsonr(times_checked, pages)

print (corr)

0.18231726381436067

2).  The equation y=a+bx is: (round to 3 decimal places)

y=294.258+ 0.627x

These values that are unerlied are naswer to this question and this we can obtain by running a linear regression. This result for linear regression can be obtained by running following code of python.

from sklearn.linear_model import LinearRegression

times_checked=np.array([4,31,15,12,25,22,37,43,44,31]).reshape(-1,1)
pages=np.array([277,303,242,382,329,263,361,323,278,350])

  model = LinearRegression().fit(times_checked, pages)

  print('intercept:', model.intercept_)
print('slope:', model.coef_)

  intercept: 294.257935516121

slope: [0.62659335]

3).The hupothesis to be tested in this case is as follows;-

Since

Test statistics

4). Now having found the answer for t-value as 0.524, we can find the p-value for this t-value. To find the p-value we need to do the following calculation:-

  

5). Hence the decision is do not  reject H0.

We reach to this decision because p-value is far greater than value of level of signifance i.e. 0.01.

We can also say that we fail to reject null hypothesis because t-statistics because t-statistics falls between the critical-region (-3.355,3.355).

6). Thus the final conclusion sentence is-

There is not enough evidence to support the claim that there is a linear relationship.

This is because we fail to reject Null hypothesis.


Related Solutions

A student wants to see if the number of times a book has been checked out...
A student wants to see if the number of times a book has been checked out of the library in the past year and the number of pages in the book are related. She guesses that the number of times a book has been checked out of the library in the past year will be a predictor of the number of pages it has. She randomly sampled 14 books from the library, test her claim at a 0.10 level of...
A student wants to see if the number of times a book has been checked out...
A student wants to see if the number of times a book has been checked out of the library in the past year and the number of pages in the book are related. She guesses that the number of times a book has been checked out of the library in the past year will be a predictor of the number of pages it has. She randomly sampled 15 books from the library, test her claim at a 0.01 level of...
A student wants to see if the number of times a book has been checked out...
A student wants to see if the number of times a book has been checked out of the library in the past year and the number of pages in the book are related. She guesses that the number of times a book has been checked out of the library in the past year will be a predictor of the number of pages it has. She randomly sampled 15 books from the library, test her claim at a 0.01 level of...
A student wants to see if the number of times a book has been checked out...
A student wants to see if the number of times a book has been checked out of the library in the past year and the number of pages in the book are related. She guesses that the number of times a book has been checked out of the library in the past year will be a predictor of the number of pages it has. She randomly sampled 14 books from the library, test her claim at a 0.05 level of...
A student wants to see if the number of times a book has been checked out...
A student wants to see if the number of times a book has been checked out of the library in the past year and the number of pages in the book are related. She guesses that the number of times a book has been checked out of the library in the past year will be a predictor of the number of pages it has. She randomly sampled 14 books from the library, test her claim at a 0.05 level of...
A student wants to see if the number of times a book has been checked out...
A student wants to see if the number of times a book has been checked out of the library in the past year and the number of pages in the book are related. She guesses that the number of times a book has been checked out of the library in the past year will be a predictor of the number of pages it has. She randomly sampled 13 books from the library, test her claim at a 0.10 level of...
A student wants to see if the weight of a paperback book and the number of...
A student wants to see if the weight of a paperback book and the number of pages in the book are related. She guesses that the weight of the book will be a predictor of the number of pages it has. She randomly sampled 14 books from the library, test her claim at a 0.05 level of significance. weight in ounces number of pages 18 99 12 49 8 102 47 143 20 84 3 54 33 113 9 43...
A student wants to see if the weight of a paperback book and the number of...
A student wants to see if the weight of a paperback book and the number of pages in the book are related. She guesses that the weight of the book will be a predictor of the number of pages it has. She randomly sampled 15 books from the library, test her claim at a 0.05 level of significance. weight in ounces number of pages 41 83 15 102 38 94 7 75 34 128 14 70 26 94 18 90...
An educator wants to see how the number of absences for a student in her class...
An educator wants to see how the number of absences for a student in her class affects the student’s final grade. The data obtained from a sample are shown. No. of absences x 10 12 2 0 8 5 Final grade y 70 65 96 94 75 82 Based on the above data, answer the following questions with the appropriate rounding. Use complete sentences to answer questions. Find r Characterize r Find r2 Interpret r2 Find the least square regression...
graduate student wants to estimate the number of research participants he will see in the fall...
graduate student wants to estimate the number of research participants he will see in the fall semester. Using his data from the previous nine semesters, he tabulates a mean of 140 students per semester, although departmental records reflect a seasonal variation (i.e., population standard deviation) of 45 students. Calculate the 99% confidence interval.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT