When Is Buying a Mattress a Good Deal?