Question: Exercise 4 . In this problem, we will empirically verify our theoretical approach to the newsvendor problem. You may code your solution in any programming
Exercise In this problem, we will empirically verify our theoretical approach to the newsvendor problem. You may code your solution in any programming language of your choice, but make sure that your code is wellcommented!
In preparation for a music festival, a vendor is stocking up on bottles of sparkling water. They procure sparkling water from their supplier at $ per bottle and intend to sell them to festival attendees for $ per bottle. The vendor forecasts that the demand for sparkling water during the festival will follow a normal distribution with a mean of bottles and a standard deviation of bottles. Any unsold sparkling water after the festival will be offered at a clearance price of $ per bottle.
a What is the optimal order quantity according to the newsvendor model? Don't worry about rounding your solution to an integer.
b Let denote your solution from part a Simulate realizations of this scenario and report the vendor's average profit if they order i gallons, ii gallons, and iii gallons. Which of these order quantities gives the highest profit on average?
That is: use a programming language to generate samples from the distribution given above. For each of the samples, calculate the vendor's profit revenue minus order cost if they ordered i gallons, ii gallons, and iii gallons. Finally, calculate the average profit across the realizations associated with each of the three different order quantities.
c Suppose that the vendor is actually underestimating the demand, and that the real demand is normally distributed with a mean of gallons and a standard deviation of gallons. Let denote your solution from part a With the new demand distribution, simulate realizations of the scenario and report the vendor's average profit if they order i gallons, ii gallons, and iii gallons. With this new demand distribution, which of these order quantities gives the highest profit on average? Is this what you expected, and why?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
