Skip to content

Clustering, density estimation, and anomaly detection · Partition clustering · UCL009 · Algorithm

Possibilistic C-means

Estimate typicality of each observation within each cluster without forcing typicalities across clusters to sum to one.

Runs in CodeSplash Component demo, not a trained model CodeSplash's run and the reference's record

In CodeSplash

A CodeSplash method runs this entry in Python and R. Set it up from the method's page.

Do it in CodeSplash Run it on your own data, in Python or R.

Availability
Runs in CodeSplash
Code example
Component demo, not a trained model
Who ran it
CodeSplash's run and the reference's record
CodeSplash's run
Verified in Python and R through discover.fuzzy. The reference's example ran in Python and R here, and they agree.
The reference's record
Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.

Purpose

Estimate typicality of each observation within each cluster without forcing typicalities across clusters to sum to one. Unlike fuzzy C-means, an observation can have low typicality in every cluster, making the model attractive under noise.

Question / hypotheses

Which partition best represents the chosen distance-based notion of within-group similarity? This entry defines an estimation or optimization objective, not an intrinsic null/alternative hypothesis test.

Architecture / computational structure

Independent cluster typicalities, centers, and scale penalties; no row-sum membership constraint.

Assumptions

Independent cluster objectives can converge to coincident centers; this is a known practical limitation, not evidence that duplicate clusters exist. Typicalities are compatibility scores rather than posterior probabilities.

Formula / computational definition

A standard PCM criterion is ∑i,ktikmdik2+∑kηk∑i(1−tik)m\sum_{i,k}t_{ik}^{m}d_{ik}^{2}+\sum_k\eta_k\sum_i(1-t_{ik})^m, where tik∈[0,1]t_{ik}\in[0,1], dik=∥xi−vk∥d_{ik}=\|x_i-v_k\|, m>1m>1, and positive ηk\eta_k controls each cluster's typicality scale. The penalty prevents the all-zero membership solution.

Parameters and notation

Learned or fitted quantities: Typicalities, centers, and possibly estimated scale constants. User-set hyperparameters/design choices: Set cluster count, fuzzifier, scale initialization, and starting centers, often using fuzzy C-means. Tune these against the stated objective and stability/validation criteria; do not select settings on the final evaluation set.

Fitting, fine-tuning, and adaptation

Neural fine-tuning is not applicable. Refit after changing the metric or scaling. Where the objective permits, warm-start from previous representatives, then compare against independent restarts; assign new cases using the same stored representation and distance.

How to use and calibrate

Examine center separation, low-typicality observations, sensitivity to ηk\eta_k, and stability across starts. Compare against known noise or held-out operational criteria when possible.

Example application

Find low-typicality records in noisy process measurements. Define the reference population, measurement units, and success criterion before fitting; investigate whether discovered groups or alerts reflect the intended phenomenon.

Interpretation / pitfalls

Watch out

The reported result is conditional on the representation and objective. A stable partition can reflect nuisance structure such as batch, collection site, or missingness. Confirm the interpretation in original variables and an independent sample.

Python and R code examples

Use a custom NumPy implementation of the objective and updates, or bridge to R. The R ppclust package documents possibilistic clustering methods; select PCM explicitly because related hybrid formulations optimize different criteria.

Component: Possibilistic typicality update. Python: executed successfully; R: not executed (Rscript unavailable). These small fixtures establish the arithmetic operation, not full-method accuracy or reproduction of paper results.

Python and R

The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.

Python

Component demo, not a trained model — Possibilistic typicality update. · needs numpy

import numpy as np
d2=np.array([[1.,9.],[4.,1.]]); eta=np.array([2.,2.]); m=2.
result=1/(1+(d2/eta)**(1/(m-1)))
print(result)
R

Component demo, not a trained model — Possibilistic typicality update.

d2=rbind(c(1,9),c(4,1)); eta=c(2,2); m=2
result=1/(1+sweep(d2,2,eta,"/")^(1/(m-1)))
print(result)

Sources

From the CodeSplash reference, entry UCL009.