Question

Code using R or Python PLEASE ANSWER e-h the rest have been answered. We observe from...

Code using R or Python PLEASE ANSWER e-h the rest have been answered.

We observe from our campus the temperature and count the number of squirrels. Our observations are

T = [52, 52, 50, 54, 50, 52, 54, 80, 80]

Sq = [8, 10, 6, 9, 6, 12, 12, 1, 0]

a) What is the covariance of these vectors? (1point)

-39.1358

b) What is the covariance matrix? (1point)

15.254 -4.348

-4348 1.863

c) What is the correlation coefficient? (1point)

-.8158

d) Find the coefficient of determination? (1point)

.6654

e) Can you make any statement or conclusion given these numbers as to the relationship of these paired observations? (1point)

f) If we try to fit a straight line model to these variables; What is the best choice 1 for the dependent and independent variable and why? What is the slope β1 ? What is the intercept value β0 ? (show your working) (4points)

g) Which aspect of the data is not being captured and does this affect the methodology of the straight line model used? (2points)

h) What is a good measure to assess the quality of the straight line fitted above? Use this measure. (1point)

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Code using R or Python PLEASE ANSWER e-h the rest have been answered. We observe from...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT