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