ps55

pdf

School

University of California, Berkeley *

*We aren’t endorsed by this school

Course

20

Subject

Statistics

Date

Feb 20, 2024

Type

pdf

Pages

2

Uploaded by BaronPencilButterfly12

Report
Stat 20 PS: Summarizing Numerical Associations There is a data set built into R called mtcars that includes several measures on different types of cars. Learn more about the data set using ?mtcars . Where applicable, complete the following questions in RStudio and write the code you used below. Question 1 We seek to explain the fuel effciency of cars using their weight per gallon. Summarize the association between the fuel effciency (measured in miles per gallon) and the weight of the car using: Question 1a a scatter plot, Question 1b the correlation coeffcient Question 1c and a linear model. Question 2 Repeat Question 1 but use the horsepower of the car instead of the weight as the explanatory variable. Question 2a a scatter plot, Question 2b the correlation coeffcient
Question c and a linear model. Question 2d Compare the scatter plots of Question 1a and Question 2a . Why does one of them have a higher correlation coeffcient than the other? Answer in a few sentences. Question 3 What is the better way to compare the strength of the linear relationship between these two pairs of variables (mpg and wt; mpg and hp): the correlation coeffcients or the slopes of the linear models? Why? Explain in one-two sentences. Question 4 Which car has the lowest fuel effciency given its weight? State the car and provide supporting code for your answer. Question 5 Visualize the relationship between number of forward gears and the number of cylinders. Address any overplotting that might occur, and title the plot with a claim about the strength of the associ- ation between the two variables. OR Go back to the class_survey dataset and find two numerical discrete variables. Visualize their relationship, addressing any overplotting which may occur, and title the plot with a claim about the strength of the association between the two variables.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help