![]() |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#111
|
||||
|
||||
|
Quote:
Well done!
__________________
Catch me in your home town: My tour schedule's posted at shwood.com |
|
#112
|
|||
|
|||
|
i learned this trick when i was 14 and im 17 now, but i did this over the internet in chat rooms. just get the other person to pull out a deck of cards, shuffle, name two card numbers between ace and king (involves 1-10). then tell them that the two cards will be side by side when they look through the deck. the results are amazing because they cannot figure out how it happened when u never touched the deck or even seen what they were doing
|
|
#113
|
|||
|
|||
|
Since the original idea seems to pay only about 48 %, some variation might be in order. One mentioned above was removing four cards of one kind and sticking them in one by one, eliminating the chance that they follow on subsequent spots.
Another simple idea would be to add following cards of the same kind to the success column. For example, if you choose "Aces and Kings following each other", include "Ace, Ace" as well as "King, King" in the winning bet. That should definitely move the probability over 50 %. |
|
#114
|
|||
|
|||
|
Quote:
1. The shuffle function used to shuffle cards on positions 0-51 never leaves cards from positions 1-51 on their original position, but sometimes it leaves card from position 0 where it was. It clearly does not generate a random permutation of cards, since all cards should have a chance to stay where they were. 2. Function shuffle uses rand()%n to generate pseudo-random numbers in range [0,(n-1)]. rand() generates a pseudo-random number from range [0,32767] or [0,2147483647], depending on the system. Even if we were lucky to run the system with range [0,2147483647], the probability that rand()%52 is 0 is (1+2E-8) of the probability that it is 51, i.e., the generated numbers are not uniformly distributed over interval [0,51]. The error 2E-8 might look small, but I assume it is worthless to do 1E10 simulations with error 2E-8 introduced in pseudo-random generator. Last edited by klokan83 : 04-05-2012 at 03:53 PM. |
|
#115
|
|||
|
|||
|
Quote:
Many people here get result close to 61.5% since they mistake the problem question: "What is the probability that there is at least one such pair of successive cards?" with different question: "What is the expected number of such pairs of successive cards?" The trick is that in some situations winning pair appears more than once in the deck, but that does not mean i won twice in the original game. One could change the rules: If there is none such pair I buy beer to the other person, otherwise I get the number of beers equal to the count of the pairs. I will still be giving an average of 0.514 beer per game, but I will be receiving the average of 0.615 beers per game (because you might win up to 7 beers) so now it is worth a try. Another modification that comes into my mind is that you can play the same game with 2 decks of cards (so there are 8 Aces... = 104 cards in total). Then the winning probability rises to 73%. |
|
#116
|
|||
|
|||
|
Hi all, I make the chance of winning 49.3%.
Now I agree in principle with Dr Grime, the chance of 'winning' isn't over 50% as claimed in the Scam School video, but I disagree with his 48.3% figure, I make it 1 percentage point higher at 49.3% So who is correct (or rather where am I going wrong)? Well, here is my explanation. Firstly, the only way (in my mind) of calculating this is to work out the chance of losing, what I'm am going to do is choose the 'Jack' and the 'King' for my example. If we concentrate on the Jacks, and mentally go through the deck arriving at each one and working out the chances of losing at each stage. There are 8 stages as each of the 4 Jacks could have a King immediately before it or immediately after it to win. Here is my complete working..... ![]() And now my stage-by-stage explanation for it... King immediately precedes the 1st Jack At the first Jack, the chance of a King NOT being before it is 44 in 48, since we can eliminate the four Jacks as possibilities because you've stopped on the first one, leaving 48 possible cards left. Then there are four Kings in which you'd win leaving 44 losing cards. Hence a 44/48 chance of a loss at this stage. At every stage the number of losing cards is the number of possible cards minus 4. King immediately follows the 1st Jack The chance a King won't appear right after the first Jack is 47 in 51, since we can eliminate the Jack you are looking at from the total possibilities but the next three Jacks are included as they could follow it if you have two Jacks in a row, leaving 47 losing cards out of the 51 possible cards. King immediately precedes the 2nd Jack On the 2nd Jack you come to, the chance a King isn't before it is 45 in 49, it's the same reasoning as the first Jack only this time the 'before' losing possibility changes as you need to add back in the possibility you have two Jacks in a row which obviously isn't possible on the first Jack. From this point forward the odds of a King immediately preceding a Jack will stay at 45 in 49 (as you can discount the Jacks you haven't got to yet and the ones you've gone past except the last). King immediately follows the 2nd Jack The chance a King won't immediately follow the 2nd Jack is 46 in 50, since the first 2 Jacks have to be eliminated from the possibilities leaving 50 cards, then we again discount the winning 4 Kings to get the number of losing cards. King immediately precedes the 3rd Jack As stated this is always 45 in 49 now, this time we discount the 1st, 3rd and 4th Jacks from the possibilities (the 2nd Jack could precede the 3rd though) leaving again 49 cards, with 45 of them losing. King immediately follows the 3rd Jack The chance a King won't immediately follow the 3rd Jack is also 45 in 49 (since the first 3 Jacks aren't available leaving 49 possible cards, and we minus the four winning 4 Kings to get the 45 losers. King immediately precedes the 4th Jack Again this is 45 in 49 now, this time we discount the 1st, 2nd and 4th Jacks from the possibilities (the 3rd Jack could precede the 4th though) leaving again 49 cards, with 45 of them losing. King immediately follows the 4th Jack Finally the chance of the 4th Jack NOT having a King right after it is 44 in 48, since it can't any of the 4 Jacks as there are none left to follow it leaving 48 possible cards, with 44 of them losers. So.. the final equation to work out the odds of losing all 8 stages is this... (44/48) * (47/51) * (45/49) * (46/50) * (45/49) * (45/49) * (45/49) * (44/48) = 50.68%. Thus by definition the chance of winning the game is 49.32% Do you agree with me, or the professor? Maybe neither of us are right? |
|
#117
|
|||
|
|||
|
Oops I went wrong, when looking for the first Jack my calculations always assume there is at least one card before it, and the last Jack one card after. This isn't true, 1 in 13 the first card in the deck would be a Jack and also 1 in 13 time it would be the last.
So I updated my formula to take that into account. Basically I now add 100% to 12 times the probably of losing when you can then divide by 13 to get a mean losing probability for that 'stage' ((1+((44/48)*12))/13) * (47/51) * (45/49) * (46/50) * (45/49) * (45/49) * (45/49) * ((1+((44/48)*12))/13) = 0.513874458 That means a 48.6125542% chance of winning. Last edited by estebanrey : 02-25-2013 at 12:58 AM. |
|
#118
|
|||
|
|||
|
Looks like "mathemagics".... If someone says they can read my mind... but then says I need to pick a number or a card and go thru an addition, subtraction, multiplication routine... I ask them to read my mind now... "go fuck yourself"
Last edited by hellhound : 05-23-2013 at 02:35 AM. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
|||||