x
using the corresponding number of trials in n
and probability of success for each trial in p
.binompdf(n, p, x)
trials = 10
prob = c(.2,.25,.3,.35)
success = 4
binomcdf(n = trials, p = prob, x = success)
Run the code above in your browser using DataLab