Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Union and Intersection with R Introduction The goal of this project is to reinforce the concepts learned in class using R and RStudio. i Note

image text in transcribed
image text in transcribed
image text in transcribed
Union and Intersection with R Introduction The goal of this project is to reinforce the concepts learned in class using R and RStudio. i Note R is the name of the programming language itself and RStudio is a convenient interface. You can download R from cran. RStudio can be downloaded from the following website. If you don't want to install R and/or RStudio on your computer, you can still use R by creating a free account on RStudio cloud. You may also run R in your browser here. Probability of Events and Conditonal Probability Here we read a dataset called "Iris" (description of the data is given below) to summarize the data into a frequency table. R commands * renaming the iris dataset as myata myData 5.14.94.74.65.05.44.65.04.44.9 \# Separating the data under Species spc sum( na.omit (sp >5 spc == "setosa")) [1] 22 The Iris Data set The Iris data contains 150 iris flowers consisting of three types: Setosa, Versicolor, and Virginica. In additon to the three types of the iris flower, the data also shows four features of each flower consising of length and witds of sepal and the flower's petal. A snapshot of the data is given below: Exercises Answer the following question using the above commands and the Iris dataset. 1. Complete the following table. Use the completed table in question 1 to answer the following questions. 2. If an iris flower is selected randomly, what is the probability that the flower is of Versicolor type? 3. If an iris flower is selected randomly, what is the probability that the sepal length is more than 6 units? 4. If an iris flower is selected randomly, what is the probability that the flower is of Versicolor type and the sepal length is more than or equal to 5 units and less than or equal to 6 units? 5. If a randomly selected flower is of type Versicolor, what is the probability that the sepal length is more than 6 units

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

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions