100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
MGT 6203 MIDTERM - SOLUTION KEY - PART 2 $11.49   Add to cart

Exam (elaborations)

MGT 6203 MIDTERM - SOLUTION KEY - PART 2

1 review
 733 views  8 purchases
  • Course
  • Institution

MIDTERM – SOLUTION KEY CODING QNS Q21) Please estimate a linear regression model (using the lm function) with Personal as the dependent variable and Room.Board as the 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...

[Show more]

Preview 2 out of 15  pages

  • June 21, 2021
  • 15
  • 2020/2021
  • Exam (elaborations)
  • Questions & answers

1  review

review-writer-avatar

By: gregcarmel • 3 year ago

reply-writer-avatar

By: Examhack • 3 year ago

why the one star though, that's a bit unfair....I will appreciate your feedback

avatar-seller
MIDTERM – SOLUTION KEY
CODING QNS

Q21) Please estimate a linear regression model (using the lm function) with Personal as the
dependent variable and Room.Board as the independent variable. What are the model’s R-
squared 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)))

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Examhack. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $11.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

81989 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$11.49  8x  sold
  • (1)
  Add to cart