100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Data Analytics: A Small Data Approach 1st Edition by Shuai Huang and Deng -All Chapters 1-10 | SOLUTIONS MANUAL $29.18
Add to cart

Exam (elaborations)

Data Analytics: A Small Data Approach 1st Edition by Shuai Huang and Deng -All Chapters 1-10 | SOLUTIONS MANUAL

 0 purchase
  • Course
  • Data Analytics: A Small Data Approach
  • Institution
  • Data Analytics: A Small Data Approach

SOLUTIONS MANUAL for Data Analytics: A Small Data Approach 1st Edition by Shuai Huang and Houtao Deng. ISBN 9504. All Chapters 1-10 (Complete Download). Table of Contents 1. INTRODUCTIO N Who will benefit from this book Overview of a Data Analytics Pipeline Topics in a Nutshell 2. ABSTRACTION Regr...

[Show more]

Preview 4 out of 120  pages

  • February 1, 2023
  • 120
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
book image

Book Title:

Author(s):

  • Edition:
  • ISBN:
  • Edition:
  • Data Analytics: A Small Data Approach
  • Data Analytics: A Small Data Approach
avatar-seller
AcademiContent
,
,Q2: Follow up the data on Q1. Use the R pipeline to build the linear regression model. Compare the
result from R and the result by your manual calculation.

Solution:
data = rbind(c(-0.15, -0.48, 0.46),c(-0.72, -0.54, -0.37),c(1.36, -0.91, -0.2
7),c(0.61, 1.59, 1.35),c(-1.11, 0.34, -0.11))
data = data.frame(data)
names(data)

## [1] "X1" "X2" "X3"

colnames(data) = c("X1","X2","Y")
lm.YX <-lm(Y~X1+X2,data = data)

summary(lm.YX)


2

, ##
## Call:
## lm(formula = Y ~ X1 + X2, data = data)
##
## Residuals:
## 1 2 3 4 5
## 0.5663 -0.1014 -0.2435 0.0566 -0.2780
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 0.2124 0.2170 0.979 0.431
## X1 0.2222 0.2430 0.914 0.457
## X2 0.5946 0.2430 2.447 0.134
##
## Residual standard error: 0.4852 on 2 degrees of freedom
## Multiple R-squared: 0.7682, Adjusted R-squared: 0.5365
## F-statistic: 3.315 on 2 and 2 DF, p-value: 0.2318



Q3: Please read the following output in R.
(1) Write up the fitted regression model.
(2) Identify the significant variables.
(3) What is the R-squared of this model? Does the model fit the data well?
(4) What would you recommend as the next step in data analysis?
##
## Call:
## lm(formula = y ~ ., data = data)
##
## Residuals:
## Min 1Q Median 3Q Max
## -0.239169 -0.065621 0.005689 0.064270 0.310456
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 0.009124 0.010473 0.871 0.386
## x1 1.008084 0.008696 115.926 <2e-16 ***
## x2 0.494473 0.009130 54.159 <2e-16 ***
## x3 0.012988 0.010055 1.292 0.200
## x4 -0.002329 0.009422 -0.247 0.805
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.1011 on 95 degrees of freedom
## Multiple R-squared: 0.9942, Adjusted R-squared: 0.994
## F-statistic: 4079 on 4 and 95 DF, p-value: < 2.2e-16


3

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 AcademiContent. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

69052 documents were sold in the last 30 days

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

Start selling
$29.18
  • (0)
Add to cart
Added