3
$\begingroup$

Say that $\mathcal{X}$ is the samples set and $X$ is a r.v. that takes value in it, and $\mathcal{Y}$ is the labels set with $Y$ a r.v. that takes value in it.

Classification problems are easily represented in probability terms. For example, when we wish to classify some sample $x \in \mathcal{X}$ our goal i to find $\hat y$ that solves this: $$ \hat y = \underset{y \in \mathcal{Y}}{\text{args max }} \Pr(Y=y|X=x) $$

That definition represents the optimum classification problem solver. We can say that all supervised learning algorithms (e.g. SVM, RF, etc) try to estimate that conditional-probability maximizer above. The definition is generic, simple, and commonly found in books/Internet.

But the challenge that I am facing is how to define clustering problems in probability terms, i.e. similar to what I showed earlier for classification, but for clustering instead.


My attempt

Let's say that $\mathcal{C} = \{i:1 \le i \le k\}$ is a set that has a bijection against $\mathcal{Y}$, and $C$ is a random variable that takes values in $\mathcal{C}$.

Then I suppose that clustering in probability terms aims to only find:

  • $k$ (which implies finding $\mathcal{C}$).
  • $f_{X,C}$ is the joint the density of r.vs $X$ and $C$.

That maximize the following:

$$\begin{split} (k^*,f^*_{X,C}) &= \underset{(k,f_{X,C}) \in \mathcal{H}}{\text{arg max }} \sum_{c\in\mathcal{C}} \prod_{x\in\mathcal{X}} f_{X,C}(x,c) \,\,\,\,\,\,\,\,(1)\\ \end{split}$$

Here $\mathcal{H}$ is the space of hypothesis. Usually domain knowledge is used to reduce its size by assuming things like maybe $p_C(c) = \frac{1}{|\mathcal{C}|}$ (for any $c$), or that $f_{X|C=c}$ is normally distributed (for any $c$), and plug this information into $f_{X,C}(x,c)=p_C(c)f_{X|C=c}(x)$.

Once $k^*$ and $f^*_{X,C}$ are found, for any sample $x$ we predict its cluster identifier to be: $$ c^* = \underset{c \in \{1,2,\ldots,k^*\}}{\text{arg max }} f_{X,C}^*(x,c) $$

Q1: Is equation $(1)$ the expectation maximization algorithm?

Q2: Is there any clustering problem that its optimal solution is not representable by this?

$\endgroup$
4
  • $\begingroup$ Cluster analysis, in general, does not have to refer to any random variable having a specific distribution. In that general sense cluster analysis is a not probability-paradigm technique. Some specific clustering methods, though could be formulated in terms of probability. GeoMatt22, for example, offers to see clustering as a form of latent class analysis. It is possible, perhaps in some cases, but speaking generally - it is a stretch. $\endgroup$
    – ttnphns
    Commented Dec 18, 2016 at 9:07
  • $\begingroup$ If C is a bijection with |Y|, then |C|is|Y|? $\endgroup$ Commented Dec 18, 2016 at 10:06
  • $\begingroup$ @Anony-Mousse Yes (if $k$ is predicted correctly). $\endgroup$
    – caveman
    Commented Dec 20, 2016 at 13:46
  • $\begingroup$ I updated my attempt above. I think I terribly omitted important things. Hopefully what I say makes sense. I'm not a statistician so I could still be deeply wrong. Any correction is highly appreciated. $\endgroup$
    – caveman
    Commented Dec 20, 2016 at 15:25

2 Answers 2

1
$\begingroup$

In this context, you could consider clustering to be classification with latent (hidden) labels $y$.

Commonly the conditional distribution of $x|y$ is assumed to have some parametric form (e.g. Gaussian) whose parameters $\theta|y$, along with the class labels $y$, are inferred from the data $x$ using the Expectation Maximization (EM) algorithm.

With this approach the number of labels $|\mathcal{Y}|$ is another free parameter, which may or may not be estimated from the data.

$\endgroup$
1
  • $\begingroup$ Thank you. I edited my question with an attempt that does what I think is what you said, plus some extra things from Anony-Mousse. Any thoughts? $\endgroup$
    – caveman
    Commented Dec 18, 2016 at 8:27
1
$\begingroup$

If you look at cluster evaluation, you will find the answer.

Labels are just random, but they bear the information which objects are related, and which are not related.

So rather than predicting label(x), what you are predicting is whether for any two objects x and y, label(x)=label(y). So instead of looking at single objects, always look at pairs.

$\endgroup$
3
  • $\begingroup$ Thank you. I edited my question with an attempt that does what I think is what you said, plus some extra things from GeoMatt22. Any thoughts? $\endgroup$
    – caveman
    Commented Dec 18, 2016 at 8:27
  • $\begingroup$ Its true, but the OP asked on clustering-to-do, not on ready cluster solution to evaluate. $\endgroup$
    – ttnphns
    Commented Dec 18, 2016 at 8:51
  • 1
    $\begingroup$ @ttnphns I'm not saying this is itself the entire solution. But this transformation maps the clustering problem to a binary problem "are a and b related" that is more similar to classification, and supposedly much easier to model. $\endgroup$ Commented Dec 18, 2016 at 10:05

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.