Professional Documents
Culture Documents
Using TreePlan
16
19
92
Chapter 16
6 Decision Trees Using TreePlan
th
he spreadsheet: begin your treee to the right of
o the area wheere your data iss stored, and ddo not
su
ubsequently ad
dd or delete row
ws or columns in the tree-diag
agram area.)
Figure 16.1 TreeePlan Initial Default
D
Decisio
on Tree
b adding or modifying
m
brancches or nodes iin the default trree. To changee the branch
Build up a tree by
bilities, click on
n the cell contaaining the labell or probabilityy and type the nnew label
laabels or probab
orr probability. To
T modify the structure
s
of thee tree (e.g., addd or delete brannches or nodes in the
tree), select the node
n
or the celll containing th
he node in the ttree to modify,, and press Ctrrl+Shift+T
(o
or Option+Cm
md+T). TreePlaan will then preesent a dialog bbox showing thhe available coommands.
Fo
or example, to add an event node
n
to the top branch of the tree shown aboove, select the square cell
(ccell G4) next to
o the vertical line at the end of
o a terminal brranch and presss Ctrl+Shift+T
T (or
Option+Cmd+T
O
T). TreePlan th
hen presents th
his dialog box.
Figure 16.2 TreeePlan Terminaal Node dialog box
16.2
2 Building a Deci
cision Tree in Tre
eePlan
193
Th
he Copy subtrree command is
i particularly useful
u
when buuilding large trrees. If two or m
more parts
off the tree are siimilar, you can
n copy and pastte "subtrees" raather than buildding up each ppart
seeparately. To copy a subtree, select the nodee at the root off the subtree annd choose Copyy subtree.
Th
his tells TreePlan to copy thee selected nodee and everythinng to the right oof it in the tree. To paste
th
his subtree, seleect a terminal node
n
and choosse Paste subtrree. TreePlan thhen duplicates the
sp
pecified subtreee at the selecteed terminal nod
de.
Siince TreePlan decision trees are
a built directtly in Excel, yoou can use Exccel's commandss to format
yo
our tree. For ex
xample, you caan use bold or italic
i
fonts for branch labels: select the cells you want
to
o format and ch
hange them usiing Excel's form
matting commaands. To help yyou, TreePlan provides a
Seelect dialog bo
ox that appears when you presss Ctrl+Shift+
+T (or Option+
+Cmd+T) withhout a node
seelected. You caan also bring up
p this dialog bo
ox by pressingg the Select buttton on the Nod
de dialog
bo
ox. From here, you can selectt all items of a particular typee in the tree. Foor example, if you choose
Probabilities an
nd press OK, TreePlan
T
selectts all cells conttaining probabiilities in the treee. You can
19
94
Chapter 16
6 Decision Trees Using TreePlan
th
hen format all of
o the probabiliities simultaneously using Exxcel's formattinng commands. (Because
off limitations in
n Excel, the Sellect dialog box
x may not be avvailable when w
working with vvery large
trees.)
16.3 ANAT
TOMY OF
F A TREE
EPLAN DE
ECISION TREE
An
A example of a TreePlan deccision tree is sh
hown below. Inn the example, a firm must deecide (1)
whether
w
to prepaare a proposal for a possible contract
c
and (22) which methood to use to sattisfy the
co
ontract. The treee consists of decision
d
nodes,, event nodes aand terminal noodes connectedd by
brranches. Each branch
b
is surro
ounded by cellss containing foormulas, cell reeferences, or lab
abels
peertaining to thaat branch. You may edit the laabels, probabillities, and partiial cash flows aassociated
with
w each branch
h. The partial cash
c
flows are the amount thee firm "gets paaid" to go downn that
brranch. For the scenario with terminal
t
value $30,000, the fi
firm pays $50,0000 if it decidees to
prrepare the prop
posal, receives $250,000 up front
fr
if awardedd the contract, spends $50,0000 to try the
ellectronic metho
od, and spends $120,000 on the
t mechanicall method if the electronic metthod fails.
Figure 16.5 Nod
des, Labels, Caash Flows, and
d Probabilities
195
196
Cash Flow
Cell Formulas
Defined Name
Terminal Node
Endpoint Value
Optional
Event Node
Rollback Value
Probability
Optional
RT (Risk Tolerance)
Decision Node
Rollback Value
Decision Node
Choice Indicator
Formula
SUM of branch cash flows
IF probabilities SUM to
approximately one, then SUM the
products of probabilities times
subsequent rollback values
Rollback Value
at Decision Node
Choice Indicator
at Decision Node
Nested IF functions
197
DriveTek Problem
DriveTek Research Institute discovers that a computer company wants a new storage device for a
proposed new computer system. Since the computer company does not have research people
available to develop the new storage device, it will subcontract the development to an independent
research firm. The computer company has offered a fee of $250,000 for the best proposal for
developing the new storage device. The contract will go to the firm with the best technical plan
and the highest reputation for technical competence.
DriveTek Research Institute wants to enter the competition. Management estimates a cost of
$50,000 to prepare a proposal with a fifty-fifty chance of winning the contract.
However, DriveTek's engineers are not sure about how they will develop the storage device if they
are awarded the contract. Three alternative approaches can be tried. The first approach is a
mechanical method with a cost of $120,000, and the engineers are certain they can develop a
successful model with this approach. A second approach involves electronic components. The
engineers estimate that the electronic approach will cost only $50,000 to develop a model of the
storage device, but with only a 50 percent chance of satisfactory results. A third approach uses
magnetic components; this costs $80,000, with a 70 percent chance of success.
DriveTek Research can work on only one approach at a time and has time to try only two
approaches. If it tries either the magnetic or electronic method and the attempt fails, the second
choice must be the mechanical method to guarantee a successful model.
The management of DriveTek Research needs help in incorporating this information into a
decision to proceed or not.
[Source: The storage device example is adapted from Spurr and Bonini, Statistical Analysis for
Business Decisions, Irwin.]
198
In general, decision nodes and branches represent the controllable factors in a decision problem;
event nodes and branches represent uncontrollable factors.
Decision nodes and event nodes are arranged in order of subjective chronology. For example, the
position of an event node corresponds to the time when the decision maker learns the outcome of
the event (not necessarily when the event occurs).
The third kind of node is a terminal node, representing the final result of a combination of
decisions and events. Terminal nodes are the endpoints of a decision tree, shown as the end of a
branch on hand-drawn diagrams and as a triangle on computer-generated diagrams.
The following table shows the three kinds of nodes and two kinds of branches used to represent a
decision tree.
Figure 16.9 Nodes and Symbols
Type of Node
Written Symbol
Decision
square
Event
circle
Terminal
endpoint
Computer Symbol
square
circle
triangle or bar
Node Successor
decision branches
event branches
terminal value
Terminal Values
Each terminal node has an associated terminal value, sometimes called a payoff value, outcome
value, or endpoint value. Each terminal value measures the result of a scenario: the sequence of
decisions and events on a unique path leading from the initial decision node to a specific terminal
node.
To determine the terminal value, one approach assigns a cash flow value to each decision branch
and event branch and then sum the cash flow values on the branches leading to a terminal node to
determine the terminal value. In the DriveTek problem, there are distinct cash flows associated
with many of the decision and event branches. Some problems require a more elaborate value
model to determine the terminal values.
The following diagram shows the arrangement of branch names, probabilities, and cash flow
values on an unsolved tree.
16.5 Step-by-S
Step TreePlan Tu
Tutorial
199
5
0.5
Ele
ectronic success
$150,000
0.5
Awarded contract
Try electronic
c method
0.5
5
Ele
ectronic failure
$30,000
0.7
7
Ma
agnetic success
Prepare propo
osal
$120,000
Try magnetic
c method
0.3
3
Ma
agnetic failure
$0
0.5
Nott awarded contract
-$50,000
Building
B
the
e Tree Diag
gram
1.
Start with
w a new work
ksheet. (If no workbook
w
is oppen, choose Fille > New. If a w
workbook
is open
n, choose Insertt > Worksheet..)
2.
Select cell
c A1. In Exccel 2007 & 201
10 & 2013, chooose Add-ins > TreePlan Deccision Tree;
in Macc Excel 2011, choose
c
Tools > TreePlan Dec ision Tree. Or,, in any Windoows version,
press Ctrl+Shift+T.
C
In
n Mac Excel 2011, press Opttion+Cmd+T. S
Subsequent insstructions
refer on
nly to the Wind
dows shortcut key. In the TreeePlan New Trree dialog box, click the
New Tree button. A decision
d
node with
w two brancches appears.
20
00
Chapter 16
6 Decision Trees Using TreePlan
Figure 16.12 In
nitial Decision Tree
T Diagram
A
1
2
3
4
5
6
7
8
9
B C
Alternative 1
0
0
1
0
Alternative 2
0
0
3.
Select cell
c D2, and en
nter Prepare proposal.
p
Selecct cell D4, and enter 50000. Select cell
D7, and
d enter Don't prepare
p
propo
osal.
a Cash Flow
Figure 16.13 Brranch Names and
A
1
2
3
4
5
6
7
8
9
B C
Prepare propos
sal
-500
000
-50000
-50000
2
0
Don't prepare proposal
p
0
0
4.
Select cell
c F3. Press Ctrl+Shift+T.
C
In
I the TreePlann Terminal Node dialog box, select
Changee To Event Node, select Two
o Branches, andd click OK. Thhe tree is redraw
wn.
201
B C
F G
H
0.5
Outcome 3
-50000
Prepare proposal
-50000
0.5
Outcome 4
-50000
-50000
-50000
2
-50000
0
Don't prepare proposal
0
0
5.
Select cell H2, and enter Awarded contract. Select cell H4, and enter 250000. Select cell
H7, and enter Not awarded contract.
B C
F G
H
I
0.5
Awarded contract
200000
Prepare proposal
250000
-50000
0.5
Not awarded contract
75000
200000
-50000
1
-50000
75000
Don't prepare proposal
0
0
6.
Select cell J3. Press Ctrl+Shift+T. In the TreePlan Terminal Node dialog box, select
Change To Decision Node, select Three Branches, and click OK. The tree is redrawn.
202
B C
F G
Alternative 5
200000
0
0.5
Awarded contract
200000
Alternative 6
1
250000
200000
200000
200000
Prepare proposal
Alternative 7
-50000
200000
75000
200000
0.5
Not awarded contract
1
-50000
75000
-50000
7.
Select cell L2, and enter Use mechanical method. Select cell L4, and enter 120000.
Select cell L7, and enter Try electronic method. Select cell L9, and enter 50000. Select
cell L12, and enter Try magnetic method. Select cell L14, and enter 80000.
Figure 16.18 Subsequent Decision Branches With Names and Cash Flows
A
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
B C
F G
80000
250000
150000
150000
-50000
150000
Prepare proposal
-50000
-80000
120000
50000
120000
0.5
Not awarded contract
1
-50000
50000
-50000
8.
Select cell N8. Press Ctrl+Shift+T. In the TreePlan Terminal Node dialog box, select
Change To Event Node, select Two Branches, and click OK. The tree is redrawn.
203
B C
F G
N O
80000
0.5
Outcome 8
0.5
Awarded contract
150000
Try electronic method
150000
-50000
0.5
Outcome 9
2
250000
150000
150000
150000
0
150000
Prepare proposal
-50000
50000
120000
0.5
Not awarded contract
1
50000
-50000
0
-50000
9.
Select cell P7, and enter Electronic success. Select cell P12, and enter Electronic
failure. Select cell P14, and enter 120000.
Figure 16.20 Branch Names and Cash Flows for Electronic Method Uncertainty
A
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
10.
B C
F G
N O
80000
0.5
Electronic success
0.5
Awarded contract
150000
Try electronic method
150000
-50000
0.5
Electronic failure
3
250000
120000
90000
30000
-120000
30000
Prepare proposal
-50000
35000
120000
0.5
Not awarded contract
1
35000
-50000
0
-50000
Select cell N18. Press Ctrl+Shift+T. In the TreePlan Terminal Node dialog box, select
Change To Event Node, select Two Branches, and click OK. The tree is redrawn.
204
11.
B C
F G
N O
80000
0.5
Electronic success
150000
0.5
Awarded contract
3
250000
-50000
0.5
Electronic failure
90000
120000
150000
30000
-120000
30000
0.5
Outcome 10
Prepare proposal
-50000
120000
Try magnetic method
-80000
0.5
Outcome 11
120000
35000
120000
120000
0
1
120000
0.5
Not awarded contract
35000
-50000
0
-50000
Select cell P16, and enter .7. Select cell P17, and enter Magnetic success. Select cell
P21, and enter .3. Select cell P22, and enter Magnetic failure. Select cell P24, and enter
120000.
205
B C
F G
N O
80000
0.5
Electronic success
150000
0.5
Awarded contract
2
250000
-50000
0.5
Electronic failure
90000
90000
150000
30000
-120000
30000
0.7
Magnetic success
Prepare proposal
-50000
120000
Try magnetic method
120000
-80000
0.3
Magnetic failure
20000
84000
0
-120000
1
0.5
Not awarded contract
20000
-50000
0
-50000
12.
Double-click the sheet tab (or right-click the sheet tab and choose Rename from the
shortcut menu), and enter Original. Save the workbook.
Branch Name
Prepare proposal
Awarded contract
Try electronic method
Electronic failure (Use mechanical method)
Cash Flow
$50,000
$250,000
$50,000
$120,000
Terminal value
$30,000
TreePlan put the formula =SUM(P14,L11,H12,D20) into cell S13 for determining the terminal
value.
Other formulas, called rollback formulas, are in cells below and to the left of each node. These
formulas are used to determine the optimal choice at each decision node.
In cell B26, a formula displays 1, indicating that the first branch is the optimal choice. Thus, the
initial choice is to prepare the proposal. In cell J11, a formula displays 2, indicating that the
20
06
Chapter 16
6 Decision Trees Using TreePlan
seecond branch (n
numbered 1, 2, and 3, from to
op to bottom) iis the optimal cchoice. If awarrded the
co
ontract, DriveT
Tek should try the electronic method.
m
A subbsequent chapteer provides moore details
ab
bout interpretattion.
Formatting
F
the Tree Diagram
D
Th
he following stteps show how
w to use TreePlan and Excel ffeatures to form
mat the tree diaagram. You
may
m choose to use
u other formaats for your ow
wn tree diagram
ms.
13.
From th
he Edit menu, choose Move or
o Copy Sheet (or right-clickk the sheet tab aand choose
Move Or
O Copy from the shortcut menu).
m
In the low
wer left cornerr of the Move O
Or Copy
dialog box,
b check thee Create A Cop
py box, and clicck OK.
14.
On sheeet Original (2), if the probabiilities are not leeft-aligned, sellect cell H9. Prress
Ctrl+Sh
hift+T. In the TreePlan
T
Selecct dialog box, vverify that the ooption button ffor Cells
with Prrobabilities is selected,
s
and cllick OK. With all probabilityy cells selected,, click the
Align Left
L button.
15.
Select cell
c H12. Presss Ctrl+Shift+T. In the TreePllan Select dialoog box, verify tthat the
option button for Cellls with Partial Cash Flows is selected, and cclick OK. Withh all partial
cash flo
ow cells selected, if the cash flows are not lleft-aligned, cliick the Align L
Left button.
With th
hose cells still selected, choosse Home > Forrmat > Format Cells. In the F
Format
Cells dialog
d
box, click the Number tab. In the Cattegory list box,, choose Currenncy; type 0
(zero) for
f Decimal Pllaces; select $ in
i the Symbol llist box; selectt -$1,234 for N
Negative
Numbeers. Click OK.
16.5 Step-by-S
Step TreePlan Tu
Tutorial
207
Figure 16.25 Ex
xcel Format Ceells Dialog Box
x
16.
Select cell
c I12. Press Ctrl+Shift+T. In the TreePlaan Select dialogg box, verify thhat the
option button for Cellls with Rollbacck EVs/CEs is selected, and cclick OK. Withh all
rollback cells selected
d, choose Form
mat > Cells. Reepeat the Curreency formattingg of step 16
above.
17.
Select cell
c S3. Press Ctrl+Shift+T.
C
In
I the TreePlann Select dialogg box, verify thhat the
option button for Cellls with Termin
nal Values is seelected, and cliick OK. With aall terminal
value cells
c
selected, choose
c
Format > Cells. Repeaat the Currencyy formatting off step 16
above.
208
B C
F G
N O
$80,000
0.5
Electronic success
$150,000
0.5
Awarded contract
2
$250,000
$0
-$50,000
0.5
Electronic failure
$90,000
$90,000
$150,000
$30,000
-$120,000
$30,000
0.7
Magnetic success
Prepare proposal
-$50,000
$120,000
Try magnetic method
$0
$120,000
-$80,000
0.3
Magnetic failure
$20,000
$84,000
$0
-$120,000
1
0.5
Not awarded contract
$20,000
18.
$0
-$50,000
$0
-$50,000
$0
Double-click the Original (2) sheet tab (or right-click the sheet tab and choose Rename
from the shortcut menu), and enter Formatted. Save the workbook.
From the Edit menu, choose Move or Copy Sheet (or right-click the sheet tab and choose
Move Or Copy from the shortcut menu). In the lower left corner of the Move Or Copy
dialog box, check the Create A Copy box, and click OK.
20.
On sheet Formatted (2), select cell B1. Press Ctrl+Shift+T. In the TreePlan Select dialog
box, verify that the option button for Columns with Nodes is selected, and click OK.
With all node columns selected, choose Format > Cells > Number or Home > Format >
Format Cells > Number. In the Category list box, select Custom. Select the entry in the
Type edit box, and type ;;; (three semicolons). Click OK.
16.5 Step-by-S
Step TreePlan Tu
Tutorial
209
Figure 16.27 Ex
xcel Format Ceells Dialog Box
x
Select cell
c A27. Presss Ctrl+Shift+T. In the TreePllan Select dialoog box, verify tthat the
option button for Cellls with Rollbacck EVs/CEs is selected, and cclick OK. Withh all
rollback values selectted, choose Forrmat > Cells > Number or Hoome > Format > Format
Cells > Number. In th
he Category lisst box, select C
Custom. Scroll to the bottom oof the Type
list box
x, and select the three-semico
olon entry. Clicck OK.
22.
Printing
P
the
e Tree Diag
gram
23.
In the Name
N
Box list box, select TreeeDiagram (or select cells A11:S34).
24.
To prin
nt the tree diagrram from Exceel, with the treee diagram rangge selected, in E
Excel 2007
& 2010
0 & 2013, choo
ose Page Layou
ut > Print Areaa > Set Print Arrea. Then chooose Office
Button or File > Printt Preview > Page Setup. In thhe Page Setup ddialog box, clicck the Page
tab; forr Orientation cllick the option button for Lanndscape, and foor Scaling clickk the
option button for Fit To
T 1 Page Wid
de By 1 Page T
Tall. Click the H
Header/Footer tab; in the
Headerr list box selectt None, and in the Footer list box select Nonne (or select otther
appropriate headers and
a footers). Cllick the Sheet ttab; clear the ccheck box for G
Gridlines,
210
and clear the check box for Row And Column Headings. Click OK. Choose File > Print
and click OK.
25.
To print the tree diagram from Word, clear the check boxes for Gridlines and for Row
And Column Headings on Excels Page Setup dialog box Sheet tab. Select the tree
diagram range. In Excel 2007 & 2010 & 2013, choose Home > Paste > As Picture >
Copy as Picture. In the Copy Picture dialog box, click the option button As Shown When
Printed, and click OK. In Word select the location where you want to paste the tree
diagram and choose Edit > Paste.
$0
-$50,000
0.5
Electronic failure
$250,000
$30,000
-$120,000
0.7
Magnetic success
Prepare proposal
$120,000
Try magnetic method
$0
-$80,000
0.3
Magnetic failure
-$50,000
$0
-$120,000
0.5
Not awarded contract
-$50,000
$0
Alternative Model
If you want to emphasize that the time constraint forces DriveTek to use the mechanical approach
if they try either of the uncertain approaches and experience a failure, you can change the terminal
nodes in cells R13 and R23 to decision nodes, each with a single branch.
211
$0
-$50,000
0.5
Electronic failure
$250
0,000
$30,000
-$120,000
$0
0.7
Magnetic success
Prepare proposal
$120,000
Try magnetic method
$0
-$80,000
0.3
Magnetic failure
0
-$50,000
Use mechanical method
1
$0
$0
-$120,000
0.5
Not awarded contract
-$50,000
$0
Don't pre
epare proposal
$0
$0
16.6 EXPO
ONENTIA
AL UTILITY
Y AND TR
REEPLAN
N
TrreePlan's defau
ult is to rollbacck the tree using expected vallue (probabilityy-weighted aveerage) at an
ev
vent node and maximum
m
of successor valuees at a decisionn node. If you cchoose to use eexponential
uttilities in TreeP
Plan's Options dialog box, TrreePlan will reddraw the decisiion tree diagram
m with
fo
ormulas for com
mputing the utiility and certain
n equivalent att each node.
Figure 16.30 TrreePlan Option
ns Dialog Box
or the Maximizze option with exponential uttility, the rollbaack formulas aare U = AB*E
EXP(X/RT)
Fo
an
nd CE = -LN((A-EU)/B)*RT
T, where X and EU are cell reeferences. For tthe Minimize ooption with
ex
xponential utiliity, the formulaas are U = A-B
B*EXP(X/RT) and CE = LN(((A-EU)/B)*RT
T.
TrreePlan uses th
he name RT to represent the risk
r tolerance pparameter of thhe exponential utility
fu
unction. The naames A and B determine
d
scaling. If the nam
mes A, B, and R
RT don't exist oon the
worksheet
w
when
n you choose to
o use exponenttial utility, theyy are initially ddefined as A=1, B=1, and
RT=999999999
R
999. You can change
c
the valu
ues of the nam
mes using the Innsert > Name > Define
co
ommand.
212
16.7 ACKNOWLEDGEMENT
TreePlan was developed by Professor Michael R. Middleton at the University of San Francisco
(using the Excel 4 XLM macro programming language) and modified for use at Fuqua (Duke
University) by Professor James E. Smith. Mike Middleton rewrote portions using VBA during
2008-2014.