S&P 500 components are weighted by free float market capitalization. Larger companies affect the value of the index to a greater degree.
For example, as of March 2021, the sum of the market capitalizations of the companies in the S&P 500 was $31.31 trillion. The largest member of the index was Apple at $2.10 trillion. In contrast, the smallest member of the S&P 500 was News Corporation Class B, with a value of $13.59 billion.
Changes in Apple's stock price affect the overall index by over 1,000 times more than News Corp Class B. Due to its size, Apple makes up almost 6.1% of the index, while News Corp Class B accounts for 0.008% of the index.
It is interesting and useful to compare the performance of the market cap-weighted S&P 500 to the equal-weighted S&P 500. In the equal-weighted version, each component is given an equal weighting of 0.2%. Both indexes move together in the same direction for the most part, but by different magnitudes. The relative performance of these indexes reflects liquidity and market conditions amongst investors.
The components of the S&P 500 are chosen by a committee at Dow Jones S&P Indices with the goal of reflecting the overall economy. Companies are added or dropped from the index based on changes in the economy.
The intention of the S&P 500 is to provide an understanding of how the stock market and economy are performing at a quick glance. The S&P 500 is considered to be superior to the Dow Jones Industrial Average (DJIA), which the mainstream media and public use to assess the stock market.