Coursera R Lab - Correlation and Regression Answers
Coursera R Lab - Correlation and Regression Answers
Here are the answers of the R lab - Correlation and Regression of second
week basic statistics coursera's online course you simply copy the r code from
there and paste it and get 100 % results.
Scatterplots
# Plot height and weight of the "women" dataset. Make the title "Heights and
Weights"
plot(women$weight, women$height, main = "Heights and Weights")
Making a Contingency Table
# Make a contingency table of tobacco consumption and education
table(smoking$tobacco, smoking$student)
Calculating Percentage From Your Contingency Table
# What percentage of high school students smoke 0-9g of tobacco?
38.6
# Of the students who smoke the most, what percentage are in university?
57.7
Interpreting Your Scatterplot
This is the graph you created of heighs and weights. Based on your graph,
what can you say about the relationship between height and weight?
Possible Answers