(20 pts) Below are the results of a linear regression model which is built on the Tips.csv data. Use the results to answer the following questions. > tipsmodel <- lm(formula > summary(tipsmodel) Call: lm(formula Residuals: = tip ~ = tip total bill + size + smoker, data = D0) ~ total bill + size + smoker, data = DO) 1Q Median 3Q Max 4.0573 Min -2.8965 -0.5601 -0.0722 0.5030 Coefficients: Estimate Std. Error t value Pr(>Itl) total_bill size 0.093942 0.187122 (Intercept) 0.687335 0.207385 3.314 smoker Yes -0.079215 0.009385 10.010 0.088742 2.109 0.139256 -0.569 0.57000 0.00106 ** < 2e-16 *** 0.03603 * Signif. codes: 0 ***** 0.001 *** 0.01 *** 0.05' 0.1 '1 Residual standard error: 1.019 on 237 degrees of freedom (3 observations deleted due to missingness) Multiple R-squared: 0.4713, Adjusted R-squared: 0.4646 F-statistic: 70.41 on 3 and 237 DF, p-value: < 2.2e-16 a) What is the linear regression equation obtained from R? b) What is the relationship between “tip” and “total_bill” in the linear regression model? c) What percent of the change in the dependent variable can be explained by the predictors? d) What is the RMSE, R² and adjusted R² in this model?
(20 pts) Below are the results of a linear regression model which is built on the Tips.csv data. Use the results to answer the following questions. > tipsmodel <- lm(formula > summary(tipsmodel) Call: lm(formula Residuals: = tip ~ = tip total bill + size + smoker, data = D0) ~ total bill + size + smoker, data = DO) 1Q Median 3Q Max 4.0573 Min -2.8965 -0.5601 -0.0722 0.5030 Coefficients: Estimate Std. Error t value Pr(>Itl) total_bill size 0.093942 0.187122 (Intercept) 0.687335 0.207385 3.314 smoker Yes -0.079215 0.009385 10.010 0.088742 2.109 0.139256 -0.569 0.57000 0.00106 ** < 2e-16 *** 0.03603 * Signif. codes: 0 ***** 0.001 *** 0.01 *** 0.05' 0.1 '1 Residual standard error: 1.019 on 237 degrees of freedom (3 observations deleted due to missingness) Multiple R-squared: 0.4713, Adjusted R-squared: 0.4646 F-statistic: 70.41 on 3 and 237 DF, p-value: < 2.2e-16 a) What is the linear regression equation obtained from R? b) What is the relationship between “tip” and “total_bill” in the linear regression model? c) What percent of the change in the dependent variable can be explained by the predictors? d) What is the RMSE, R² and adjusted R² in this model?
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

Transcribed Image Text:(20 pts) Below are the results of a linear regression model which is built on the Tips.csv data.
Use the results to answer the following questions.
> tipsmodel <- lm(formula
> summary(tipsmodel)
Call:
lm(formula
Residuals:
=
tip
~
=
tip total bill + size + smoker, data = D0)
~
total bill + size + smoker, data = DO)
1Q Median
3Q
Max
4.0573
Min
-2.8965 -0.5601 -0.0722 0.5030
Coefficients:
Estimate Std. Error t value Pr(>Itl)
total_bill
size
0.093942
0.187122
(Intercept) 0.687335 0.207385 3.314
smoker Yes -0.079215
0.009385 10.010
0.088742 2.109
0.139256 -0.569 0.57000
0.00106 **
< 2e-16 ***
0.03603 *
Signif. codes:
0 ***** 0.001 *** 0.01 *** 0.05' 0.1 '1
Residual standard error: 1.019 on 237 degrees of freedom
(3 observations deleted due to missingness)
Multiple R-squared: 0.4713, Adjusted R-squared: 0.4646
F-statistic: 70.41 on 3 and 237 DF, p-value: < 2.2e-16
a) What is the linear regression equation obtained from R?
b) What is the relationship between “tip” and “total_bill” in the linear regression model?
c) What percent of the change in the dependent variable can be explained by the predictors?
d) What is the RMSE, R² and adjusted R² in this model?
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