{"id":1915,"date":"2019-03-23T06:33:03","date_gmt":"2019-03-23T06:33:03","guid":{"rendered":"https:\/\/www.aiproblog.com\/index.php\/2019\/03\/23\/logistic-regression-in-one-picture\/"},"modified":"2019-03-23T06:33:03","modified_gmt":"2019-03-23T06:33:03","slug":"logistic-regression-in-one-picture","status":"publish","type":"post","link":"https:\/\/www.aiproblog.com\/index.php\/2019\/03\/23\/logistic-regression-in-one-picture\/","title":{"rendered":"Logistic Regression in One Picture"},"content":{"rendered":"<p>Author: Stephanie Glen<\/p>\n<div>\n<p>Logistic regression is regressing data to a line (i.e. finding an average of sorts) so you can fit data to a particular equation and make predictions for your data. This type of regression is\u00a0a good choice when modeling <a href=\"https:\/\/www.statisticshowto.datasciencecentral.com\/binary-variable-2\/\" target=\"_blank\" rel=\"noopener noreferrer\">binary variables<\/a>, which happen frequently in real life (e.g. work or don&#8217;t work, marry or don&#8217;t marry, buy a house or rent&#8230;). The logistic regression model is popular, in part, because it gives probabilities between 0 and 1. Let&#8217;s say you were modeling a risk of credit default: values closer to 0 indicate a tiny risk, while values closer to 1 mean a very high risk. The following image shows an example of how one might tailor a logistic model for credit score based risk.<\/p>\n<p><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/1569546441?profile=original\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/1569546441?profile=RESIZE_710x\" class=\"align-full\"><\/a><\/p>\n<p style=\"text-align: center;\"><em>Click on the picture to zoom in<\/em><\/p>\n<h2>References<\/h2>\n<p>Hilbe, J. (2016). Practical Guide to Logistic Regression. CRC Press.<\/p>\n<p><span style=\"font-size: 14pt;\"><strong>DSC Resources<\/strong><\/span><\/p>\n<ul>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/new-books-and-resources-for-dsc-members\">Free Book and Resources for DSC Members<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/decomposition-of-statistical-distributions-using-mixture-models-a\">New Perspectives on Statistical Distributions and Deep Learning<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/data-science-wizardry\">Time series, Growth Modeling and Data Science Wizardy<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/page\/search?q=statistical+concepts\">Statistical Concepts Explained in Simple English<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/page\/search?q=in+one+pictures\">Machine Learning Concepts Explained in One Picture<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/comprehensive-repository-of-data-science-and-ml-resources\">Comprehensive Repository of Data Science and ML Resources<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/advanced-machine-learning-with-basic-excel\">Advanced Machine Learning with Basic Excel<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/difference-between-machine-learning-data-science-ai-deep-learning\">Difference between ML, Data Science, AI, Deep Learning, and Statistics<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/my-data-science-machine-learning-and-related-articles\">Selected Business Analytics, Data Science and ML articles<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/how-to-automatically-determine-the-number-of-clusters-in-your-dat\">How to Automatically Determine the Number of Clusters in your Data<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/fascinating-new-results-in-the-theory-of-randomness\">Fascinating New Results in the Theory of Randomness<\/a><\/li>\n<li><a href=\"http:\/\/careers.analytictalent.com\/jobs\/products\">Hire a Data Scientist<\/a><span>\u00a0<\/span>|<span>\u00a0<\/span><a href=\"http:\/\/www.datasciencecentral.com\/page\/search?q=Python\">Search DSC<\/a><span>\u00a0<\/span>|<span>\u00a0<\/span><a href=\"http:\/\/www.analytictalent.com\/\">Find a Job<\/a><\/li>\n<li><a href=\"http:\/\/www.datasciencecentral.com\/profiles\/blog\/new\">Post a Blog<\/a><span>\u00a0<\/span>|<span>\u00a0<\/span><a href=\"http:\/\/www.datasciencecentral.com\/forum\/topic\/new\">Forum Questions<\/a><\/li>\n<\/ul>\n<p><span>Follow us:\u00a0<\/span><a href=\"https:\/\/twitter.com\/DataScienceCtrl\">Twitter<\/a><span>\u00a0|\u00a0<\/span><a href=\"https:\/\/www.facebook.com\/DataScienceCentralCommunity\/\">Facebook<\/a><\/p>\n<\/div>\n<p><a href=\"https:\/\/www.datasciencecentral.com\/xn\/detail\/6448529:BlogPost:811901\">Go to Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Author: Stephanie Glen Logistic regression is regressing data to a line (i.e. finding an average of sorts) so you can fit data to a particular [&hellip;] <span class=\"read-more-link\"><a class=\"read-more\" href=\"https:\/\/www.aiproblog.com\/index.php\/2019\/03\/23\/logistic-regression-in-one-picture\/\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":462,"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\/1915"}],"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=1915"}],"version-history":[{"count":0,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/1915\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media\/465"}],"wp:attachment":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=1915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=1915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=1915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}