Inference And Analysis For Stochastic Density-Dependentpopulation Dynamics, With Application To Drug Resistance