{"id":5179,"date":"2021-11-04T06:34:04","date_gmt":"2021-11-04T06:34:04","guid":{"rendered":"https:\/\/www.aiproblog.com\/index.php\/2021\/11\/04\/fun-mathematical-problem-in-stochastic-geometry-random-triangles\/"},"modified":"2021-11-04T06:34:04","modified_gmt":"2021-11-04T06:34:04","slug":"fun-mathematical-problem-in-stochastic-geometry-random-triangles","status":"publish","type":"post","link":"https:\/\/www.aiproblog.com\/index.php\/2021\/11\/04\/fun-mathematical-problem-in-stochastic-geometry-random-triangles\/","title":{"rendered":"Fun Mathematical Problem in Stochastic Geometry: Random Triangles"},"content":{"rendered":"<p>Author: Vincent Granville<\/p>\n<div>\n<p><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9765013085?profile=original\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9765013085?profile=RESIZE_710x\" width=\"500\" class=\"align-center\"><\/a><\/p>\n<\/p>\n<p>This article is part of a series about fun problems, offered with solutions. The previous one can be found <a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/a-simple-regression-problem\" target=\"_blank\" rel=\"noopener\">here<\/a>. This new problem falls in a category called stochastic geometry. We define a random triangle as a triangle inscribed in a circle of radius\u00a0<span><em>\u03c1<\/em>, with its three vertices uniformly distributed on the circle. Without loss of generality, we can assume that the circle is centered at the origin, its radius is\u00a0<em>\u03c1<\/em> = 1, and one vertex is located at (1, 0). The metric of interest here, does not depend on the scaling factor\u00a0<em>\u03c1<\/em>.<\/span><\/p>\n<p><span>The general question is to find the distribution of the random variable <em>R<\/em> = SQRT(<em>S<\/em>) \/ <em>L<\/em>, where <em>S<\/em> is the area of the triangle, and <em>L<\/em> its perimeter. The first step is to show that <em>R<\/em> does not depend on\u00a0<em>\u03c1<\/em>, and then find the maximum potential value for <em>R<\/em>, the minimum being 0. The probability distribution of <em>R<\/em> can be approximated using Monte-Carlo simulations. Note that <em>R<\/em> is also independent of the unit used for the measurements, thanks to using SQRT(<em>S<\/em>) rather than <em>S<\/em>.\u00a0<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong>1. The problem, and solution<\/strong><\/span><\/p>\n<p>Let us assume that the three vertices of the triangle are (<span><em>\u03c1\u00a0<\/em><\/span>cos\u00a0<span><em>\u03b8<\/em><span style=\"font-size: 8pt;\">0<\/span>,\u00a0<em>\u03c1<\/em> sin\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">0<\/span>),\u00a0(<em>\u03c1\u00a0<\/em>cos\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">1<\/span>, <em>\u03c1\u00a0<\/em>sin\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">1<\/span>),\u00a0(<em>\u03c1\u00a0<\/em>cos\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">2<\/span>, <em>\u03c1\u00a0<\/em>sin\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">2<\/span>), with\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">0<\/span> = 0, and (<em>\u03b8<\/em><span style=\"font-size: 8pt;\">1<\/span>,\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">2<\/span>) uniformly distributed on [0, 2\u03c0] x\u00a0[0, 2\u03c0]. The following results are easy to obtain:<\/span><\/p>\n<p><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9762575486?profile=original\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9762575486?profile=RESIZE_710x\" width=\"450\" class=\"align-center\"><\/a><\/p>\n<p>Here <em>\u03c7<\/em> is the indicator function, see <a href=\"https:\/\/en.wikipedia.org\/wiki\/Indicator_function\" target=\"_blank\" rel=\"noopener\">here<\/a>. Note that <em>R<\/em> = <em>R<\/em>(<span><em>\u03b8<\/em><span style=\"font-size: 8pt;\">1<\/span>,\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">2<\/span><\/span>) does not depend on <span><em>\u03c1<\/em><\/span>. The maximum area <em>S<\/em> is achieved for the equilateral triangle, that is, when\u00a0<span><em>\u03b8<\/em><span style=\"font-size: 8pt;\">1<\/span> = 2\u03c0\/3 and\u00a0<em>\u03b8<span style=\"font-size: 8pt;\">2<\/span><\/em>\u00a0= 4\u03c0\/3. However this also corresponds to the maximum perimeter <em>L<\/em>. So it is not sure that the equilateral triangle achieves the maximum value for R. One way to confirm this is to find the maximum of <em>R<\/em>(<em>\u03b8<\/em><span style=\"font-size: 8pt;\">1<\/span>,\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">2<\/span>) by differentiating its expression with respect to\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">1<\/span> and\u00a0<em>\u03b8<\/em><span style=\"font-size: 8pt;\">2<\/span>. But there is a much easier solution: consider a triangle of fixed perimeter: its area is maximum if the triangle is equilateral. See the detailed solution <a href=\"https:\/\/math.stackexchange.com\/questions\/4294808\/triangle-inscribed-in-circle-maximizing-sqrt-mboxarea-mboxperimeter\" target=\"_blank\" rel=\"noopener\">here<\/a>.\u00a0<\/span><\/p>\n<p><span>The picture below represents the probability distribution for <em>R<\/em>, with <em>R<\/em> considered as a random variable. The X-axis represents <em>r<\/em>, and the Y-axis represents <em>P<\/em>(<em>R<\/em>\u00a0 &lt;\u00a0 <em>r<\/em>). It was produced using 100,000 simulated random triangles.<\/span><\/p>\n<p><span><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9764913276?profile=original\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9764913276?profile=RESIZE_710x\" width=\"500\" class=\"align-center\"><\/a><\/span><\/p>\n<p><span>Note that the maximum value for <em>R<\/em> is about 0.219.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong>2. Generalizations, and related problems<\/strong><\/span><\/p>\n<p>For the equilateral triangle, square, circle and deltoid curve, <em>R<\/em> is respectively equal to (approximately) 0.219, 0.250, 0.282, and 0.257. The exact value is easy to obtain in each case, see table below. It does not depend on the scale. Note that the deltoid (see <a href=\"https:\/\/en.wikipedia.org\/wiki\/Deltoid_curve\" target=\"_blank\" rel=\"noopener\">here<\/a>\u00a0and in the picture below) is non-convex, thus you would expect a lower <em>R<\/em>. Nothing can beat the circle!<\/p>\n<p><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9764989864?profile=original\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9764989864?profile=RESIZE_710x\" width=\"300\" class=\"align-center\"><\/a><\/p>\n<p>The exact values are as follows:<\/p>\n<p><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9765567088?profile=original\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9765567088?profile=RESIZE_710x\" width=\"250\" class=\"align-center\"><\/a><\/p>\n<p>An interesting MIT article about random triangles, focusing on the theory of shapes, can be found <a href=\"https:\/\/dspace.mit.edu\/handle\/1721.1\/103361\" target=\"_blank\" rel=\"noopener\">here<\/a>. The picture below features 1,000 random triangles from that article, generated using a Gaussian distribution. The problem can be generalized to random polygons, random polyhedrons (that is, in 3 dimensions, see <a href=\"https:\/\/core.ac.uk\/download\/pdf\/208864454.pdf\" target=\"_blank\" rel=\"noopener\">here<\/a>) or to random convex sets. Other interesting problems in stochastic geometry include Buffon&#8217;s needle (see <a href=\"https:\/\/en.wikipedia.org\/wiki\/Buffon%27s_needle_problem\" target=\"_blank\" rel=\"noopener\">here<\/a>) and partial covering of the plane by infinitely many random circles (see <a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/little-stochastic-geometry-problem-random-circles\" target=\"_blank\" rel=\"noopener\">here<\/a>).<\/p>\n<p><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9765449064?profile=original\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/9765449064?profile=RESIZE_710x\" width=\"600\" class=\"align-center\"><\/a><\/p>\n<p>Applications of stochastic geometry (including stereology and spatial statistics) are described in <a href=\"https:\/\/www.amazon.com\/Stochastic-Geometry-Applications-Sung-Chiu\/dp\/0470664819\/ref=asc_df_0470664819\/\" target=\"_blank\" rel=\"noopener\">this book<\/a>, published in 2013. A modern book (2019) can be found <a href=\"https:\/\/www.amazon.com\/Stochastic-Geometry-Research-Frontiers-Mathematics\/dp\/3030135462\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.\u00a0<\/p>\n<\/p>\n<p><span><em>To receive a weekly digest of our new articles, subscribe to our newsletter,\u00a0<a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/check-out-our-dsc-newsletter\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/em><\/span><\/p>\n<p><span><em><strong>About the author<\/strong>:\u00a0 Vincent Granville is a d<span class=\"lt-line-clamp__raw-line\">ata science pioneer, mathematician, book author (Wiley), patent owner, former post-doc at Cambridge University, former VC-funded executive, with 20+ years of corporate experience including CNET, NBC, Visa, Wells Fargo, Microsoft, eBay. Vincent is also a self-publisher at\u00a0<a href=\"http:\/\/datashaping.com\/\" target=\"_blank\" rel=\"noopener\">DataShaping.com<\/a>, and founded and co-founded a few start-ups, including one with a successful exit (Data Science Central acquired by Tech Target).<\/span>\u00a0You can access Vincent&#8217;s articles and books,\u00a0<a href=\"http:\/\/datashaping.com\/\" target=\"_blank\" rel=\"noopener\">here<\/a>. A selection of the most recent ones can be found on\u00a0<a href=\"https:\/\/www.vgranville.com\/\" target=\"_blank\" rel=\"noopener\">vgranville.com<\/a>.\u00a0<\/em><\/span><\/p>\n<\/div>\n<p><a href=\"https:\/\/www.datasciencecentral.com\/xn\/detail\/6448529:BlogPost:1075429\">Go to Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Author: Vincent Granville This article is part of a series about fun problems, offered with solutions. The previous one can be found here. This new [&hellip;] <span class=\"read-more-link\"><a class=\"read-more\" href=\"https:\/\/www.aiproblog.com\/index.php\/2021\/11\/04\/fun-mathematical-problem-in-stochastic-geometry-random-triangles\/\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":460,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[26],"tags":[],"_links":{"self":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/5179"}],"collection":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=5179"}],"version-history":[{"count":0,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/5179\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media\/470"}],"wp:attachment":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=5179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=5179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=5179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}