Comments (7)
Can you share an example? 'cost' is currently only for use in decision nodes (e.g., buy a research study and pay $X).
from radiant.
Here is a simple example with a cost. An agent costs $1000, is it worth it given the difference in payoffs?
name: Cost example
type: decision
Hire agent:
cost: 1000
type: chance
Low pay:
p: 0.3
payoff: 2000
High pay:
p: 0.7
payoff: 8000
No agent:
type: chance
Low pay:
p: 0.7
payoff: 2000
High pay:
p: 0.3
payoff: 8000
from radiant.
Here's the decision tree I'm working on. The later nodes don't inherit the
cost:
Name: Survey
type: decision
Survey:
cost: 30
type: chance
Unfavorable:
p: .7
payoff: 0
type: decision
Drill:
cost: 100
type: chance
oil:
p: .143
payoff: 800
dry:
p: .857
payoff: 0
Sell:
payoff: 90
Favorable:
p: .3
payoff: 0
type: decision
Drill:
cost: 100
type: chance
oil:
p: .5
payoff: 800
dry:
p: .5
payoff: 0
Sell:
payoff: 90
NoSurvey:
type: decision
Drill:
cost: 100
type: chance
oil:
p: .25
payoff: 800
dry:
p: .75
payoff: 0
Sell:
payoff: 90
On Wed, Nov 18, 2015 at 4:22 PM, Vincent Nijs [email protected]
wrote:
Can you share an example? 'cost' is currently only for use in decision
nodes (e.g., buy a research study and pay $X).—
Reply to this email directly or view it on GitHub
#41 (comment).
from radiant.
In this example, the payoff for hiring an agent with a cost of 1000 and a
payoff of 2000 should ultimately result in a payoff of 1000 (2000-1000).
On Wed, Nov 18, 2015 at 4:30 PM, Vincent Nijs [email protected]
wrote:
Here is a simple example with a cost. An agent costs $1000, is it worth it
given the difference in payoffs?name: Cost exampletype: decisionHire agent:
cost: 1000
type: chance
Low pay:
p: 0.3
payoff: 2000
High pay:
p: 0.7
payoff: 8000No agent:
type: chance
Low pay:
p: 0.7
payoff: 2000
High pay:
p: 0.3
payoff: 8000—
Reply to this email directly or view it on GitHub
#41 (comment).
from radiant.
That is not how it works (i.e., later nodes do indeed not 'inherit' cost). Rather, the cost is taken into account appropriately when you fold back the tree. I think it would be confusing if you put in a payoff for a terminal of say, 2000, but the tree shows 1000. That said, it would be nice to see where a cost is deducted. There are something in-the-works that will address that.
In sum, the tree is correct. It is just not displayed as had you expected. In fact, I have not seen tools that display output as you suggest. If you have seen such examples please let me know.
from radiant.
My operations research textbook (Introduction to Operations Research by
Hillier and Lieberman) teaches it that way. They use the same example but
perform analysis with Analytics Solver Platform, an Excel plugin, which
gives the results in the terminal nodes as the payoff minus the cumulative
costs. Thanks for such a quick response. Let me know if you'd like more
details.
On Wed, Nov 18, 2015 at 5:32 PM, Vincent Nijs [email protected]
wrote:
That is not how it works (i.e., later nodes do indeed not 'inherit' cost).
Rather, the cost is taken into account appropriately when you fold back the
tree. I think it would be confusing if you put in a payoff for a terminal
of say, 2000, but the tree shows 1000. That said, it would be nice to see
where a cost is deducted. There are something in-the-works that will
address that.In sum, the tree is correct. It is just not displayed as had you expected.
In fact, I have not seen tools that display output as you suggest. If you
have seen such examples please let me know.—
Reply to this email directly or view it on GitHub
#41 (comment).
from radiant.
Unfortunately I don't have the book and don't know the plugin. I expect the plugin does not, however, automatically update the payoff for the terminal nodes. I assume the user provides the final payoff, adjusted for cost. If that is not a correct assumption could you perhaps send me the xls file and I'll look up the plugin.
from radiant.
Related Issues (20)
- Error: package ‘radiant’ is available as a source package but not as a binary HOT 3
- Geom_line color HOT 4
- lost the sync of my fork HOT 3
- Package ‘radiant’ was removed from the CRAN repository. HOT 8
- avoid MathJaxR dependency HOT 9
- Chi- Squared distribution Mean HOT 3
- Add URL param that would cause the session to NOT be saved HOT 1
- trouble loading radiant HOT 3
- logo HOT 4
- Dropdown variable list doesnt showup in the Visualize option HOT 1
- make my bar graphs have manually selected colors HOT 3
- r 3.4 HOT 23
- Download button doesn't work properly HOT 2
- Readme has git merge conflict markers HOT 2
- Command options not generating when added to report HOT 4
- Regression - Center Option HOT 4
- Training Variable: same seed, different outputs HOT 3
- simulater for poisson restrict lambda to integer; result is constant 0 for lambda in (0,1) HOT 1
- How to set directory for load the data? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radiant.