1
$\begingroup$

What have you tried?

So I watched this video. According to the video, we've to calculate the variance $\sigma^2$ as follows: $$ \sigma_{k}^{2} = \frac { p_{1} \left(x_{1} - \mu_{k_1}\right)^{2} + \ldots + p_{n} \left(x_{n} - \mu_{k_n}\right)^{2} } { p_{1} + p_{2} + \ldots + p_{n} } $$

Where

  • $k$ is the index of the current Gaussian class.
  • $p$ represents the possibility of one point of the set
  • $n$ is the amount of points in the set

So what's your question?

I don't understand, why we have to use $\mu_{1}$, $\mu_{2}$, $\ldots$, $\mu_{n}$. I expected to calculate it follows: $$ \sigma_{k}^{2} = \frac { p_{1} \left(x_{1} - \mu_k\right)^{2} + \ldots + p_{n} \left(x_{n} - \mu_k\right)^{2} } { p_{1} + p_{2} + \ldots + p_{n} } $$

Because why do I have to use the "current-calculated" mean of the Gaussian and not the "final" one?

$\endgroup$
5
  • 2
    $\begingroup$ At the very time point in the video that your link takes you the speaker mentions that there is a typo. $\endgroup$
    – plop
    Commented Apr 15, 2021 at 17:19
  • $\begingroup$ Oooh, so he means that the 1 in the first mean is a mistake or does he mean a different typo? $\endgroup$
    – TornaxO7
    Commented Apr 15, 2021 at 20:21
  • 1
    $\begingroup$ Ok, so my program seems to work now (half). Thank you for this hint! Can you write your comment as an answer so I can mark this question as "answered"? $\endgroup$
    – TornaxO7
    Commented Apr 16, 2021 at 19:40
  • 1
    $\begingroup$ @plop Please write an answer so that this question is not left unanswered. $\endgroup$ Commented Apr 19, 2021 at 6:03
  • $\begingroup$ @plop (in case if you forgot it) $\endgroup$
    – TornaxO7
    Commented May 14, 2021 at 13:38

1 Answer 1

1
$\begingroup$

Here's the answer of @plop:

At the very time point in the video that your link takes you the speaker mentions that there is a typo.

$\endgroup$
2
  • 1
    $\begingroup$ Please write the actual answer in this space, not just a claim that the answer exists elsewhere. You can credit the original comment by linking to it if you like. $\endgroup$
    – D.W.
    Commented Dec 28, 2021 at 0:59
  • $\begingroup$ thank you for the hint. I edited my answer. $\endgroup$
    – TornaxO7
    Commented Dec 30, 2021 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.