Would it be reasonable to use the least-squares regression line to predict the final grade for a student who has missed 15 classes? Why or why not?
Would it be reasonable to use the least-squares regression line to predict the final grade for a student who has missed 15 classes? Why or why not?
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
100%

Transcribed Image Text:4. Would it be reasonable to use the least-squares regression line to predict the final grade for a student
who has missed 15 classes? Why or why not?
![absences<-c(0,1,2,3,4,5,6,7,8,9)
grade<-c(89.2,86.4,83.5,81.1,78.2,73.9,64.3,71.8,65.5,66.2)
xyplot(absences-grade,
xlab="Absences",
ylab="Final Grade",
type=c("p","r"))
Final Grade
8
2
0
65
70
75
0
Absences
80
cor(absences,grade)
## [1] -0.947395
pricemodel<-lm(grade~absences)
msummary(pricemodel)
85
90
##
Estimate Std. Error t value Pr(>|t|)
## (Intercept) 88.7327
1.8028 49.219 3.21e-11 ***
## absences -2.8273 0.3377 -8.372 3.14e-05 ***
##
## Residual standard error: 3.067 on 8 degrees of freedom
## Multiple R-squared: 0.8976, Adjusted R-squared: 0.8848
## F-statistic: 70.09 on 1 and 8 DF, p-value: 3.143e-05](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F35038f16-94a1-4399-bb46-35e628254d59%2Ff7325639-cb62-463b-9344-d5f2f52a2f86%2Fd4mg0j_processed.jpeg&w=3840&q=75)
Transcribed Image Text:absences<-c(0,1,2,3,4,5,6,7,8,9)
grade<-c(89.2,86.4,83.5,81.1,78.2,73.9,64.3,71.8,65.5,66.2)
xyplot(absences-grade,
xlab="Absences",
ylab="Final Grade",
type=c("p","r"))
Final Grade
8
2
0
65
70
75
0
Absences
80
cor(absences,grade)
## [1] -0.947395
pricemodel<-lm(grade~absences)
msummary(pricemodel)
85
90
##
Estimate Std. Error t value Pr(>|t|)
## (Intercept) 88.7327
1.8028 49.219 3.21e-11 ***
## absences -2.8273 0.3377 -8.372 3.14e-05 ***
##
## Residual standard error: 3.067 on 8 degrees of freedom
## Multiple R-squared: 0.8976, Adjusted R-squared: 0.8848
## F-statistic: 70.09 on 1 and 8 DF, p-value: 3.143e-05
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning

Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning

Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON

The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman

Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman