Note that, in the lecture notes, there is an extra $Q$ matrix entering the estimation. Do you know why? Can you make the matrix appear in your formula?