Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Figure 1 Panel (a) 3 . 2 - average_price conventional organic type Panel (b) conventional organic 1500 type 1000 - count 500 - conventional 0
Figure 1 Panel (a) 3 . 2 - average_price conventional organic type Panel (b) conventional organic 1500 type 1000 - count 500 - conventional 0 - organic N - 3 2 w - average_price Panel (c) conventional organic 400 - type 300 - count 200 - conventional 100 - 0 - organic N- W - N 3 average_price Average avocado prices by typel IVIIO b. [15 marks] Figure 1 shows three different panels examining the relationship between average price and type of avocado. i. [5 marks] Compare the distributions of the average prices for the conventional and organic avocados. In particular, compare their central locations, spreads and skew to conclude whether there is evidence in this data that the average prices of organic avocados is different from those of conventional avocados. ii. [5 marks] The lines in the center of the boxes in Panel (a) indicate the value of a summary statistic of the daily outlet average prices for each of the two types of avocado in the dataset. Write a function that will use the data_avocado object to compute these two values and return them in a tibble with one column for the type and the other with the summary statistic. iii. [5 marks] Explain what was changed or added to the code to yield the different figures for (b) and panel (c). In particular, explain why the bars look different in the two plots and why the yaxis scales of the figures are different
Step 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