3D Vector Space

WordGenderAgeRoyaltyDistance
Man172-
Woman972-
Boy121-
Girl921-
King179-
Queen979-
Teenager541-
šŸ”“ X: Gender (1=Male, 9=Female)
🟢 Y: Age (2=Young, 7=Adult)
šŸ”µ Z: Royalty (1=Common, 9=Royal)
Drag to rotate • Click points

Vector Basics

Each word is represented as a 3D vector with coordinates [Gender, Age, Royalty].

Vector Arithmetic

King - Man + Woman = Queen

This famous example shows how word relationships are preserved in vector space. We subtract the "maleness" from King and add "femaleness" to get Queen.

Distance Calculation

Euclidean distance: √[(xā‚‚-x₁)² + (yā‚‚-y₁)² + (zā‚‚-z₁)²]

Closer points have smaller distances and are more semantically similar.

Interactions

• Click spheres to see nearest neighbors

• Drag to rotate the 3D space

• Scroll to zoom in/out

• Vector operations show animated calculations

Color Coding

🟢 Green line: Closest neighbor

🟠 Orange line: Second closest neighbor