Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please complete in R Studio Diamonds are forever. library(tidyverse) data(diamonds) # Use subscripting operations to answer the questions below: (a) What proportion of diamonds are

Please complete in R Studio

Diamonds are forever. library(tidyverse) data(diamonds)

# Use subscripting operations to answer the questions below: (a) What proportion of diamonds are between .50 and 1.5 carats? (b) How many of the diamonds have equal x and z dimensions? (c) How many of the diamonds have a depth more than the mean? (d) How many diamonds have a cut of level `Very Good` or better? Note that cut is an ordered factor, so the levels are in order. (e) Which diamond has the highest price per carat (ppc = price/carat)? What is the value? (f) Find the 95th percentile for diamond price. Try the `quantile()` function. (g) What proportion of the diamonds with a price above the 95th percentile have the color `D` or `J`? (conditional proportion) (h) What proportion of diamonds with a clarity of VS2 have a Fair cut and a table below 56.1? (conditional proportion) (i) What is the average price per carat (ppc) for Fair cut?

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

Were the decisions based on appropriate facts?

Answered: 1 week ago

Question

Were the right people involved in the decision-making process?

Answered: 1 week ago