Retailers are adapting their business models as technology changes how people shop. Still, demand can be volatile as the industry is exposed to the ups and downs of consumer spending. This has stirred some uncertainty lately as retail stocks have lagged the market over the past six months, posting a return of 1.9% compared to 12.7% for the S&P 500.