CPM is calculated by youtube, it is based on many things, including: average view time, audience retention, mobile views, etc. You need to work on those aspects of your content if you want higher CPM rates. ECPM is just CPM but it's just views / 1000 vs monetized views / 1000. Which is why you need to raise CPM to increase ECPM. Hopefully that made sense.