A stock index is a compilation of shares built in such a way to reproduce a market that is particular sector, commodity, or whatever else an investor may want to monitor.