Fundamental understanding of the stock markets