Coder Social home page Coder Social logo

Decision Tree: Issue with cost about radiant HOT 7 CLOSED

vnijs avatar vnijs commented on July 20, 2024
Decision Tree: Issue with cost

from radiant.

Comments (7)

vnijs avatar vnijs commented on July 20, 2024

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.

vnijs avatar vnijs commented on July 20, 2024

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

cost_example.pdf

from radiant.

ezriah avatar ezriah commented on July 20, 2024

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.

ezriah avatar ezriah commented on July 20, 2024

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.

vnijs avatar vnijs commented on July 20, 2024

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.

ezriah avatar ezriah commented on July 20, 2024

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.

vnijs avatar vnijs commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.