{"id":1384,"date":"2021-01-17T12:45:20","date_gmt":"2021-01-17T12:45:20","guid":{"rendered":"http:\/\/learnlearn.uk\/alevelcs\/?page_id=1384"},"modified":"2021-01-17T13:16:06","modified_gmt":"2021-01-17T13:16:06","slug":"classification-regression-clustering","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/","title":{"rendered":"Classification, Regression, Clustering &#038; Reinforcement"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Classification<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Classification<\/h3>\n<p>The aim of the classification is to split the data into two or more predefined groups. A common example is spam email filtering where emails are split into either spam or not spam.<\/p>\n<p><a href=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/classification.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-1377 size-medium\" src=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/classification-300x291.png?_t=1610888108\" alt=\"\" width=\"300\" height=\"291\" srcset=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/classification-300x291.png 300w, https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/classification.png 324w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n\n<\/div><h2 class=\"tabtitle\">Linear Regression<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Regression<\/h3>\n<p>The aim of the regression is to predict the value of a <strong>dependent<\/strong> variable based upon another <strong>explanatory<\/strong> variable. Linear Regression is used where there is a straight line correlation between variables, for example between <a href=\"https:\/\/online.stat.psu.edu\/stat462\/node\/101\/\">poverty and teen birth rates<\/a>.<\/p>\n<div id=\"attachment_1378\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/regression.png\"><img aria-describedby=\"caption-attachment-1378\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-1378 size-medium\" src=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/regression-300x287.png?_t=1610888099\" alt=\"\" width=\"300\" height=\"287\" srcset=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/regression-300x287.png 300w, https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/regression.png 329w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-1378\" class=\"wp-caption-text\">Here is an example of linear regression, as can be seen by the straight line.<\/p><\/div>\n\n<\/div><h2 class=\"tabtitle\">Non Linear Regression<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Non Linear Regression<\/strong><\/p>\n<p>Non-linear regression is used where there is a correlation but it is not linear, for example between <a href=\"https:\/\/en.wikipedia.org\/wiki\/Preston_curve\">life expectancy and per capita income.<\/a><\/p>\n<div id=\"attachment_1379\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/preston-curve2.png\"><img aria-describedby=\"caption-attachment-1379\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-1379\" src=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/preston-curve2-300x206.png\" alt=\"\" width=\"300\" height=\"206\" srcset=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/preston-curve2-300x206.png 300w, https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/preston-curve2-768x528.png 768w, https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/preston-curve2.png 909w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-1379\" class=\"wp-caption-text\">Life expectancy vs income. [Click to enlarge]<\/p><\/div>\n\n<\/div><h2 class=\"tabtitle\">Clustering<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Clustering<\/h3>\n<p>The objective of a clustering algorithm is to split the data into smaller groups or clusters based on certain features. The programmer might specify a target number of groups or let the algorithm decide.<\/p>\n<div id=\"attachment_1382\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/clustering-algorithms.png\"><img aria-describedby=\"caption-attachment-1382\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-1382\" src=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/clustering-algorithms-300x300.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/clustering-algorithms-300x300.png 300w, https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/clustering-algorithms-150x150.png 150w, https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/clustering-algorithms.png 329w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-1382\" class=\"wp-caption-text\">The training data splits the data into clusters<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Reinforcement<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Reinforcement Learning<\/h3>\n<p>Reinforcement learning is a reward based system where an agent are not given specific instructions but are rewarded for how well they perform. Often this learning follows a Darwinian model where multiple agents attempt the task (each with different slightly randomly parameters) and those that perform the best form the base settings for their child (slightly mutated versions)<\/p>\n<p>With each generation the agents improve in their performance.<\/p>\n<div class=\"nv-iframe-embed\">\n<div class=\"container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded\"><a href=\"https:\/\/www.youtube.com\/watch?v=gn4nRCC9TwQ\" class=\"lazy-load-youtube preview-lazyload preview-youtube\" data-video-title=\"Google&#039;s DeepMind AI Just Taught Itself To Walk\" title=\"Play video &quot;Google&#039;s DeepMind AI Just Taught Itself To Walk&quot;\">https:\/\/www.youtube.com\/watch?v=gn4nRCC9TwQ<\/a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href=\"https:\/\/www.youtube.com\/watch?v=gn4nRCC9TwQ\" title=\"Google&#039;s DeepMind AI Just Taught Itself To Walk\">Google&#039;s DeepMind AI Just Taught Itself To Walk (https:\/\/www.youtube.com\/watch?v=gn4nRCC9TwQ)<\/a><\/noscript><\/div>\n<\/div>\n<div class=\"nv-iframe-embed\">\n<div class=\"container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded\"><a href=\"https:\/\/www.youtube.com\/watch?v=wL7tSgUpy8w\" class=\"lazy-load-youtube preview-lazyload preview-youtube\" data-video-title=\"Neural network racing cars around a track\" title=\"Play video &quot;Neural network racing cars around a track&quot;\">https:\/\/www.youtube.com\/watch?v=wL7tSgUpy8w<\/a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href=\"https:\/\/www.youtube.com\/watch?v=wL7tSgUpy8w\" title=\"Neural network racing cars around a track\">Neural network racing cars around a track (https:\/\/www.youtube.com\/watch?v=wL7tSgUpy8w)<\/a><\/noscript><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Classification The aim of the classification is to split the data into two or more predefined groups. A common example is spam email filtering where emails are split into either spam or not spam. Regression The aim of the regression is to predict the value of a dependent variable based upon another explanatory variable. Linear&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Classification, Regression, Clustering &#038; Reinforcement<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":70,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Classification, Regression, Clustering &amp; Reinforcement - A Level Computer Science<\/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:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Classification, Regression, Clustering &amp; Reinforcement - A Level Computer Science\" \/>\n<meta property=\"og:description\" content=\"Classification The aim of the classification is to split the data into two or more predefined groups. A common example is spam email filtering where emails are split into either spam or not spam. Regression The aim of the regression is to predict the value of a dependent variable based upon another explanatory variable. Linear&hellip;&nbsp;Read More &raquo;Classification, Regression, Clustering &#038; Reinforcement\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/\" \/>\n<meta property=\"og:site_name\" content=\"A Level Computer Science\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-17T13:16:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/classification-300x291.png?_t=1610888108\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/\",\"name\":\"Classification, Regression, Clustering & Reinforcement - A Level Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#website\"},\"datePublished\":\"2021-01-17T12:45:20+00:00\",\"dateModified\":\"2021-01-17T13:16:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"A Level Computer Science Home\",\"item\":\"https:\/\/learnlearn.uk\/alevelcs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Classification, Regression, Clustering &#038; Reinforcement\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#website\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/\",\"name\":\"A Level Computer Science\",\"description\":\"CIE Specification\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/alevelcs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#organization\",\"name\":\"A Level Computer Science\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png\",\"width\":710,\"height\":98,\"caption\":\"A Level Computer Science\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Classification, Regression, Clustering & Reinforcement - A Level Computer Science","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:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/","og_locale":"en_GB","og_type":"article","og_title":"Classification, Regression, Clustering & Reinforcement - A Level Computer Science","og_description":"Classification The aim of the classification is to split the data into two or more predefined groups. A common example is spam email filtering where emails are split into either spam or not spam. Regression The aim of the regression is to predict the value of a dependent variable based upon another explanatory variable. Linear&hellip;&nbsp;Read More &raquo;Classification, Regression, Clustering &#038; Reinforcement","og_url":"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/","og_site_name":"A Level Computer Science","article_modified_time":"2021-01-17T13:16:06+00:00","og_image":[{"url":"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2021\/01\/classification-300x291.png?_t=1610888108"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/","url":"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/","name":"Classification, Regression, Clustering & Reinforcement - A Level Computer Science","isPartOf":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/#website"},"datePublished":"2021-01-17T12:45:20+00:00","dateModified":"2021-01-17T13:16:06+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/alevelcs\/classification-regression-clustering\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"A Level Computer Science Home","item":"https:\/\/learnlearn.uk\/alevelcs\/"},{"@type":"ListItem","position":2,"name":"Classification, Regression, Clustering &#038; Reinforcement"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/alevelcs\/#website","url":"https:\/\/learnlearn.uk\/alevelcs\/","name":"A Level Computer Science","description":"CIE Specification","publisher":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/alevelcs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/alevelcs\/#organization","name":"A Level Computer Science","url":"https:\/\/learnlearn.uk\/alevelcs\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png","contentUrl":"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png","width":710,"height":98,"caption":"A Level Computer Science"},"image":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/alevelcs\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"Classification The aim of the classification is to split the data into two or more predefined groups. A common example is spam email filtering where emails are split into either spam or not spam. Regression The aim of the regression is to predict the value of a dependent variable based upon another explanatory variable. Linear&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages\/1384"}],"collection":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/comments?post=1384"}],"version-history":[{"count":6,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages\/1384\/revisions"}],"predecessor-version":[{"id":1395,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages\/1384\/revisions\/1395"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/media?parent=1384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}