/All/
|
index
catalog
recent
update
post
|
/math/
/tech/
/misc/
/free/
/meta/
/test/
|
Guide
light
mod
Log
P5153
Mon 2022-08-01 19:00:13
link
reply
8764b28469db96c923d800bf5e655c65c7a497cd9b1435e8141c232be945c0d1.mp4
341 KiB 720x720x4.08s
x
While walking down the street one day, you notice people gathering around a woman playing the shell game. With each game, she places a ball under one of three cups, and then swaps the positions of pairs of cups several times before asking passersby which cup they think the ball is now under.
You have it on good authority that she is playing fairly, performing all the moves in plain sight, albeit too fast for you to track precisely which cups she’s moving. However, you do have one additional key piece of information — every time she swaps cups, one of them has the ball. In other words, she never swaps the two empty cups.
When it’s your turn to guess, you note which cup she initially places the ball under. Then, as she begins to swap cups, you close your eyes and count the number of swaps. Once she is done, you open your eyes again. What is your best strategy for guessing which cup has the ball?
P5331
Sat 2022-08-06 09:01:41
link
reply
e626cf90ee05cebd3b8741375b61d98466175871ccc89cfcd6ce7b8d2735ca7e.jpg
239 KiB 1200x1655
If we denote as P(100, n), P(010, n) and P(001, n) the probability that the shell ends in the position where the 1 is after n swaps, then we have the following recurrence relations P(100, n) = 1/2*P(010, n-1)+1/2*P(001, n-1) and similarly P(010, n) = 1/2*P(100, n-1)+1/2*P(001, n-1) and P(001, n) = 1/2*P(100, n-1)+1/2*P(010, n-1).
Writting the first few cases in a grid, one gets the following:
Swaps 100 010 001
0 1/2^0 0/2^0 0/2^0
1 0/2^1 1/2^1 1/2^1
2 2/2^2 1/2^2 1/2^2
3 2/2^3 3/2^3 3/2^3
4 6/2^4 5/2^4 5/2^4
5 10/2^5 11/2^5 11/2^5
6 22/2^6 21/2^6 21/2^6
7 42/2^7 43/2^7 43/2^7
8 86/2^8 85/2^8 85/2^8
The denominators are nothing but 2^n.
For n even, notice that the numerator is the previous one + 4^((n/2)-1), so the nth term for "100" is 1+sum from k=0 to (n/2)-1 of 4^k = (4^(n/2)+1)/3+1=(2^n+1)/3+1 and similarly for "010" and "001" it's (2^n-1)/3.
For n odd, the rule is similar, the numerator is the previous one + 2*4^((n-1)/2-1), so the nth term for "100" is sum from k=0 to (n-1)/2-1 of 2*4^k = 2*(4^((n-1)/2)-1)/3 = 2*(2^(n-1)-1)/3 and similarly for "010" and "001" it's 2*(2^(n-1)-1)/3+1.
Using induction + the recurrence it can be seen that this is indeed true.
Therefore, for n even it's best to select the cup that initially had the shell, and for n odd, any of the others.
Referenced by:
P5332
P5344
P5332
Sat 2022-08-06 09:05:47
link
reply
6c962bf3f777975da16c5f242adc0bfedd3e46cbef7534c873b87c8b3e0a071f.jpg
214 KiB 1800x1062
P5331
Forgot to mention that I was assuming one starts at position "100" without loss of generality.
Referenced by:
P5333
P5333
Sat 2022-08-06 09:24:21
link
reply
P5332
*of joviality.
P5344
Sat 2022-08-06 14:38:03
link
reply
P5331
Looks right except for a small sign error here:
>1+sum from k=0 to (n/2)-1 of 4^k = (4^(n/2)+1)/3+1=(2^n+1)/3+1
should be (4^(n/2)-1)/3+1=(2^n-1)/3+1
Referenced by:
P5345
P5345
Sat 2022-08-06 14:48:27
link
reply
2d5b000c74dc8bfc1c83e8dea9388b6d2c7439a0d42ffb8940dc86c81bd4c7ab.jpg
201 KiB 1200x1659
P5344
Yeah, it's fine on my notes I just fugged up when transcribing it. Other case it's fine so I guess it proves I can sum a geometric series.
P5388
Sun 2022-08-07 01:30:34
link
reply
What if only adjacent cups get swapped?
Referenced by:
P5728
P5728
Wed 2022-08-10 18:29:14
link
reply
P5388
Do the leftmost and the rightmost count as adjacent? i.e. they're arranged in a circle.
Referenced by:
P5736
P5741
P5736
Wed 2022-08-10 20:51:06
link
reply
P5728
You can arrange the cups in a circle to spice up and brand your shell game. Three cups would be a pretty uninspiring approximation of a circle though.
P5741
Wed 2022-08-10 21:45:34
link
reply
P5728
>Do you mean the original problem?
That anon most likely asked the question because the odds evolve differently when you can only move the ball from A to B, from B to A or C and from C to B.
In that case the chance of the ball being at B constantly flips between 0% and 100%, while the chances of it being at A or C constantly flip between 0% and 50%.
Interestingly, it's less interesting than freely moving the ball between A, B and C.
Mod Controls:
x
Reason: