Results 1 to 2 of 2

Thread: Cash total probabilities

  1. #1

    Thread Starter
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051

    Cash total probabilities

    Let's say i have a list of products, and a price for each one.
    Let's assume the probability of a customer picking an item in addition to any others he may have picked previously is the same for all products.

    How would you go about calculating the probability of the total cost being a particular amount? Would the only way be a brute force algorithm?
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  2. #2
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: Cash total probabilities

    Off the top of my head, it seems that you would have to make a table of all possible totals, which, yes, would be brute force. I don't know how else to do it. If you something worth 1 cent, 10 cents, and $1000000, what are the odds that the total will be $1 if they are picking 5 items? Obviously, it is 0%.

    I could see maybe devising a method of saying it will be > or < X, but not exactly X.

    Sounds like brute force to me, but then, I give up easily.
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width