Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use R Studio for this and provide the code for Question 1 Any other coding language will not be accepted or supported Thank you
Please use R Studio for this and provide the code for Question 1
Any other coding language will not be accepted or supported
Thank you
Assignment Overview - For this lab, we're going to explore distributions and the variability of a sample statistic through simulation! - To do this, we will explore the diamonds dataset saved in the ggplot2 package. This dataset has over 59,000 diamonds catalogued, and we will treat this dataset like it's a population. - Let's see how much variation we see from sample to sample and how reliable our sample statistics are in different situations! Step 0 - Pre-lab work - Complete the pre-lab tutorials for Lab 3 first: https://stat212-learnr.stat.illinois.edu/ - Open RStudio (or RStudio Cloud) to get started and open a new script. - We will be using the diamonds dataset stored in the tidyverse package. So start by running library (tidyverse) - Open the diamonds data by running the code: View (diamonds). Each row represents one diamond from a collection of over 59,000 . - Take a look at the documentation for diamonds by running the code: ?diamonds Question 1 (5pts): Create a histogram of the price variable (For all histograms in this assignment, use the base R function hist). Also calculate the mean and standard deviation of this variable. Include the image of your histogram in your report (you may either save it to your computer and upload it, or include a properly cropped screenshot). Include the mean and standard deviation values Briefly describe the shape of this variable. Is this a symmetric distribution or would you say it's skewedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started