title: Calculate probability on a given Dataset (diamonds)
body: <p>I'm doing R programming question on a data set called <code>Diamonds</code>. First of all in order to install and load the data set. Type the following command:</p>
  
  <pre><code>install.packages("ggplot2")
  library(ggplot2)
  </code></pre>
  
  <p>You will get something like this:
  <a href="https://i.stack.imgur.com/3jseO.jpg" rel="nofollow noreferrer">type diamonds(or print diamonds)</a></p>
  
  <p>Ok now I'm working on a probability question. The question is: <em>By using this table, calculate the probability that a randomly chosen diamond is of
  colour F and VS1 clarity. Give your answer rounded to four decimal places</em>.</p>
  
  <p>First of all, I created the table of the frequency of the <code>clarity</code> (in the rows) and the <code>colour</code> (in the
  columns) of <code>diamonds</code>. I used that command <code>table(diamonds$clarity, diamonds$color)</code> to create the table. Here's the screenshot of the table.
  <a href="https://i.stack.imgur.com/wH6wE.jpg" rel="nofollow noreferrer">Frequency Table</a></p>
  
  <p>Now by using this table, I need to  calculate the probability that a randomly chosen diamond is of <code>colour == F</code> and <code>clarity == VS1</code>.<br>
  Rounded to four decimal places.</p>
  
  <p>Can anyone help me with this part of the question? Which function or formula that I need to calculate the probability.</p>