0% found this document useful (0 votes)
41 views17 pages

Introduction To Sensitivity Analysis

1. Sensitivity analysis examines how uncertainty in parameters of a model affects the model's outputs. It allows one to determine which parameters most impact the results. 2. The document demonstrates sensitivity analysis using a formula to estimate costs. It varies the number of candidates and scholarships to see how costs change. 3. Risk analysis builds on sensitivity analysis by assigning probabilities to different possible parameter values based on a distribution, like a normal curve. It generates multiple scenarios to estimate overall uncertainty.

Uploaded by

Thảo Uyên
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views17 pages

Introduction To Sensitivity Analysis

1. Sensitivity analysis examines how uncertainty in parameters of a model affects the model's outputs. It allows one to determine which parameters most impact the results. 2. The document demonstrates sensitivity analysis using a formula to estimate costs. It varies the number of candidates and scholarships to see how costs change. 3. Risk analysis builds on sensitivity analysis by assigning probabilities to different possible parameter values based on a distribution, like a normal curve. It generates multiple scenarios to estimate overall uncertainty.

Uploaded by

Thảo Uyên
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Introduction to Sensitivity Analysis

by Simon Moss

Introduction

Occasionally, you may need to apply a formula to estimate some numerical outcome—such as the cost
of some intervention or the probability of success. To illustrate, suppose you need to estimate the costs
of a graduate research course next year. This cost could perhaps be derived from the formula that
appears in the following box

Cost = 5 000 000 + $12 000 x number of candidates + 98 000 x number of scholarships

You could then apply this formula to estimate the outcome. In this example

 suppose the number of candidates is 200


 suppose the number of scholarships is 100
 the cost is thus 5 000 000 + 12 000 x 200 + 98 000 x 100 or $17 200 000

Therefore, in this instance, the formula predicts the cost of this course is about 17 million dollars.
However, various bodies, such as the board, might want to clarify the certainty or accuracy of this figure.
That is, they might want to know the degree to which this outcome might change if the parameters—
such as the number of candidates or scholarships—shifted. For example, if the number of candidates
was 250 instead of 200, to what extent would the costs change? Sensitivity analysis is designed to
answer this question and improves the credibility of your estimates.

Page 1 of 17
Illustration: Varying one parameter

Perhaps the best way to learn about sensitivity analysis is merely to apply the following steps in
Microsoft Excel yourself. So, open Microsoft Excel and complete the following activities.

1 Enter the numbers

First, enter data that resembles the following display. To achieve this goal, you could simply enter every
word and number. Or, to create the series from 50 to 150 more efficiently, you could use various
functions in Excel. For example, you could

 enter 50, 60, and 70


 drag the mouse from D4 to D14
 click the highlighted button that appears on the left side, called Fill
 choose the option “series” and then enter the number 10 next to step value before pressing OK

2 Rename your parameters

In your example, the two parameters—number of candidates and number of scholarships—appear in


cells B1 and B2. So, the formula to represent costs would be “= 5 000 000 + 12 000 x B1 + 98 000 x
B2”.
But, to help interpret the formula, some people like to label the parameters—rather than refer to B1 and
B2. To achieve this goal

 shift the cursor to cell B1


 you will notice the name of this cell, B1, appears in a box in the top left, as illustrated in the previous
example

Page 2 of 17
 you can now enter a label in this box, such as “candidates”
 similarly, shift the cursor to cell B2
 in the top left box, enter another label, such as “scholarships”.

3 Enter the formula

So, the formula to represent costs is now “= 5 000 000 + 12 000 x candidates + 98 000 x scholarships”.
You are now ready to enter this formula into Microsoft Excel. As the following display reveals

 you could enter this formula in cell E3—one cell above and to the right of your number series
 in Excel, * represents the multiplication sign
 although not shown in the following display, when you enter this formula, the outcome will be
17 200 000

4 Vary the parameters

You are now ready to calculate how the outcome would vary if you varied the number of scholarships.
To achieve this goal, as the following display shows, highlight the cells from D3 to E14 and select the
Data option.

Page 3 of 17
Then

 choose an option called ‘What-if analysis”—an option that often appears on the right
 select “Data table” to generate the following box
 in the cell “Column input cell”, enter “scholarships”.

If you are not using a Mac, the display will differ, but you should still be able to locate “What-if
analysis”. In essence, you are informing Microsoft Excel that you want to vary the parameter called
scholarships. The series of numbers in the column are other possible values of scholarships

5 Interpret the various outcomes

This procedure should generate all the estimates that appear in Column E of the following display. To
illustrate, in this instance

Page 4 of 17
 if the number of scholarships was only 50, the cost would be 12 300 000
 if the number of scholarships was 60, the cost would be 13 280 000 and so forth

6 Plot the outcomes

Sometimes, rather than present an overwhelming table, readers prefer this information appears in a
figure. To generate a figure, you could

 highlight the two columns of numbers, as the following display reveals


 select the “Insert” menu, and then “Chart” and “X Y Scatter”

Page 5 of 17
This procedure will generate an ordinary scatterplot, as the following example illustrates. To improve
the appearance of this scatterplot, you could, for example

 select an option called “Change Chart Type”, choose X-Y scatter, but then select the first graph that
includes a line. This option will join the dots with a line
 select “Add chart elements” to add labels to the X and Y axis.

Illustration: Varying two parameters

The previous illustration showed how to calculate the degree to which some outcome—such as the cost
of a graduate research course—would vary in response to shifts in one parameter—such as the number of
scholarships. The next example reveals how you can vary two parameters at the same time.

1 Enter the numbers

Again, your first step is to enter data that resembles the following format. In this example

 the column represents variations in one parameter, such as scholarships


 the row represents variations in a second parameter, such as candidates
 the row of numbers commences one cell above and to the right of the column of numbers

Page 6 of 17
2 Label parameters and enter the formula

Similar to the previous example, you can now label the parameters and enter the formula. The only
difference is the formula should be entered in Column D2 in this example—that is, in the cell above the
column of numbers and to the left of the row of numbers.

3 Vary the parameters

To proceed, you should highlight the column and row of numbers, as illustrated in the following display.
Then, like the previous illustration

 Choose “Data”, “‘What-if analysis”, and then “Data table”


 in the cell “Column input cell”, enter “scholarships”
 but, this time, in the cell “Row input cell”, enter “candidates”—because the row of numbers
represents various possible values of the parameter called candidates

Page 7 of 17
4 Interpret and plot the various outcomes

This procedure should generate all the estimates that appear in the following display. To illustrate, in
this instance

 if the number of scholarships was only 50 and the number of candidates was 150, the cost would be
11 700 000
 if the number of scholarships was 60 and the number of candidates was 160, the cost would be 12
800 000 and so forth

This table is particularly overwhelming. To convert this table into a suitable plot

 again highlight all the numbers


 select the “Insert” menu, and then “Chart” and “Line”
 choose “change-chart type” and then “Line” and finally “3 D line”
 you might then need to include other adjustments as well to improve the appearance

Page 8 of 17
Risk analysis

The previous illustration estimated the costs a program would incur if the number of scholarships ranged
from 50 to 150 or the number of candidates ranged from 150 to 250. Initially, these estimates might
concern the organization. To illustrate

 if the number of scholarships and candidates was very high, the costs of this program might exceed
$2.2 million
 this cost might exceed the budget and thus cannot be paid

Fortunately, perhaps you, or other specialists in this field, might know the number of scholarships is very
unlikely to exceed 120 or the number of candidates is very unlikely to exceed 200. Therefore, you might
recognize the costs of this program are unlikely to exceed the budget. The question, then, revolves
around how you can apply this knowledge to adjust the estimated costs. A procedure that is often called
a risk analysis can be applied to achieve this goal. This section illustrates this risk analysis.

Overview of risk analysis

In the sensitivity analysis, you estimated the costs of this graduate research program if the number of
scholarships was 50, 60, 70, 80, 90, and so forth. But this strategy neglects the possibility that some of
these estimates, such as 90, might be more likely than other estimates, such as 50. To override this
possibility, the researcher could first generate a large set of possible estimates that conforms to a
probability distribution. To illustrate, you might assume the estimates conform to a normal distribution,
as the following graph indicates. According to this graph

 the number of scholarships is most likely to be around 75


 the number of scholarships is very unlikely to be less than 60 or exceed 90

Page 9 of 17
The researcher would then utilize a program in Microsoft Excel that generates a whole series of possible
estimates—in this instance, estimates of the number of scholarships next year—that conform to this
distribution. The following table displays these estimates. Consistent with the previous normal
distribution

 these estimates tend to approach 75


 but occasionally, these estimates are as low as 50 or as high as 95

Estimates of the number of scholarships


55.86 61.87 96.98 84.52 82.36 79.75
72.86 95.83 96.30 88.27 68.80 77.16
79.93 76.49 77.11 91.81 75.89 76.89
67.88 77.90 47.44 95.06 77.52 82.20
84.62 78.07 83.33 53.11 85.64 90.46
… … … … … …

The researcher would then calculate the costs of this graduate program if each of these estimates was
correct. To illustrate

 according to the previous table, the first estimate is 55.86 or 56


 if the number of scholarships was 56—and the number of candidates was 200—the cost of this
graduate program would be 5000000 + 12000 x 200 + 98000 x 56 or $12 888 000
 the same process could be applied to convert all the other estimates in the previous table to costs of
this graduate program—as the following display reveals

Possible costs of the graduate research program


12874280 13463260 16904040 15682960 15471280 15215500
14540280 16791340 16837400 16050460 14142400 14961680

Page 10 of 17
15233140 14896020 14956780 16397380 14837220 14935220
14052240 15034200 12049120 16715880 14996960 15455600
15692760 15050860 15566340 12604780 15792720 16265080
… … … … … …

Finally, the researcher might calculate the percentiles of these costs. For example, the analysis might
show that

 the 95th percentile is 16 000 000, revealing that you can be 95% sure the costs will be less than
$16 000 000
 the 50th percentile is 12 000 000, revealing that you can be 50% sure the costs will be less than
$12 000 000

The remainder of this document clarifies these steps.

1 Determine the distribution of one or more parameters

To reiterate, you first need to determine a distribution that represents which estimates—that is, estimates
of the number of scholarships—are most likely. In practice, to determine this distribution, you could
simply ask relevant specialists two questions. In the following table

 the first column presents these questions


 the second column presents some possible answers.
 the third column specifies the implications of these answers

Questions to ask Sample answer Implication


Can you specify the most likely 80 average = 80
number of scholarships?

Can you specify what is likely to be 60 to 100 standard deviation = (100-60) / 4.


the minimum and maximum number of
scholarships? Choose numbers that standard deviation =10
you are 95% sure contains the actual
number of scholarships.

If the distribution is normal and thus conforms to a bell shape, you need to know only the average or
mean and the standard deviation to characterize the distribution. As the previous table reveals

 the answer to the first question will generate the average

Page 11 of 17
 the answer to the second question can be utilised to estimate the standard deviation; simply calculate
the range and divide by 4
 these answers correspond to a distribution that resembles the following graph; however, you do not
need to construct this graph.

2 Generate random numbers that conform to this distribution

The next step is to utilize this distribution to generate a large set of possible estimates. To achieve this
goal in Microsoft Excel, you might need to download the data analysis tools. Specifically

 choose the data menu, as highlighted in the following display,


 and then select “Analysis tools”—an option that usually appears on the far right. The procedure
might slightly vary across computers, however
 these clicks should generate a dialogue box.
 confirm that “Analysis toolpack” is ticked before pressing OK

Page 12 of 17
This activity should generate an icon, usually appearing on the far right, called “Data analysis”. When
you click this icon, the following dialogue box appears.

If you scroll down to scan the options, you should be able to locate and highlight “Random Number
Generation” before pressing OK. This procedure should generate a set of options that resemble the
following display.

Page 13 of 17
You can utilize this dialogue box to generate a large set of numbers or estimates that conform to a
particular distribution. To achieve this goal

 use the down green arrow to choose a suitable distribution, such as “Normal” in this example
 enter the likely mean or average of this distribution, such as 80
 enter the likely standard deviation of this distribution, such as 10
 indicate the number of random variables or estimates you want to generate; for example, you could
modify the 100 to 1000.
 likewise, specify the number of variables or parameters—such as 1 or 2
 press OK to generate a set of numbers that might resemble the following display

3 For each number, estimate the outcome

In the previous display, the first column presents estimates of one parameter: the number of scholarships.
We can now apply the formula in the following box to estimate the cost of graduate research training.
This formula assumes the number of candidates is 200

Cost = 5 000 000 + 12 000 x 200 + 98 000 x number of scholarships

Page 14 of 17
To estimate these costs

 in Cell B1, you can enter a formula like “=5000000 + 12000 * 200 + 98000 * A1” but without the
quotation marks
 the outcome—12 871 429—represents the estimated costs of the program if the number of
scholarships is 55.83
 copy and paste this formula down Column B
 this activity should generate a spreadsheet that resembles the following display

4 Display this estimated outcome

Column B in the previous displays presents many estimates of the outcome or costs. But, in this format,
these numbers are not especially informative. Instead, to communicate this information more
effectively, you could perhaps compute the percentiles. Specifically

 click the “Data analysis” button again


 choose the tool “rank and percentile”
 as illustrated in the following example, you would then specify the input range—the cells in which
the estimated outcomes appear
 you could also specify the output range—the cell in which the output should first be printed

Page 15 of 17
An extract of the output appears in the following display. The display includes some relevant and some
irrelevant information. To interpret this output

 the first row of numbers indicates the 100th percentile is 18 394 791
 in other words, you can be almost 100% certain the cost will be lower than $18 394 791
 the sixth row of numbers indicates the 95th percentile is 17 020 078
 consequently, you can be 95% certain the cost will be lower than $17 020 078
 you could even construct a subset of this table that presents the 95 th, 75th, 50th, 25th, and 5th percentile
only

Page 16 of 17
Variations

You might need to consider several variations of this risk analysis too. For example, researchers might
utilize another distribution, instead of a normal distribution, to estimate the parameter. That is

 a normal distribution is suitable if the parameters can be any number


 this distribution may not be as suitable if the parameters are bounded—such as if the parameters
must exceed 0

In these instances, you might need to choose another distribution. The following table can help you
choose an appropriate distribution.

Distribution When to use Parameters to specify


Uniform  The parameter can vary only between  range
two numbers, such as 0 and 100
 Within this range, all values are
equally likely
Normal  The parameter conforms to a bell-  mean
shaped curve  standard deviation
 Values around one point are more
likely than values that diverge from
this point
Binomial  The parameter is an integer that  p value—represents the
includes or exceeds 0 probability of this event
 Typically, the parameter represents  number of trials—represents
the number of times one event rather the maximum possible
than some alternative transpired— number of events
such as correct responses rather than
incorrect responses on a test
Discrete  The parameter must be specific  Value and probability input
values, such as 45, 52, 63, and 81 range
 The researcher should be able to
estimate the likelihood of each value

Alternatively, you could utilize a normal distribution, but then delete all values below or above some
limit. This distribution is called a truncated normal distribution.

Page 17 of 17

You might also like