Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed
image text in transcribedimage text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential Discrete Mathematics For Computer Science

Authors: Harry Lewis, Rachel Zax

1st Edition

0691190615, 9780691190617

More Books

Students also viewed these Mathematics questions