Visualizing the stock market structure
This example employs several unsupervised learning techniques to extract the stock market structure from variations in historical quotes.
The quantity that we use is the daily variation in quote price: quotes that are linked tend to fluctuate in relation to each other during a day.
# Authors: The scikit-learn developers
# SPDX-License-Identifier: BSD-3-Clause
Retrieve the data from Internet
The data is from 2003 - 2008. This is reasonably calm: not too long ago so that we get high-tech firms, and before the 2008 crash. This kind of historical data can be obtained from APIs like the data.nasdaq.com and alphavantage.co.
