AbstractIn this paper, the two level stochastic optimisation approach has been suggested. In the lower level, the probability distribution functions (pdfs) for bus voltages and branch currents have been determined using the Monte Carlo simulation (MCS) to be employed in chance‐constrained probabilistic optimisation by taking into account solar radiation and power consumption uncertainties in the distribution networks (DNs). In the upper level, artificial hummingbird algorithm (AHA) handles the expected power loss minimisation subjected to chance constraints, which are related to bus voltages and branch currents, by optimising photovoltaic (PV) system capacities. This research examines the effect of uncertainties in PV system performing under diverse solar radiation and varying PV penetration level scenarios on expected power losses with stochastic DN limits. The stochastic optimisation approach has been compared with the deterministic method for observing the efficiency with optimal power usage. This research improves the knowledge base for optimal PV installation in DN by combining AHA with MCS and emphasising chance‐constrained methods. To indicate the efficacy of proposed strategy, the optimisation outcomes are tested utilising MCS under various uncertainty circumstances and DN parameters are assessed in terms of probabilities of exceeding limitations. The results are compared with the application of firefly algorithm (FA) using stochastic assessment and simulations. The simulation results show that the AHA technique outperforms the FA method in terms of effectively minimising power losses with less simulation time.