MGT 6203 MIDTERM – SOLUTION KEY PART 2 CODING QUESTIONS WITH ANSWERS.) Please estimate a linear regression model (using the lm function) with Personal as the dependent variable and Room.Board as th... e independent variable. What are the model’s Rsquared and adjusted R-squared values? a) 0.00549, 0.048 b) 0.0143, 0.022 c) 0.0398, 0.0385 d) 0.0325, 0.0336 Answer: C (Week 1 Lesson 4) library("ISLR") data("College") summary(lm(College$Personal~College$Room.Board)) ## ## Call: ## lm(formula = College$Personal ~ College$Room.Board) ## ## Residuals: ## Min 1Q Median 3Q Max ## -1153.1 -444.6 -92.3 316.0 5505.2 ## ## Coefficients: ## Estimate Std. Error t value Pr(>|t|) ## (Intercept) 1877.14827 97.64374 19.224 < 2e-16 *** ## College$Room.Board -0.12312 0.02173 -5.666 2.06e-08 *** ## --- ## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 ## ## Residual standard error: 663.9 on 775 degrees of freedom ## Multiple R-squared: 0.03977, Adjusted R-squared: 0.03853 ## F-statistic: 32.1 on 1 and 775 DF, p-value: 2.065e-08 Q22)Based on the linear-linear regression model in the previous question (with Personal as the dependent variable and Room.Board as the independent variable), fit three nonlinear models using those two variables. Based on their adjusted R-squared values, which one of the four models is most appropriate to use? a) Log-Linear b) Log-Log c) Linear-Linear d) Linear-Log Answer: B (Week 3 lesson 4) summary(lm(log(College$Personal)~College$Room.Board)) ## Call: ## lm(formula = log(College$Personal) ~ College$Room.Board) ## ## Residuals: ## Min 1Q Median 3Q Max ## -1.61024 -0.31235 0.03383 0.31037 1.77383 ## ## Coefficients: ## Estimate Std. Error t value Pr(>|t|) ## (Intercept) 7.485e+00 6.992e-02 107.057 < 2e-16 *** ## College$Room.Board -9.187e-05 1.556e-05 -5.904 5.3e-09 *** ## --- ## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 ## ## Residual standard error: 0.4754 on 775 degrees of freedom ## Multiple R-squared: 0.04304, Adjusted R-squared: 0.04181 ## F-statistic: 34.86 on 1 and 775 DF, p-value: 5.303e-09 summary(lm(log(College$Personal)~log(College$Room.Board))) ## ## Call: ## lm(formula = log(College$Personal) ~ log(College$Room.Board)) ## ## Residuals: ## Min 1Q Median 3Q Max ## -1.60098 -0.31047 0.03916 0.30663 1.78574 ## ## Coefficients: ## Estimate Std. Error t value Pr(>|t|) ## (Intercept) 10.47164 0.56140 18.653 < 2e-16 *** ## log(College$Room.Board) -0.40568 0.06722 -6.035 2.46e-09 *** ## --- ## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 ## ## Residual standard error: 0.4749 on 775 degrees of freedom ## Multiple R-squared: 0.04489, Adjusted R-squared: 0.04366 ## F-statistic: 36.42 on 1 and 775 DF, p-value: 2.46e-09 summary(lm(College$Personal~College$Room.Board)) ## ## Call: ## lm(formula = College$Personal ~ College$Room.Board) ## ## Residuals: ## Min 1Q Median 3Q Max ## -1153.1 -444.6 -92.3 316.0 5505.2 ## [Show More]
Last updated: 1 year ago
Preview 1 out of 15 pages
Business> EXAM > Consumer Behavior Ch. 1-4 Flashcards Questions and Answers 2023 (All)
Needs - -Necessary to live -Wants - -way a consumer goes about addressing a recognized need -Exchange - -acting out of the decision to give something up in return of greater value -Benefits -...
By Detutor , Uploaded: Mar 31, 2023
$2
Business> EXAM > PCNSA Exam 40 Questions with Verified Answers,100% CORRECT (All)
PCNSA Exam 40 Questions with Verified Answers Default Antivirus Profile protocols - CORRECT ANSWER -smtp -smb -ftp -imap -pop3 -http/2 Antivirus profile actions - CORRECT ANSWER -allow -al...
By securegrades , Uploaded: Sep 01, 2023
$9.5
Business> EXAM > ACAMS Chapter 3: Anti-Money Laundering/Counter Terrorist Financing Compliance Programs,100% CORRECT (All)
ACAMS Chapter 3: Anti-Money Laundering/Counter Terrorist Financing Compliance Programs Pros of Risk Based Approach - CORRECT ANSWER -Flexible: as ML/TF risk vary across jurisdictions, customers,...
By Nolan19 , Uploaded: Oct 10, 2023
$9.5
Business> EXAM > COSC3325-Information Systems In Organizations Quuestions And Correct Answers 2023 100% Guaranteed (All)
COSC3325-Information Systems In Organizations Quuestions And Correct Answers 2023 100% Guaranteed
By BESTGRADE01 , Uploaded: Sep 09, 2023
$8.5
Business> EXAM > The SAFE Mortgage Loan Originator National Exam Study Guide practice exam 2 | 100 Questions | 100% Correct Answers (All)
1. Which of the following is NOT a loan origination activity? - ✔✔C. Assisting in a loan modification 2. A unilateral contract is binding on: - ✔✔A. One party 3. Loan originator organizations must...
By Tessa , Uploaded: Aug 12, 2022
$10
Business> EXAM > Review Test Submission: Week 5 Quiz (All)
When payment of debt is guaranteed by personal property owned by the debtor or in which the debtor has a legal interest, the transaction is known as: In the context of secured transactions, attachme...
By Hilda , Uploaded: Jul 12, 2021
$9
Business> EXAM > SAFe Scrum Master 5.0 Question & Answers Complete top Solution Rated A. (All)
SAFe 5 Scrum Master Why is it important for the Scrum Master to help the team focus on daily and Iteration goals? To keep the Team Backlog to a manageable size To eliminate impediments To help th e te...
By Jameson , Uploaded: Oct 20, 2022
$10.5
Business> EXAM > Product Owner Test Questions And Answers/ Download (All)
Product Owner Test Questions And Answers/ Download
By Axeldee , Uploaded: Feb 09, 2023
$10.5
Business> EXAM > Vulnerability Management Ch 4 – 6 Exam 24 Questions with Verified Answers,100% CORRECT (All)
Vulnerability Management Ch 4 – 6 Exam 24 Questions with Verified Answers D. Quarterly PCI DSS requires that organizations conduct vulnerability scans on at least a quarterly basis, although m...
By Nolan19 , Uploaded: Oct 09, 2023
$8
Business> EXAM > BUSI 352 Final Exam complete with correct Answers liberty University GradeAplus (All)
Question 1 Based on the CAPM, what return should Jordan expect from a security that last year returned 9% with a standard deviation of 12%, a beta of 1.2, when the overall market return has been 10.2%...
By GradeAplus , Uploaded: Feb 26, 2020
$30
Connected school, study & course
About the document
Uploaded On
Aug 24, 2021
Number of pages
15
Written in
This document has been written for:
Uploaded
Aug 24, 2021
Downloads
0
Views
171
Avoid resits and achieve higher grades with the best study guides, textbook notes, and class notes written by your fellow students
Your fellow students know the appropriate material to use to deliver high quality content. With this great service and assistance from fellow students, you can become well prepared and avoid having to resits exams.
Your fellow student knows the best materials to research on and use. This guarantee you the best grades in your examination. Your fellow students use high quality materials, textbooks and notes to ensure high quality
Get paid by selling your notes and study materials to other students. Earn alot of cash and help other students in study by providing them with appropriate and high quality study materials.
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·