{"id":12282,"date":"2012-10-23T06:00:30","date_gmt":"2012-10-23T12:00:30","guid":{"rendered":"http:\/\/www.johndcook.com\/blog\/?p=12282"},"modified":"2022-04-10T18:42:34","modified_gmt":"2022-04-10T23:42:34","slug":"dimension-5-isnt-so-special","status":"publish","type":"post","link":"https:\/\/www.johndcook.com\/blog\/2012\/10\/23\/dimension-5-isnt-so-special\/","title":{"rendered":"Dimension 5 isn&#8217;t so special"},"content":{"rendered":"<p>Lately I&#8217;ve been reading <a id=\"static_txt_preview\" href=\"https:\/\/amzn.to\/2ypTdrf\" target=\"_blank\" rel=\"noopener noreferrer\">The Best Writing on Mathematics 2012<\/a>. I&#8217;d like to present a alternative perspective on one of the articles.<\/p>\n<p>In his article &#8220;An Adventure in the Nth Dimension,&#8221; Brian Hayes explores how in high dimensions, balls have surprisingly little volume. As the dimension <em>n<\/em> increases, the volume of a ball of radius 1 increases until <em>n<\/em> = 5. Then for larger <em>n<\/em> the volume steadily decreases. Hayes asks<\/p>\n<blockquote><p>What is it about five-dimensional space that allows a unit 5-ball to spread out more expansively than any other n-ball?<\/p><\/blockquote>\n<p>He says that it all has to do with the value of \u03c0 and that if \u03c0 were different, the unit ball would have its maximum value for a different dimension <em>n<\/em>. While that is true, it seems odd to speculate about changing the value of \u03c0. It seems much more natural to speculate about changing the radius of the balls.<\/p>\n<p>The volume of a ball of radius <em>r<\/em> in dimension <em>n<\/em> is<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" src=\"\/\/www.johndcook.com\/vspherevol.svg\" alt=\"V = \\frac{\\pi^{\\frac{n}{2}} r^n}{\\Gamma\\left(\\frac{n}{2} + 1\\right)}\" style=\"background-color:white\" \/><\/p>\n<p>If we fix <em>r<\/em> at 1 and let <em>n<\/em> vary, we get a curve like this:<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.johndcook.com\/vol_curve.png\" alt=\"\" width=\"400\" height=\"271\" \/><\/p>\n<p>But for different values of <em>r<\/em>, the plot will have its maximum at different values of <em>n<\/em>. For example, here is the curve for balls of radius 2:<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.johndcook.com\/vol_curve2.png\" alt=\"\" width=\"400\" height=\"271\" \/><\/p>\n<p>Let&#8217;s think of <em>n<\/em> in our volume formula as a continuous variable so we can differentiate with respect to <em>n<\/em>. It turns out to be more convenient to work with the logarithm of the volume. This makes no difference: the logarithm of a function takes on its maximum exactly where the original function does since log is an increasing function.<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" src=\"\/\/www.johndcook.com\/dvoldn.svg\" alt=\"\\frac{d}{dn} \\log V = \\frac{1}{2} \\log \\pi + \\log r - \\frac{1}{2} \\psi\\left(\\frac{n}{2} + 1\\right)\" style=\"background-color:white\" \/><\/p>\n<p>We can tell from this equation that volume (eventually) decreases as a function of <em>n<\/em> because \u03c8 is an unbounded increasing function. The derivative has a unique zero, and we can move the location of that zero out by increasing <em>r<\/em>. So for any dimension <em>n<\/em>, we can solve for a value of <em>r<\/em> such that a ball of radius <em>r<\/em> has its maximum volume in that dimension:<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" src=\"\/\/www.johndcook.com\/rforn.svg\" alt=\"r = \\exp\\left( \\frac{1}{2}\\left( \\psi\\left(\\frac{n}{2}-1\\right) - \\pi \\right)\\right)\" style=\"background-color:white\" \/><\/p>\n<p style=\"text-align: left;\"><strong>Related<\/strong>: <a href=\"\/\/www.johndcook.com\/blog\/2015\/07\/19\/high-dimensional-integration\/\">High dimensional integration<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lately I&#8217;ve been reading The Best Writing on Mathematics 2012. I&#8217;d like to present a alternative perspective on one of the articles. In his article &#8220;An Adventure in the Nth Dimension,&#8221; Brian Hayes explores how in high dimensions, balls have surprisingly little volume. As the dimension n increases, the volume of a ball of radius [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[9],"tags":[166],"class_list":["post-12282","post","type-post","status-publish","format-standard","hentry","category-math","tag-math"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Lately I&#039;ve been reading The Best Writing on Mathematics 2012. I&#039;d like to present a alternative perspective on one of the articles. In his article &quot;An Adventure in the Nth Dimension,&quot; Brian Hayes explores how in high dimensions, balls have surprisingly little volume. As the dimension n increases, the volume of a ball of radius\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"John\"\/>\n\t<meta name=\"keywords\" content=\"math\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.johndcook.com\/blog\/2012\/10\/23\/dimension-5-isnt-so-special\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"John D. Cook | Applied Mathematics Consulting\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Volume in high dimensions\" \/>\n\t\t<meta property=\"og:description\" content=\"Lately I&#039;ve been reading The Best Writing on Mathematics 2012. I&#039;d like to present a alternative perspective on one of the articles. In his article &quot;An Adventure in the Nth Dimension,&quot; Brian Hayes explores how in high dimensions, balls have surprisingly little volume. As the dimension n increases, the volume of a ball of radius\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.johndcook.com\/blog\/2012\/10\/23\/dimension-5-isnt-so-special\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-10-23T12:00:30+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-04-10T23:42:34+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Volume in high dimensions\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Lately I&#039;ve been reading The Best Writing on Mathematics 2012. I&#039;d like to present a alternative perspective on one of the articles. In his article &quot;An Adventure in the Nth Dimension,&quot; Brian Hayes explores how in high dimensions, balls have surprisingly little volume. As the dimension n increases, the volume of a ball of radius\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.johndcook.com\/blog\/wp-content\/uploads\/2022\/05\/twittercard.png\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Volume in high dimensions","description":"Lately I've been reading The Best Writing on Mathematics 2012. I'd like to present a alternative perspective on one of the articles. In his article \"An Adventure in the Nth Dimension,\" Brian Hayes explores how in high dimensions, balls have surprisingly little volume. As the dimension n increases, the volume of a ball of radius","canonical_url":"https:\/\/www.johndcook.com\/blog\/2012\/10\/23\/dimension-5-isnt-so-special\/","robots":"max-image-preview:large","keywords":"math","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"John D. Cook | Applied Mathematics Consulting","og:type":"article","og:title":"Volume in high dimensions","og:description":"Lately I've been reading The Best Writing on Mathematics 2012. I'd like to present a alternative perspective on one of the articles. In his article &quot;An Adventure in the Nth Dimension,&quot; Brian Hayes explores how in high dimensions, balls have surprisingly little volume. As the dimension n increases, the volume of a ball of radius","og:url":"https:\/\/www.johndcook.com\/blog\/2012\/10\/23\/dimension-5-isnt-so-special\/","article:published_time":"2012-10-23T12:00:30+00:00","article:modified_time":"2022-04-10T23:42:34+00:00","twitter:card":"summary","twitter:title":"Volume in high dimensions","twitter:description":"Lately I've been reading The Best Writing on Mathematics 2012. I'd like to present a alternative perspective on one of the articles. In his article &quot;An Adventure in the Nth Dimension,&quot; Brian Hayes explores how in high dimensions, balls have surprisingly little volume. As the dimension n increases, the volume of a ball of radius","twitter:image":"https:\/\/www.johndcook.com\/blog\/wp-content\/uploads\/2022\/05\/twittercard.png"},"aioseo_meta_data":{"post_id":"12282","title":"Volume in high dimensions","description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"Article","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"created":"2020-12-21 02:38:58","updated":"2025-06-03 22:43:09","ai":null,"seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.johndcook.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.johndcook.com\/blog\/category\/math\/\" title=\"Math\">Math<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tDimension 5 isn\u2019t so special\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.johndcook.com\/blog"},{"label":"Math","link":"https:\/\/www.johndcook.com\/blog\/category\/math\/"},{"label":"Dimension 5 isn&#8217;t so special","link":"https:\/\/www.johndcook.com\/blog\/2012\/10\/23\/dimension-5-isnt-so-special\/"}],"_links":{"self":[{"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/posts\/12282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/comments?post=12282"}],"version-history":[{"count":0,"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/posts\/12282\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/media?parent=12282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/categories?post=12282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/tags?post=12282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}