Plasmodium falciparum, the most virulent human malaria parasite, undergoes asexual reproduction within the human host, but reproduces sexually within its vector host, the Anopheles mosquito. Consequently, the mosquito stage of the parasite life cycle provides an opportunity to create genetically novel parasites in multiply-infected mosquitoes, potentially increasing parasite population diversity. Despite the important implications for disease transmission and malaria control, a quantitative mapping of how parasite diversity entering a mosquito relates to diversity of the parasite exiting, has not been undertaken. To examine the role that vector biology plays in modulating parasite diversity, we develop a two-part model framework that estimates the diversity as a consequence of different bottlenecks and expansion events occurring during the vector-stage of the parasite life cycle. For the underlying framework, we develop the first stochastic model of within-vector P. falciparum parasite dynamics and go on to simulate the dynamics of two parasite subpopulations, emulating multiply infected mosquitoes. We show that incorporating stochasticity is essential to capture the extensive variation in parasite dynamics, particularly in the presence of multiple parasites. In particular, unlike deterministic models, which always predict the most fit parasites to produce the most sporozoites, we find that occasionally only parasites with lower fitness survive to the sporozoite stage. This has important implications for onward transmission. The second part of our framework includes a model of sequence diversity generation resulting from recombination and reassortment between parasites within a mosquito. Our two-part model framework shows that bottlenecks entering the oocyst stage decrease parasite diversity from what is present in the initial gametocyte population in a mosquito's blood meal. However, diversity increases with the possibility for recombination and proliferation in the formation of sporozoites. Furthermore, when we begin with two parasite subpopulations in the initial gametocyte population, the probability of transmitting more than two unique parasites from mosquito to human is over 50% for a wide range of initial gametocyte densities.