Three essays on demand estimation