Animated MDS convergence

| 4 Comments

A few days ago we had quite a discussion on multidimensional scaling. While everyone agreed that initialization is important with non-convex problems, minimizing some objective function is more appealing than using initial placement for the prior, except in appealing circumstances such as iterative scaling. For the objective function approach, one can regularize the stress function, and it is also possible to use the prior to shrink towards geographic positions.

The untidy initial placement approach is sufficient, however, to provide a visualization as we travel from the initial placement towards the final placement. Namely, the clinal pattern in the final placement is only one of the things we can learn: the migrations of points and the resulting stresses are just as interesting in providing insight about the differences between the simple uniform geographic diffusion model and the real distribution of genes in Europe.

stressviz.gif

I also visualize the stress (at the top), and the strongest attraction/repulsion vectors.

The Python source code is now available if you agree to post a link to all derivative work in the comments of this entry, you can click here [ZIP]).

4 Comments

Also see ggvis (part of ggobi, http://ggobi.org) where you can also interact to help it get out of local minima.

Actually, my code also allows interaction of this type.

Ah, but can you lay out and display in 4D? ;)

Yes. The MDS implementation doesn't really care about the dimensionality. I exported the points into VRML for 3D viewing, and if you add the motion, it will be 4D.

Leave a comment

Subscribe to Entry

Recent Comments

  • Aleks: Yes. The MDS implementation doesn't really care about the dimensionality. read more
  • Hadley: Ah, but can you lay out and display in 4D? read more
  • Aleks: Actually, my code also allows interaction of this type. read more
  • Hadley: Also see ggvis (part of ggobi, http://ggobi.org) where you can read more