Deterministic and stochastic dynamics in bacterial systems