{"id":220,"date":"2013-06-25T19:15:57","date_gmt":"2013-06-25T19:15:57","guid":{"rendered":"http:\/\/morganredfield.com\/blog\/?p=220"},"modified":"2022-03-22T01:10:51","modified_gmt":"2022-03-22T01:10:51","slug":"use-the-right-metric","status":"publish","type":"post","link":"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/","title":{"rendered":"Use the right metric"},"content":{"rendered":"<p>In the field of artificial intelligence, there\u2019s a fairly simple (compared to other AI techniques) method called A* (pronounced A-star) that\u2019s used to solve a lot of problems. It can be used in any situation where you\u2019d want to find the shortest path from where you are now to some goal. This is a very common problem, and shows up everywhere from calculating the best airline routes to video game NPC AI. It\u2019s useful in any kind of route planning, whether it\u2019s a route through space or through some other set of sequential decisions.<\/p>\n<p>A* works by comparing the state of the world now with the state of the world if a certain decision were made. Since it has to choose which decision to make before it knows what the result of a decision is, it uses a heuristic to approximate the result of different decisions and then chooses between those decisions. The heuristic approximates the distance to the goal after each given decision. There\u2019s a bit more to it than that, but you can read about it on Wikipedia or something if you\u2019re interested. What I find really intriguing about A* is the importance of the heuristic.<\/p>\n<p>It turns out that A* doesn\u2019t always work well. If the heuristic isn\u2019t chosen well, then A* will do very poorly at finding a way to the goal. It may find a route that is much worse than what\u2019s possible. Whatever heuristic is chosen needs to never over-estimate the true distance to the goal. AI researchers will spend a lot of time thinking up good heuristics for their application, often much more time than they spend implementing the path-finding A* algorithm.<\/p>\n<p>What AI researchers realize that a lot of other people don\u2019t is that the way you estimate the distance to your goal has a huge impact on how fast you reach it. I\u2019ve been noticing recently that the standard heuristic is very poor in a lot of areas in life where people are trying to achieve something. I first noticed that in the field of education when I was having trouble learning about AI in the first place.<\/p>\n<p>When I took my first few algorithms and AI classes, I got very high grades. I\u2019m good at school and test-taking, so I got 4.0s in most of the classes that I took. Unfortunately, I was often unable to apply the information or implement the algorithms after the class ended. The heuristic I\u2019d been using to see if I learned, my grade, was often over-estimating my progress. I was eventually able to truly learn and implement the different algorithms that were important, but I had to completely ignore grades while doing so. Instead, I just focused on small projects that included the algorithms. These small projects (what homework aspires but often fails to be) were a truer measure of progress than grades ever were.<\/p>\n<p>Since noticing that grades were such a poor metric for education goals, I\u2019ve been on the lookout for other places that this appears in people\u2019s daily lives. Here\u2019s what I\u2019ve noticed so far. Can you think of any that I\u2019ve missed?<\/p>\n<ul>\n<li>Education: The default heuristic is grades, but number of completed projects is probably a better metric.<\/li>\n<li>Life-success: It seems like a lot of people use income to measure this, but that\u2019s a pretty limited metric and often seems to lead people to unhappiness. I would argue that autonomy is probably a better metric here, but I\u2019m not sure how to measure autonomy.<\/li>\n<li>Weight loss: I know a lot of people who have been working on losing weight and being healthier in general, but I think that weight is probably not a good heuristic for this. Body Mass Index does a lot better, but it\u2019s a bit harder for the average person to measure accurately.<\/li>\n<li>Relationship health: People tend to measure the health of a relationship by how long it\u2019s lasted, but this is a very inaccurate guide at best. Lots of long relationships are pretty bad, but for one reason or another, the people don\u2019t break up. Other relationships are short, but end up being very positive experiences for everyone involved. It seems like the happiness of the partners is a much better heuristic, but it\u2019s also harder to measure.<\/li>\n<\/ul>\n<p>In each of these cases, it\u2019s pretty hard to measure something that\u2019s actually a good heuristic so people choose a less useful heuristic. Using the worse heuristic, people can easily make measurements, but those measurements aren\u2019t actually very useful. Even though good heuristics are often harder to measure, they offer much better results.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the field of artificial intelligence, there\u2019s a fairly simple (compared to other AI techniques) method called A* (pronounced A-star) that\u2019s used to solve a lot of problems. It can be used in any situation where you\u2019d want to find the shortest path from where you are now to some goal. This is a very &hellip; <a href=\"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Use the right metric&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[63,64,65],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ai","tag-heuristics","tag-life-skills"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Use the right metric - Theory and Practice<\/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:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use the right metric - Theory and Practice\" \/>\n<meta property=\"og:description\" content=\"In the field of artificial intelligence, there\u2019s a fairly simple (compared to other AI techniques) method called A* (pronounced A-star) that\u2019s used to solve a lot of problems. It can be used in any situation where you\u2019d want to find the shortest path from where you are now to some goal. This is a very &hellip; Continue reading &quot;Use the right metric&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/\" \/>\n<meta property=\"og:site_name\" content=\"Theory and Practice\" \/>\n<meta property=\"article:published_time\" content=\"2013-06-25T19:15:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-22T01:10:51+00:00\" \/>\n<meta name=\"author\" content=\"morgan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"morgan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/\"},\"author\":{\"name\":\"morgan\",\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\"},\"headline\":\"Use the right metric\",\"datePublished\":\"2013-06-25T19:15:57+00:00\",\"dateModified\":\"2022-03-22T01:10:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/\"},\"wordCount\":797,\"publisher\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\"},\"keywords\":[\"AI\",\"heuristics\",\"life skills\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/\",\"url\":\"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/\",\"name\":\"Use the right metric - Theory and Practice\",\"isPartOf\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#website\"},\"datePublished\":\"2013-06-25T19:15:57+00:00\",\"dateModified\":\"2022-03-22T01:10:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/morganredfield.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Use the right metric\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/morganredfield.com\/blog\/#website\",\"url\":\"https:\/\/morganredfield.com\/blog\/\",\"name\":\"Theory and Practice\",\"description\":\"Exploring life through science and art.\",\"publisher\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/morganredfield.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\",\"name\":\"morgan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g\",\"caption\":\"morgan\"},\"logo\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/morganredfield.com\/blog\/author\/morgan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Use the right metric - Theory and Practice","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:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/","og_locale":"en_US","og_type":"article","og_title":"Use the right metric - Theory and Practice","og_description":"In the field of artificial intelligence, there\u2019s a fairly simple (compared to other AI techniques) method called A* (pronounced A-star) that\u2019s used to solve a lot of problems. It can be used in any situation where you\u2019d want to find the shortest path from where you are now to some goal. This is a very &hellip; Continue reading \"Use the right metric\"","og_url":"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/","og_site_name":"Theory and Practice","article_published_time":"2013-06-25T19:15:57+00:00","article_modified_time":"2022-03-22T01:10:51+00:00","author":"morgan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"morgan","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/#article","isPartOf":{"@id":"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/"},"author":{"name":"morgan","@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd"},"headline":"Use the right metric","datePublished":"2013-06-25T19:15:57+00:00","dateModified":"2022-03-22T01:10:51+00:00","mainEntityOfPage":{"@id":"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/"},"wordCount":797,"publisher":{"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd"},"keywords":["AI","heuristics","life skills"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/","url":"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/","name":"Use the right metric - Theory and Practice","isPartOf":{"@id":"https:\/\/morganredfield.com\/blog\/#website"},"datePublished":"2013-06-25T19:15:57+00:00","dateModified":"2022-03-22T01:10:51+00:00","breadcrumb":{"@id":"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/morganredfield.com\/blog\/2013\/06\/use-the-right-metric\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/morganredfield.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Use the right metric"}]},{"@type":"WebSite","@id":"https:\/\/morganredfield.com\/blog\/#website","url":"https:\/\/morganredfield.com\/blog\/","name":"Theory and Practice","description":"Exploring life through science and art.","publisher":{"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/morganredfield.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd","name":"morgan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g","caption":"morgan"},"logo":{"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/morganredfield.com\/blog\/author\/morgan\/"}]}},"_links":{"self":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":3,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":223,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts\/220\/revisions\/223"}],"wp:attachment":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}