{"id":1485,"date":"2011-03-18T18:15:12","date_gmt":"2011-03-18T16:15:12","guid":{"rendered":"http:\/\/djalil.chafai.net\/blog\/?p=1485"},"modified":"2011-03-18T18:16:51","modified_gmt":"2011-03-18T16:16:51","slug":"uniform-bits","status":"publish","type":"post","link":"https:\/\/djalil.chafai.net\/blog\/2011\/03\/18\/uniform-bits\/","title":{"rendered":"Uniform bits"},"content":{"rendered":"<p style=\"text-align: justify;\">For any \\( {u\\in[0,1]} \\), let us consider a binary expansion<\/p>\n<p style=\"text-align: center;\">\\[ u=0.b_1b_2\\ldots=\\sum_{n=1}^\\infty b_n2^{-n} \\]<\/p>\n<p style=\"text-align: justify;\">where \\( {b_1,b_2,\\ldots} \\) belong to \\( {\\{0,1\\}} \\) (bits). This expansion is not unique when \\( {u} \\) is rational, e.g.<\/p>\n<p style=\"text-align: center;\">\\[ 0.011111\\cdots=0.10000\\cdots. \\]<\/p>\n<p style=\"text-align: justify;\">If \\( {U} \\) is a uniform random variable on \\( {[0,1]} \\) then almost surely, \\( {U} \\) is irrational and its binary expansion is unique with \\( {b_1,b_2,\\ldots} \\) independent uniform random variables on \\( {\\{0,1\\}} \\):<\/p>\n<p style=\"text-align: center;\">\\[ \\mathbb{P}(b_1=\\varepsilon_1,\\ldots,b_n=\\varepsilon_n)=2^{-n} \\]<\/p>\n<p style=\"text-align: justify;\">for any \\( {n\\geq1} \\) and every \\( {\\varepsilon_1,\\ldots,\\varepsilon_n} \\) in \\( {\\{0,1\\}} \\). Conversely, if \\( {b_1,b_2,\\ldots} \\) are independent uniform random variables on \\( {\\{0,1\\}} \\) then the random variable<\/p>\n<p style=\"text-align: center;\">\\[ U:=\\sum_{n=1}^\\infty b_n2^{-n} \\]<\/p>\n<p style=\"text-align: justify;\">follows the uniform law on \\( {[0,1]} \\). Actually the odd\/even separation map<\/p>\n<p style=\"text-align: center;\">\\[ U=\\sum_{n=1}^\\infty b_n2^{-n}\\mapsto (V_1,V_2):=\\left(\\sum_{n=1}^\\infty b_{2n}2^{-n},\\sum_{n=1}^\\infty b_{2n-1}2^{-n}\\right). \\]<\/p>\n<p style=\"text-align: justify;\">allows to extract from \\( {U} \\) a couple \\( {(V_1,V_2)} \\) of independent uniform random variables on \\( {[0,1]} \\). More generally, one can extract from \\( {U} \\) a countable family \\( {{(W_n)}_{n\\in\\mathbb{Z}}} \\) of independent uniform random variables on \\( {[0,1]} \\) by considering the diagonals (or the columns, or the rows) in<\/p>\n<p style=\"text-align: center;\">\\[ \\begin{array}{ccccc} b_1 & b_2 & b_5 & b_{10} & \\cdots \\\\ b_4 & b_3 & b_6 & b_{11} & \\cdots \\\\ b_9 & b_8 & b_7 & b_{12} & \\cdots \\\\ b_{16} & b_{15} & b_{14} & b_{13} & \\cdots \\\\ \\vdots & \\vdots & \\vdots & \\vdots & \\ddots \\end{array} \\]<\/p>\n<p style=\"text-align: justify;\">This reduces the simulation of any law to the simulation of the Bernoulli law.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For any \\( {u\\in[0,1]} \\), let us consider a binary expansion \\[ u=0.b_1b_2\\ldots=\\sum_{n=1}^\\infty b_n2^{-n} \\] where \\( {b_1,b_2,\\ldots} \\) belong to \\( {\\{0,1\\}} \\) (bits).&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/djalil.chafai.net\/blog\/2011\/03\/18\/uniform-bits\/\">Continue reading<span class=\"screen-reader-text\">Uniform bits<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":21},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/1485"}],"collection":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/comments?post=1485"}],"version-history":[{"count":5,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/1485\/revisions"}],"predecessor-version":[{"id":1490,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/1485\/revisions\/1490"}],"wp:attachment":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/media?parent=1485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/categories?post=1485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/tags?post=1485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}