Author Topic: Quick probability question  (Read 3644 times)

0 Members and 2 Guests are viewing this topic.

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Quick probability question
« on: March 26, 2011, 05:20:48 am »
OK, I've been going at this for a while with no luck. Say you have some number N between 0 and 100 inclusive. Given two numbers A and B picked at random from 0 to 99 inclusive, what are the odds their average is less than N?

Also, can anyone guess why someone would need to know this?
See you, space cowboy...

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Quick probability question
« Reply #1 on: March 26, 2011, 05:42:00 am »
Well let's break it down.

Basic probability states that...
P(A<N) = N/100
P(B<N) = N/100
P(A<N and B<N) = P(A<N)*P(B<N) = (N/100)^2
That's all easy. But that's not what we want to know.

In order for the average of A and B to be less than N, A+B must less than 2N. (again, simple)
So we can safely say P(A+B<2N) is the probability that the average of the two is less than 2N.

In order for A+B<2N to be true, A must be less than 2N and B must be less than 2N-A

In that case, basic probabiliy also states that...
P(A<2N) = 2N/100
P(B<2N-A) = (2N-A)/100
P(A<2N and B<2N-A) = (2N/100)*((2N-A)/100) = (4N^2-2NA)/1000

And there's your answer. Unless there's an error in my math, the probability that the average of A and B is less than N is (4N^2-2NA)/1000.


Edit: Just to clarify, A is the larger of the two numbers.
« Last Edit: March 26, 2011, 05:52:18 am by ZippyDee »
There's something about Tuesday...


Pushpins 'n' stuff...


Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: Quick probability question
« Reply #2 on: March 26, 2011, 06:46:00 am »
Wow, thanks!
See you, space cowboy...

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Quick probability question
« Reply #3 on: March 26, 2011, 06:46:25 am »
Nooooooooooo problem! :)

Glad I could help.
There's something about Tuesday...


Pushpins 'n' stuff...


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Quick probability question
« Reply #4 on: March 26, 2011, 07:24:05 am »
Nice explanation there ZippyDee :D

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Quick probability question
« Reply #5 on: March 26, 2011, 07:29:47 am »
Thanks :D I always try my best to explain things thoroughly. Makes it easier when you don't have to keep on going back to things later.
There's something about Tuesday...


Pushpins 'n' stuff...


Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Quick probability question
« Reply #6 on: March 26, 2011, 11:37:02 am »
wow, ZippyDee is smart... who knew?? j/k, so I'm not fully following how you solved it, but I never took a statistics class either.  I'm guessing you did?

Also, 42 posts ZippyDee!

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Quick probability question
« Reply #7 on: March 28, 2011, 06:28:36 am »
Truthfully, no. I never took a stat class (though my Alg II teacher was also the APSTAT teacher)...
We did have a small unit on basic probability in that class too, but I figured this out mostly from logic. That's all probability is, anyway. I just looked at it and said, "What conditions must be true in order for this to be true?" and then, "What other conditions must be true in order for each condition to be true?" Using that thought process, I broke it down until it was at a point that was simple enough to understand and find an equation for.
There's something about Tuesday...


Pushpins 'n' stuff...