Lab 18: Probability

Note

In lab.qmd ## Lab 18 section,

To use ggplot,

  1. Create a data frame saving all possible values of \(x\) and their corresponding probability using dbinom(x, size = ___, prob = ___).
# A tibble: 6 × 2
      x       y
  <int>   <dbl>
1     0 0.168  
2     1 0.360  
3     2 0.309  
4     3 0.132  
5     4 0.0284 
6     5 0.00243
  1. Add geom_col()

:::