The S&P 500's closing price as data provides an excellent real-world application.
The S&P 500 index, a key benchmark for U.S. stock market performance, is vital for
portfolio management, risk assessment, and market analysis. The original data frame
contains 1340 rows and 2 variables. Here, we have taken only 200 rows and 2 variables
for demonstration.