Good evening,
I am studying the CAPM and I have a doubt regarding the variance $σ_i^2$ of the expected return of an asset $i$.
In particular, how can I derive the following formula?
$$σ_i^2 = β_i^2 σ_M^2 + var(\epsilon_i)$$
In my book, I read that the formula derives from the correlation of
$$r_i = r_f + \beta_i(r_M - r_f) + \epsilon_i$$ with $r_M$, using also the definition
$$\beta_i = \frac{cov(i,m)}{\sigma_i \sigma_M}.$$
Can you help me in deriving the $\sigma_i^2$ formula? Thanks