An analytical formula for the mean and variance of marginal costs for a power generation system | Synapse