Three essays on modeling consumer demand