Matlab program testNB.m provides a test of negative binomial distribution based on paper Hinz, P., Gurland, J. A Test of fit for the negative binomial and other contagious distributions. JASA June 1970, V 65, N. 330, Theory and Methods section The testNB program was written under support of the project from MSMT of the Czech Republic no. 1M06047 “Center of Quality and Reliability of Production”. The program is available upon request by email at hrdlickova.z@fme.vutbr.cz .