Abstract This paper presents a bi-level model for day-ahead electricity pricing and dispatch problems faced by a distributed generation (DG)-owning retailer who plays an intermediary role between the wholesale electricity market and end-use consumers. In this approach, the stochastic programming is addressed in the upper level to study behavior of the retailer in the wholesale electricity market in presence of self-generation facilities, including thermal DGs, wind farms and roof-top photovoltaic (RPV) sites. Regarding increased penetration of RPV sites, a data dimension reduction technique through k -means clustering and principal component analysis (PCA) methods is used to hedge against large-scale output power data of RPV sites. In addition, to forecast day-ahead power output of RPV sites, a similar-day detection (SDD) technique is addressed to investigate the impacts of climate variables, e.g. irradiation, sunshine hours and temperature, on 24-hour-ahead power of RPV sites. In the lower level problem, information gap decision theory (IGDT) is proposed to determine robustness of retail electricity price against uncertain clients’ consumption. In this way, robustness and opportuneness functions are discussed to evaluate immunity against failure and windfall reward, respectively. Finally, numerical results based on actual data from PJM market and North Carolina solar sites are presented to demonstrate the usefulness and proficiency of the proposed framework.