All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
Even preferred? (Posted on 2024-03-06) Difficulty: 3 of 5
Two integers x and y are chosen at random in the interval (0, 1,000,000) with respect to the uniform distribution.

What is the probability that the closest integer to x/y is even?

No Solution Yet Submitted by Ady TZIDON    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Randomized | Comment 2 of 4 |
Since 0 is included, some cases will occur where 0 is in the denominator.
Also, it is unclear how ratios ending in .5 should be treated: traditional rounding says to round up.  But 0.5 is exactly the same distance from 0 or from 1.  The problem doesn't ask for classing rounding, it asks for "the closest integer".  Anyway, both interpretations are covered.

So I did a randomization (1 million iterations) and kept track of four categories:
  Even,   Odd,    Half, DivideByZero
464837 535156   7           0

Even / (Even + Odd) = 0.4648402538817772
(Even + Half) / (Even + Half + Odd) = 0.464844

  Posted by Larry on 2024-03-06 14:43:58
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (0)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information