Three essays on agricultural supply analysis