Link for dataset to be downloaded is in comments.
View the step-by-step solution to:

Question

Dear all,


Please help to generate the RStudio codes as per requirements below in order to have

below results :


Link for dataset to be downloaded is in comments.


·        A histogram of fats and calories is drawn to know the nutritional fact available inside a serving.


·        With the aid of the histogram, the mean mode and median can be found where we will know which serving has the most fats.


·        Then a box plot shall be plotted with the values obtained above.


·        With the calculated data, the variance and the standard deviation can be obtained.


·        A graph of calories v/s fats will be plotted.


·        Then the covariance and correlation will be easy to find by the graph plotted above.


·        A hypothesis test will be carried out to test at the 5% significance level whether the total fat for breakfast is more than in chicken than in fish.


Please find below sample dataset being used :


Excel :


Dataset (1).JPG



R Studio :


Dataset.JPG




Many thanks and Happy New Year 2020 !!!

Dataset (1).JPG

Dataset.JPG

Top Answer

A histogram of fats and calories is drawn to know the nutritional fact available inside a serving. Use:... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question