The objective of this paper is to develop a model to determine the price formation of wholesale electricity markets. For that purpose, we model wholesale electricity prices depending on the prices of fuels (coal and natural gas) and of CO2 emission allowances using a Markov Switching Regression....