{"id":80,"date":"2018-10-21T16:56:08","date_gmt":"2018-10-21T16:56:08","guid":{"rendered":"https:\/\/www.allendowney.com\/blog\/?p=80"},"modified":"2018-11-01T14:13:50","modified_gmt":"2018-11-01T14:13:50","slug":"the-game-of-ur-problem","status":"publish","type":"post","link":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/","title":{"rendered":"The Game of Ur problem"},"content":{"rendered":"<p>Here&#8217;s a probability puzzle to ruin your week.<\/p>\n<p>In the <a href=\"https:\/\/www.yourturnmyturn.com\/java\/ur\/index.php\">Royal Game of Ur<\/a>, players advance tokens along a track with 14 spaces. To determine how many spaces to advance, a player rolls 4 dice with 4 sides. Two corners on each die are marked; the other two are not. The total number of marked corners &#8212; which is 0, 1, 2, 3, or 4 &#8212; is the number of spaces to advance.<a href=\"https:\/\/en.wikipedia.org\/wiki\/Royal_Game_of_Ur\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/1\/1d\/British_Museum_Royal_Game_of_Ur.jpg\" width=\"296\" height=\"236\" \/><\/a><\/p>\n<p>For example, if the total on your first roll is 2, you could advance a token to space 2. If you roll a 3 on the next roll, you could advance the same token to space 5.<\/p>\n<p>Suppose you have a token on space 13. How many rolls did it take to get there?<\/p>\n<p>Hint: you might want to start by computing the distribution of k given n, where k is the number of the space and n is the number of rolls.\u00a0 Then think about the prior distribution of n.<\/p>\n<p>I&#8217;ll post a solution later this week, but I have to confess: I believe my solution is correct, but there is still part of it I am not satisfied with.<\/p>\n<p>[UPDATE November 1, 2018]<\/p>\n<p>Here&#8217;s the <a href=\"https:\/\/twitter.com\/AllenDowney\/status\/1054053993566081026\">thread on Twitter<\/a> where a few people discuss this problem.<\/p>\n<p>And\u00a0<a href=\"http:\/\/nbviewer.jupyter.org\/github\/AllenDowney\/ThinkBayes2\/blob\/master\/solutions\/game_of_ur_soln.ipynb?flush=true\">here&#8217;s my solution<\/a>.\u00a0 As you will see there are still some unresolved questions.<\/p>\n<p>Here&#8217;s <a href=\"https:\/\/nbviewer.jupyter.org\/gist\/AustinRochford\/623c205a761d501e6a01b6fda0fad7d4\">another solution<\/a> from <a href=\"https:\/\/twitter.com\/AustinRochford\">Austin Rochford<\/a>, which estimates the posterior distribution by simulation.<\/p>\n<p>And here&#8217;s a solution from <a href=\"https:\/\/twitter.com\/dovgalec\">vlad<\/a>, also based on simulation, using WebPPL:<\/p>\n<div class=\"oembed-gist\"><script src=\"https:\/\/gist.github.com\/usptact\/94b26d20fea8afe19058f9f76b4d0896.js\"><\/script><noscript>View the code on <a href=\"https:\/\/gist.github.com\/usptact\/94b26d20fea8afe19058f9f76b4d0896\">Gist<\/a>.<\/noscript><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a probability puzzle to ruin your week. In the Royal Game of Ur, players advance tokens along a track with 14 spaces. To determine how many spaces to advance, a player rolls 4 dice with 4 sides. Two corners on each die are marked; the other two are not. The total number of marked corners &#8212; which is 0, 1, 2, 3, or 4 &#8212; is the number of spaces to advance. For example, if the total on your&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-80","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The Game of Ur problem - Probably Overthinking It<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Game of Ur problem - Probably Overthinking It\" \/>\n<meta property=\"og:description\" content=\"Here&#8217;s a probability puzzle to ruin your week. In the Royal Game of Ur, players advance tokens along a track with 14 spaces. To determine how many spaces to advance, a player rolls 4 dice with 4 sides. Two corners on each die are marked; the other two are not. The total number of marked corners &#8212; which is 0, 1, 2, 3, or 4 &#8212; is the number of spaces to advance. For example, if the total on your... Read More Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/\" \/>\n<meta property=\"og:site_name\" content=\"Probably Overthinking It\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-21T16:56:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-01T14:13:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/1\/1d\/British_Museum_Royal_Game_of_Ur.jpg\" \/>\n<meta name=\"author\" content=\"Allen B. Downey\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@AllenDowney\" \/>\n<meta name=\"twitter:site\" content=\"@AllenDowney\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Allen B. Downey\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/\"},\"author\":{\"name\":\"Allen B. Downey\",\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/#\\\/schema\\\/person\\\/4e5bfb2e9af6c3446cb0031a7bf83207\"},\"headline\":\"The Game of Ur problem\",\"datePublished\":\"2018-10-21T16:56:08+00:00\",\"dateModified\":\"2018-11-01T14:13:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/\"},\"wordCount\":258,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/#\\\/schema\\\/person\\\/4e5bfb2e9af6c3446cb0031a7bf83207\"},\"image\":{\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/upload.wikimedia.org\\\/wikipedia\\\/commons\\\/1\\\/1d\\\/British_Museum_Royal_Game_of_Ur.jpg\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/\",\"url\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/\",\"name\":\"The Game of Ur problem - Probably Overthinking It\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/upload.wikimedia.org\\\/wikipedia\\\/commons\\\/1\\\/1d\\\/British_Museum_Royal_Game_of_Ur.jpg\",\"datePublished\":\"2018-10-21T16:56:08+00:00\",\"dateModified\":\"2018-11-01T14:13:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/#primaryimage\",\"url\":\"https:\\\/\\\/upload.wikimedia.org\\\/wikipedia\\\/commons\\\/1\\\/1d\\\/British_Museum_Royal_Game_of_Ur.jpg\",\"contentUrl\":\"https:\\\/\\\/upload.wikimedia.org\\\/wikipedia\\\/commons\\\/1\\\/1d\\\/British_Museum_Royal_Game_of_Ur.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/2018\\\/10\\\/21\\\/the-game-of-ur-problem\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Game of Ur problem\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/\",\"name\":\"Probably Overthinking It\",\"description\":\"Data science, Bayesian Statistics, and other ideas\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/#\\\/schema\\\/person\\\/4e5bfb2e9af6c3446cb0031a7bf83207\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/#\\\/schema\\\/person\\\/4e5bfb2e9af6c3446cb0031a7bf83207\",\"name\":\"Allen B. Downey\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/probably_logo.png\",\"url\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/probably_logo.png\",\"contentUrl\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/probably_logo.png\",\"width\":714,\"height\":784,\"caption\":\"Allen B. Downey\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/probably_logo.png\"},\"sameAs\":[\"https:\\\/\\\/www.allendowney.com\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/allendowney\\\/\",\"https:\\\/\\\/x.com\\\/AllenDowney\",\"https:\\\/\\\/github.com\\\/AllenDowney\",\"https:\\\/\\\/bsky.app\\\/profile\\\/allendowney.bsky.social\",\"https:\\\/\\\/allendowney.github.io\\\/Portfolio\\\/\",\"https:\\\/\\\/greenteapress.com\\\/wp\\\/\"],\"url\":\"https:\\\/\\\/www.allendowney.com\\\/blog\\\/author\\\/allen-downey\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Game of Ur problem - Probably Overthinking It","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/","og_locale":"en_US","og_type":"article","og_title":"The Game of Ur problem - Probably Overthinking It","og_description":"Here&#8217;s a probability puzzle to ruin your week. In the Royal Game of Ur, players advance tokens along a track with 14 spaces. To determine how many spaces to advance, a player rolls 4 dice with 4 sides. Two corners on each die are marked; the other two are not. The total number of marked corners &#8212; which is 0, 1, 2, 3, or 4 &#8212; is the number of spaces to advance. For example, if the total on your... Read More Read More","og_url":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/","og_site_name":"Probably Overthinking It","article_published_time":"2018-10-21T16:56:08+00:00","article_modified_time":"2018-11-01T14:13:50+00:00","og_image":[{"url":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/1\/1d\/British_Museum_Royal_Game_of_Ur.jpg","type":"","width":"","height":""}],"author":"Allen B. Downey","twitter_card":"summary_large_image","twitter_creator":"@AllenDowney","twitter_site":"@AllenDowney","twitter_misc":{"Written by":"Allen B. Downey","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/#article","isPartOf":{"@id":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/"},"author":{"name":"Allen B. Downey","@id":"https:\/\/www.allendowney.com\/blog\/#\/schema\/person\/4e5bfb2e9af6c3446cb0031a7bf83207"},"headline":"The Game of Ur problem","datePublished":"2018-10-21T16:56:08+00:00","dateModified":"2018-11-01T14:13:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/"},"wordCount":258,"commentCount":6,"publisher":{"@id":"https:\/\/www.allendowney.com\/blog\/#\/schema\/person\/4e5bfb2e9af6c3446cb0031a7bf83207"},"image":{"@id":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/#primaryimage"},"thumbnailUrl":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/1\/1d\/British_Museum_Royal_Game_of_Ur.jpg","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/","url":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/","name":"The Game of Ur problem - Probably Overthinking It","isPartOf":{"@id":"https:\/\/www.allendowney.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/#primaryimage"},"image":{"@id":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/#primaryimage"},"thumbnailUrl":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/1\/1d\/British_Museum_Royal_Game_of_Ur.jpg","datePublished":"2018-10-21T16:56:08+00:00","dateModified":"2018-11-01T14:13:50+00:00","breadcrumb":{"@id":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/#primaryimage","url":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/1\/1d\/British_Museum_Royal_Game_of_Ur.jpg","contentUrl":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/1\/1d\/British_Museum_Royal_Game_of_Ur.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.allendowney.com\/blog\/2018\/10\/21\/the-game-of-ur-problem\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.allendowney.com\/blog\/"},{"@type":"ListItem","position":2,"name":"The Game of Ur problem"}]},{"@type":"WebSite","@id":"https:\/\/www.allendowney.com\/blog\/#website","url":"https:\/\/www.allendowney.com\/blog\/","name":"Probably Overthinking It","description":"Data science, Bayesian Statistics, and other ideas","publisher":{"@id":"https:\/\/www.allendowney.com\/blog\/#\/schema\/person\/4e5bfb2e9af6c3446cb0031a7bf83207"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.allendowney.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.allendowney.com\/blog\/#\/schema\/person\/4e5bfb2e9af6c3446cb0031a7bf83207","name":"Allen B. Downey","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.allendowney.com\/blog\/wp-content\/uploads\/2025\/03\/probably_logo.png","url":"https:\/\/www.allendowney.com\/blog\/wp-content\/uploads\/2025\/03\/probably_logo.png","contentUrl":"https:\/\/www.allendowney.com\/blog\/wp-content\/uploads\/2025\/03\/probably_logo.png","width":714,"height":784,"caption":"Allen B. Downey"},"logo":{"@id":"https:\/\/www.allendowney.com\/blog\/wp-content\/uploads\/2025\/03\/probably_logo.png"},"sameAs":["https:\/\/www.allendowney.com\/","https:\/\/www.linkedin.com\/in\/allendowney\/","https:\/\/x.com\/AllenDowney","https:\/\/github.com\/AllenDowney","https:\/\/bsky.app\/profile\/allendowney.bsky.social","https:\/\/allendowney.github.io\/Portfolio\/","https:\/\/greenteapress.com\/wp\/"],"url":"https:\/\/www.allendowney.com\/blog\/author\/allen-downey\/"}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.allendowney.com\/blog\/wp-json\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.allendowney.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.allendowney.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.allendowney.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.allendowney.com\/blog\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":4,"href":"https:\/\/www.allendowney.com\/blog\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":83,"href":"https:\/\/www.allendowney.com\/blog\/wp-json\/wp\/v2\/posts\/80\/revisions\/83"}],"wp:attachment":[{"href":"https:\/\/www.allendowney.com\/blog\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.allendowney.com\/blog\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.allendowney.com\/blog\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}