Investor Perceptions of the Relationship of S&P 500 Stocks

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This Demonstration shows a graph of investors’ perceptions of how stocks are related, based on information from an online stock forum on Twitter [1]. Each vertex represents a stock. A line joining two vertices means that the two corresponding stocks were mentioned together in the stock forum.


The thickness of a line represents how much higher its occurrence is than pure chance. The size of a vertex represents the frequency of mentions for the stock. The different shapes used for the vertices indicate the industry for the stocks:

The only information used is that which includes both the most frequently mentioned 64 stocks and the most frequently mentioned eight industries.


Contributed by: Xuxiang (Peter) Li (March 2012)
(NYU Polytechnic Institute, Finance and Risk Engineering Department)
Open content licensed under CC BY-NC-SA




[1] T. O. Sprenger and I. M. Welpe, "Tweets and Peers: Defining Industry Groups and Strategic Peers Based on Investor Perceptions of Stocks on Twitter," Algorithmic Finance, 1(1), 2011 pp. 57–76.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.