Question

Problem 6 [Avec R] Download the heightweight.csv dataset from CANVAS. This contains 25000 entries of height and weight from some sample of the population after a survey. (a). Draw a histogram for both height and weight using R (b). Draw a smoothed histogram for both height and weight using R. The function density will help (c). Draw a scatter plot for height and weight. (d). Say your friend Bill was frustrated with his short stature and would like to grow taller. Would gaining weight be a good way to achieve that goal based on this data (and logic!)?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

As data set was not avaiable but can use following code to solve this problem"

R coding

read.csv(file = 'data/heightweight.csv', header = FALSE)

hist(height)
hist(weight)
scatter.smooth(height,weight)

conclusion: if scatter plot have positive slope in upward direction, this implies there s positive relation between height and weight, which means increase in weight implies increase in height from given data.

Add a comment
Know the answer?
Add Answer to:
Problem 6 [Avec R] Download the 'heightweight.csv' dataset from CANVAS. This contains 25000 entries of height...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT