Question: Using R Studio, show code and answer the following questions by using the build-in dataset cars: a. For the variable dist in data cars, draw

Using R Studio, show code and answer the following questions by using the build-in dataset cars:

a. For the variable dist in data cars, draw a histogram and summarize its distribution pattern in terms of modality, symmetry/skewness, center, spread, etc.What do you learn from the histogram?

b. For the variable dist in data cars, use proper R functions to get the mean, the median, the sample variance, the sample standard deviation, the Q1, the Q3, inter-quartile range (IQR), and the 66th percentile of the variable dist. Based on these descriptive statistics, what do you learn about the distances taken to stop?

c. Draw a boxplot for variable dist in data cars. What can you see based on the boxplot? Are there any outliers in the variable dist? What are the pros and cons regarding histogram vs. boxplotfor summarizing data?

d. Based on the comparison between the sample mean and median of dist, is the distribution of dist skewed? If so, is it left-skewed or right-skewed? Why?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!