We develop several formal analogies between the logistic equation and the spatially homogeneous and isotropic relativistic cosmology described by the Einstein-Friedmann equations. These analogies produce an effective Lagrangian and Hamiltonian and new symmetries for the logistic equation.