Load any R Packages you may need library(mosaic) library(tidyverse) library(moderndive) The house_prices dataset from the moderndive R package contains data on over 21,000 houses from King County, WA. Because the most important piece of information for anyone on the market for a home is the price of the home, we’ll treat price as our outcome (y) variable. 1

Holt Mcdougal Larson Pre-algebra: Student Edition 2012
1st Edition
ISBN:9780547587776
Author:HOLT MCDOUGAL
Publisher:HOLT MCDOUGAL
Chapter11: Data Analysis And Probability
Section11.1: Stem-and-leaf Plots And Histograms
Problem 15E
icon
Related questions
Question

# Load any R Packages you may need
library(mosaic)
library(tidyverse)
library(moderndive)

The house_prices dataset from the moderndive R package contains data on over 21,000 houses from King County, WA. Because the most important piece of information for anyone on the market for a home is the price of the home, we’ll treat price as our outcome (y) variable.

1

Construct a scatterplot of the house price (y) versus the number of bedrooms per house (x). Describe the relationship between these variables (direction, strength, form, unusual features).

# Paste your code here

2

Fit a linear regression model of price (y) as a function of bedrooms (x). Report the regression table, and interpret the estimated coefficient for bedrooms (i.e., the slope of the regression line).

# Paste your code here

3

For a multiple regression model of price (y) as a function of both bedrooms (x1) and sqft_living (x2 - see the help page for the definition of this variable). Report the regression table, and interpret the estimated coefficient for bedrooms.

Expert Solution
steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Recommended textbooks for you
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt