Ugly Duckling Theorem Calculator
Explore how feature selection changes similarity in pattern recognition.
About the Ugly Duckling Theorem
Examples
| Feature sets | Similarity | Interpretation |
|---|---|---|
| red, small, round / red, small, soft | 50% | Two of four distinct features overlap. |
| blue, large / blue, large | 100% | Both sets are identical. |
| winged, warm / aquatic, cold | 0% | The chosen features do not overlap. |
How to use the calculator
- List the first object's relevant features, separated by commas.
- List the second object's features using the same naming convention.
- Select Compare Features to calculate intersection, union, and similarity.
- Change the selected properties to see how representation changes the result.
Frequently asked questions
What does the Ugly Duckling Theorem say?
It says every pair of objects is equally similar when all possible properties are counted without preference. Meaningful similarity requires assumptions about which properties matter.
What similarity formula does this calculator use?
It uses Jaccard similarity, dividing shared features by all distinct features. The result is displayed as a percentage.
Are feature names case sensitive?
Feature names should be entered consistently for reliable comparisons. Terms that differ in capitalization or spelling may be treated as different properties.
Can this classify real data?
This is an educational set-comparison demonstration rather than a trained classifier. Real applications need validated features, weights, and domain-specific evaluation.
Why can adding a feature change similarity?
A new feature changes the union and may also change the intersection. That alters the representation on which the numerical score depends.