Statistics, Data Science, R Programming, Programming, Machine Learning.
probability mass function plot(0:x, dgeom(0:x, prob), type = ‘h’) to plot the probability mass function, specifying the plot to be a histogram (type=’h’) Plotting the probability mass function: success<-0:3 plot(success,dgeom(success, prob = 0.2) , type=’h’, main=’Geometric Distribution’,