tag:blogger.com,1999:blog-264226589944705290.post1123062333307296126..comments2021-12-14T05:53:12.175-08:00Comments on God Plays Dice: How to extract bits from coin flipsMichael Lugohttp://www.blogger.com/profile/15671307315028242949noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-264226589944705290.post-37094634324191130322009-12-03T20:46:54.345-08:002009-12-03T20:46:54.345-08:00[url=http://community.bsu.edu/members/buy+online+V...[url=http://community.bsu.edu/members/buy+online+Viagra.aspx]how to get Viagra prescription[/url]<br /><br />[url=http://eterporno.ru/web-sayty-znakomstv.php]web сайты знакомств[/url]<br />[url=http://eterporno.ru/loveplanet-ru-znakomstva.php]loveplanet ru знакомства[/url]<br />[url=http://pc.eterporno.ru/index.php]интимсити ру сайт[/url]<br />[url=http://pc.eterporno.ru/blyadi-piter-vhod.php]бляди питер вход[/url]<br /><br />[url=http://pv.eterporno.ru/gei-prostitutki-ostavili-soobscheniy.php]геи проститутки оставили сообщений[/url]<br />[url=http://pv.eterporno.ru/dosug-almaty-transseksual.php]досуг алматы транссексуал[/url]<br /><br />[url=http://px.eterporno.ru/dvorovaya-shluha.php]дворовая шлюха[/url]<br />[url=http://px.eterporno.ru/g-marks-znakomstva.php]г маркс знакомства[/url]<br />[url=http://pz.eterporno.ru/index.php]знакомства секс пары доска[/url]<br />[url=http://pz.eterporno.ru/hochu-seks-piter.php]хочу секс питер[/url]Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-264226589944705290.post-59340902652788682502008-04-29T16:06:00.000-07:002008-04-29T16:06:00.000-07:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-264226589944705290.post-54368559918161287402008-02-04T18:18:00.000-08:002008-02-04T18:18:00.000-08:00There's a fairly simple scheme that gives you unif...There's a fairly simple scheme that gives you uniform, random samples from 0 to n-1, given a loaded die/coin/etc. (Well, it's simple if you don't handle the edge cases; I assume that n is not too big, and that the source of randomness is not too unfair.)<BR/><BR/>Start by taking 1000 samples from your possibly-biased distribution. We require that samples are independent, and that each sample has the same discrete probability distribution. We do not require that we know this probability distribution ahead of time (we do not even require that we know ahead of time how many events are possible; if you're flipping a coin, and writing down a sequence of H and T, and the coin lands on its edge, just write down an E and continue.)<BR/><BR/>Compute the number of permutations of this 1000-element multiset; call this number P. Consider some standard ordering of these permutations, and compute the index of our particular 1000-element sequence in this ordering; call this index k (using a 0-based index, so 0<=k<P).<BR/><BR/>Now, repeat these steps:<BR/>while k < n*floor(P/n):<BR/> output mod(k, n)<BR/> k = floor(k/n)<BR/> P = floor(P/n)<BR/><BR/>Once this loop has terminated, start over with another 1000 samples.<BR/><BR/>I believe that this does a very good job of extracting bits from the input samples; and if you replace 1000 by J, then as J goes to infinity the process approaches optimality. Of course, the approach from the notes is much nicer, in that you are likely to start getting bits immediately, instead of having to wait for 1000 samples.Unknownhttps://www.blogger.com/profile/03381446726099887645noreply@blogger.comtag:blogger.com,1999:blog-264226589944705290.post-32580597926042972012008-02-04T06:28:00.000-08:002008-02-04T06:28:00.000-08:00Hmm... It looks like it will take a lot of flips i...Hmm... It looks like it will take a lot of flips if your coin is really loaded.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-264226589944705290.post-91295031344005311002008-02-03T13:05:00.000-08:002008-02-03T13:05:00.000-08:00'Can you get a fair roll from a loaded die?'But ho...'Can you get a fair roll from a loaded die?'<BR/><BR/>But how do you know the dice are or not loaded? How long a data stream do you need? I assume the length would be different for different problems.<BR/><BR/>I'm playing craps on Flatbush Ave. how long a data stream would I need to believe the dice are loaded; also can I use this to hide data? i want to send a message to Olga can I use this to hide the message in what appears to be random?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-264226589944705290.post-23827004803293184312008-02-03T10:59:00.000-08:002008-02-03T10:59:00.000-08:00Clem,Mitzenmacher actually brings that question up...Clem,<BR/><BR/>Mitzenmacher actually brings that question up at the end of his notes. <BR/>The things one immediately thinks of don't work -- the answers for the "coin" version of this problem that I know of basically pair up sequences that have the same probability of occurring (which have to be permutations of each other, since we're assuming don't know how they die is loaded) and call one "0" and the other "1" -- for example HT and TH are paired, or HHTT and TTHH.<BR/><BR/>With a six-sided die the following scheme suggests itself: roll the die three times. If any two of the three rolls are the same, ignore. If all three are different, then look at the "pattern" formed by the results -- that it, label the smallest one 1, the middle one 2, and the largest one 3. There are six such patterns, and they're all equally likely; assign each of them to one of the numbers 1 through 6. But I don't see how to generalize this to the multi-level scheme that Mitzenmacher writes about for coins, and it also seems to depend too strongly on the fact that 6 = 3!. Ideally I'd want a scheme that works for arbitrary-sided dice.Michael Lugohttps://www.blogger.com/profile/15671307315028242949noreply@blogger.comtag:blogger.com,1999:blog-264226589944705290.post-44838510294482935432008-02-03T10:53:00.000-08:002008-02-03T10:53:00.000-08:00To me, the next obvious question is: Can you get a...To me, the next obvious question is: Can you get a fair roll from a loaded die? How? Or a fair probability distribution from a pair of (possibly differently) loaded dice?clemhttps://www.blogger.com/profile/12580289364384467534noreply@blogger.comtag:blogger.com,1999:blog-264226589944705290.post-73750774373874671722008-02-03T09:51:00.000-08:002008-02-03T09:51:00.000-08:00How does one decide something is not random? I hav...How does one decide something is not random? <BR/><BR/>I have a Dilbert cartoon taped to my office door, where someone points to a guy saying 'nine, nine, nine, .....' Dilbert asks 'Is that random?' and is answered 'That's the problem with randomness you never know.'<BR/><BR/>So do you apply these algorithms assuming the data isn't random? Is there a way to use this as a test for randomness? You got data and you want to know if someone has messed with it.Anonymousnoreply@blogger.com