I have derived the Yule-Walker equation as shown below.
\begin{align} \hat s(n) &= -\sum_{k=1} ^ p a_k s(n-k)\\ e(n) &= s(n) - \hat s(n) = s(n) + \sum_{k=1}^pa_k s(n-k) \end{align}
In order to minimize the power of the error: $\displaystyle \frac{\partial E\left[\lvert e(n)\rvert^2\right]}{\partial{a_k}} = 0 \quad \text{and}\quad \lvert e(n)\rvert^2 = e(n)e^*(n) $
$$ E\left[\left(s(n) + \sum_{k=1}^p a_k s(n-k)\right)e^*(n)\right]= E\left[s(n)e^*(n)\right] + \sum_{k=1}^p a_k E\left[s(n-k)e^*(n)\right] $$
\begin{align} &\frac{\partial E\left[\lvert e(n)\rvert^2\right]}{\partial{a_k}} = E\left[s(n-k)e^*(n)\right]=0\\ &E\left[s(n-k)\left(s^*(n)+\sum_{i=1}^p a^*_is^*(n-i)\right)\right]=0\\ &E\left[s(n-k)s^*(n)\right]+ \sum_{i=1}^p a^*_i E\left[s(n-k)s^*(n-i)\right]=0\\ &\sum_{i=1}^pa^*_i r(i-k) = -r(k) \end{align}
A few things confuse my mind. So I have 4 questions:
Is this derivation true?
I am not sure why we do the partial derivation in terms of $a_k$.
$e^*(n)$ includes $a^*_i$ coefficients, too. Why is $e^*(n)$ not affected by the derivation operation?
What is the meaning of all these complex conjugates here? How do they affect the numeric calculation?