Competitive investment with varying risk premia