inst/snippet/binom-freddy01.R

dbinom(20,20,0.8)            # probability of making all 20
1 - pbinom(14,20,0.8)        # probability of NOT making 14 or fewer
dbinom(16,20,0.8)            # probability of making exactly 16

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 1, 2019, 11:18 p.m.