Statistics, Data Science, R Programming, Programming, Machine Learning.
probability mass function plot(0:x, dnbinom(0:x, size, prob) , type = ‘h’) to plot the probability mass function, specifying the plot to be a histogram (type=’h’) Plotting the probability mass function for the aforementioned question: success<-0:65 plot(success,dnbinom(success,5, prob = 0.2) ,