 Federal regulators are examining how companies including MasterCard, JPMorgan Chase, and McKinsey provide clients with algorithms that use consumers' personal data to set prices based on a shopper's individual characteristics.