Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Algorithms
  4. Probability

Probability

Scheduled Pinned Locked Moved Algorithms
algorithmshelplearning
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 12244972
    wrote on last edited by
    #1

    Hi, I am learning probability and need a good working algorithm for selecting between two options successfully. Any help will be appreciated. Please post the algorithm in equation form. Thanks.

    D A 2 Replies Last reply
    0
    • M Member 12244972

      Hi, I am learning probability and need a good working algorithm for selecting between two options successfully. Any help will be appreciated. Please post the algorithm in equation form. Thanks.

      D Offline
      D Offline
      Daniel Pfeffer
      wrote on last edited by
      #2

      1. Remove coin from pocket 2. Flip coin 3. Examine coin. If it fell "heads" up, choose option 1. If it fell "tails" up, choose option 2. 4. Repeat as necessary. The case of the coin falling on the side is left to the student

      If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

      1 Reply Last reply
      0
      • M Member 12244972

        Hi, I am learning probability and need a good working algorithm for selecting between two options successfully. Any help will be appreciated. Please post the algorithm in equation form. Thanks.

        A Offline
        A Offline
        Afzaal Ahmad Zeeshan
        wrote on last edited by
        #3

        (Apart from question being unclear) Probability is a "chance", it does not guarantee 100% "successful" answer. So even if you could get an algorithm it won't guarantee to be correct. The accuracy of answer is 100%, only when there is one answer. In two options, there is a probability of 50/50 (50%) and so on.

        answer := 1/n

        Where n is the number of answers; options. The example of "coin flip" is a good way to demonstrate this. You flip a coin and your friend selects one. That is the probability. It can be correct or it can be false.

        The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups