Statistics, Data Science, R Programming, Programming, Machine Learning.
‘h’) to plot the probability mass function, specifying the plot to be a histogram (type=’h’) Plotting the probability mass function: success<-0:4 plot(success,dhyper(0:4,6,14,5) , type=’h’, main=’Hypergeometric Distribution’, ylab=’Probability’, xlab =’# Successes’, lwd=3) Probability Mass Function