Statistical models of the variability of plasma in the topside ionosphere: 1. Development and optimisation