Introduction

Monte Carlo simulation is a process using probabilistic technique to generate random values for uncertain inputs then compute the outputs, replicating this process for multiple times to understand the distribution of outputs and their statistical properties (min, max, mean and so on).

In this project, I will apply Monte Carlo method to understand the future of a business decision. The method is commonly used in financial planning & budgeting to forecast the future and support decision making. A model is built to predict financial performance metrics (NPV, profitability, cashflow) in multiple periods. Thought most of finance professionals prefer Excel spreadsheet to run simulation, I prefer Python. I want to practice and hone my skill with Python. It's faster and more convenient.

Define problem

Suppose that ABC Company has discovered a potential drug breakthrough in the laboratory and needs to decide whether to conduct clinical trials and seek FDA approval to market the drug. Total R&D costs are expected to reach USD 700 million, and the cost of clinical trials will be about USD 150 million. The current market size is estimated to be two million people and is expected to grow at approximately 3% each year. In the first year, ABC estimates gaining an 8% market share, which is anticipated to grow around 20% each year. It is difficult to estimate beyond five years because new competitors are expected to be entering the market. A monthly prescription is anticipated to generate revenue of USD130 while incurring variable costs of USD40.

With a lot of uncertainty, their FP&A team is trying to illustrate different scenarios to predict the profitability of the new product. They are interested in evaluating the risk associated with the project and need to answer 3 questions as follows:

  1. What is the risk that the net present value (NPV) over the five years will not be positive?
  2. What are the chances that the product will show a positive cumulative net profit in the third year?
  3. In the fifth year, what minimum amount of cumulative profit are we likely to achieve with a probability of at least 90%?

The distributions and parameters of uncertain variables are as follows:

a. Market size is normally estimated with average of 2,000,000 units (mean) and could fluctuate of 400,000 units (standard deviation).
b. R&D costs are expected to reach any level between USD 600 million and USD 800 million (uniformly distribution).
c. Clinical trial costs: normal with average of USD 150 million and standard deviation USD 30 million.
d. Annual market growth factor: triangular with minimum = 2%, maximum 6%, and most likely = 3%.
e. Annual market share growth rate: triangular with minimum = 15%, maximum = 25%, and most likely = 20%.

Reference: Evans, J. R. (2021). Spreadsheet Modeling and Analysis. In Business analytics: Methods, models, and decisions (pp. 405–440). Pearson.

Import library

Inputs

Set up code

In this problem, some inputs are uncertain and distributed in different ways. Inputs are normal, uniform and triangular random variates.

Normal distribution: Clinical trial cost, market size.
Uniform distribution: R&D cost.
Triangular distribution: annual market growth factor and annual market share growth rate.

For R&D and Clinical trial cost, the random inputs are used in first year only, these expenses presumably to spend all once the project begins. The other inputs like growth rate or market size, the team must use different input values for each year of the model as these values are independent of each other. For example, the code below generate 5 different radom value of share growth rate for 5 years.

To build the model, we need to understand what is NPV.

"Net present value (NPV) is a financial metric that seeks to capture the total value of a potential investment opportunity. The idea is to project all of the future cash inflows and outflows associated with an investment, discount all those future cash flows to the present day, and then add them together. The resulting number after adding all the positive and negative cash flows together is the investment’s NPV. A positive NPV means that, after accounting for the time value of money, you will make money if you proceed with the investment."

For more information, please check https://www.investopedia.com/terms/n/npv.asp

Result table

The first 5 columns describe cumulated profit each year. The last column shows total project NPV after 5 years.

Analyse the result

What is the probability that the net present value over the 5 years will not be positive?
To tackle this, we need to calculate P(x < 0) of Total NPV.
The result shows it is rarely a chance that Total project NPV is negative. It is a profitable project after 5 years.

What are the chances that the product will show a cumulative net profit in the third year?
To tackle this, we need to calculate P(x > 0) in Year 3.
The result shows it is unlikely that the cumulated net profit is positive in year 3.

What cumulative profit in the fifth year are we likely to realize with a probability of at least 0.90? Or in the fifth year, what minimum amount of cumulative profit are we likely to achieve with a probability of at least 0.90? ~ we are looking for the 10th percentile

With the assumption that all investment costs is spent in at the beginning, it starts with a negative cash flow and becomes positive when cumulated profit exceed the initial investment costs. As can be seen from the summary:

It is a profitable project over 5 years.