{"id":9647,"date":"2023-05-04T20:50:14","date_gmt":"2023-05-04T20:50:14","guid":{"rendered":"https:\/\/labdeck.com\/?page_id=9647"},"modified":"2023-12-28T22:10:23","modified_gmt":"2023-12-28T22:10:23","slug":"regressions-in-python","status":"publish","type":"page","link":"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/","title":{"rendered":"Regressions in Python"},"content":{"rendered":"\n<p>MD Python brings all of MatDeck\u2019s regression functions to Python, allowing users&nbsp; to use highly optimized C++ functions in their Python code without the need of any complex syntax. With MD Python, Regressions can be done in one simple line, making specialized functions accessible to everyone.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"613\" height=\"44\" src=\"https:\/\/labdeck.com\/wp-content\/uploads\/2023\/05\/linear-regression.png\" alt=\"\" class=\"wp-image-9649\"\/><\/figure>\n<\/div>\n\n\n<p>We can compare MD Python to other third party Python libraries to see how much more accessible MD Python is. In the picture below we use MD Python to run a linear regression on our X and Y data.<\/p>\n\n\n\n<p>We only need <strong>1<\/strong> line to run a linear regression and predict new values with the regression. We can use vectors as well to predict values for a large amount of new data.<\/p>\n\n\n\n<p>Compare that to the picture below, where we use SciKit Learn, the most popular library for regressions in Python.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"184\" src=\"https:\/\/labdeck.com\/wp-content\/uploads\/2023\/05\/scikit-learn-library.png\" alt=\"\" class=\"wp-image-9650\"\/><\/figure>\n<\/div>\n\n\n<p>As we can with SciKit Learn, we need <strong>7 <\/strong>times more code to run the same regression and to predict a new value. Not only do you need <strong>7<\/strong> times more code but you also have to reshape data and use confusing non-Pythonic functions to run a regression that takes <strong>1<\/strong> line with MD Python. In the end, both regressions yield the same answer with MD Python offering a more precise answer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Regression Analysis with MD Python<\/h2>\n\n\n\n<p>Regression Analysis can be quickly and easily done in MatDeck with functions like <strong><em>regression<\/em><\/strong>, <strong><em>regressiontable<\/em><\/strong> and <strong><em>curveregtable. <\/em><\/strong>All MD Python Regression Analysis Function only require one line and allow you to access results immediately and draw conclusions with concise and accurate data. With our data, we can use a function like&nbsp; <strong><em>regressiontable <\/em><\/strong>to find the perfect regression to run on our data without having to individually test and run several different regressions.&nbsp; <strong><em>regressiontable offers all these answers in one line.<\/em><\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"439\" src=\"https:\/\/labdeck.com\/wp-content\/uploads\/2023\/05\/regressiontable.png\" alt=\"\" class=\"wp-image-9651\"\/><\/figure>\n<\/div>\n\n\n<p>As you can see we have <strong><em>regressiontable <\/em><\/strong>allows us to see which regression is the best fit and most accurate. With it, we can see that a Polynomial Regression to the 9<sup>th<\/sup> degree is a perfect fit for our data.<\/p>\n\n\n\n<p>Once again we can see how MD Python allows user to utilize complex mathematics with no experience. Regressions and Regression Analysis are now available, with simple syntax and fast functions, MD Python saves time and money.<\/p>\n\n\n\n<p>MD Python brings an extensive regressions library to Python, below you can see all Regression functions that can be used in Python:<\/p>\n\n\n\n<ul class=\"col-list-3 wp-block-list\">\n<li><a href=\"https:\/\/labdeck.com\/help\/functions\/curve-fitting\/expreg.html\">Exponential regression<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/labdeck.com\/help\/functions\/curve-fitting\/expregcoef.html\">Exponential regression coef.<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/labdeck.com\/help\/functions\/curve-fitting\/linreg.html\">Linear regression<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/labdeck.com\/help\/functions\/curve-fitting\/linregrcoef.html\">Linear regression coef.<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/labdeck.com\/help\/functions\/curve-fitting\/logreg.html\">Logarithmic regression<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/labdeck.com\/help\/functions\/curve-fitting\/logregcoef.html\">Logarithmic regression coef.<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/labdeck.com\/help\/functions\/curve-fitting\/polyreg.html\">Polynomial regression<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/labdeck.com\/help\/functions\/curve-fitting\/polyregcoef.html\">Polynomial regression coef.<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/labdeck.com\/help\/functions\/curve-fitting\/powreg.html\">Power regression<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/labdeck.com\/help\/functions\/curve-fitting\/powregcoef.html\">Power regression coef.<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"widget\">\r\n\t<ul id=\"menu-ai-sidebar-group\">\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/ai-models\/\">AI Models<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/ai-models\/pytorch-no-code-ai-generator\/\">PyTorch No-Code AI Generator<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/ai-models\/google-tensorflow-no-code-ai-generator\/\">Google TensorFlow No-Code AI Generator<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/probability-distribution\/poisson-distribution\/\">Poisson Distribution<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/probability-distribution\/normal-distribution\/\">Normal Distribution<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/probability-distribution\/gamma-distribution\/\">Gamma Distribution<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/probability-distribution\/exponential-distribution\/\">Exponential Distribution<\/a><\/li>\r\n\t<\/ul>\r\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"widget\">\r\n\t<ul id=\"menu-sidebar-python-group\">\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/python-designer\/tkinter-gui-designer\/\">Tkinter GUI Designer<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/python-designer\/modern-tkinter-gui-designer\/\">Modern Tkinter GUI Designer<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/python-designer\/comparing-python-gui-libraries\/\">Comparing Python GUI Libraries<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/python-designer\/python-gui-designer\/\">Python GUI Designer<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/gui-designer\/kivy-ui-designer\/\">Kivy UI Designer<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/databases\/python-databases\/\">Python Databases<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/gui-designer\/drag-and-drop-python-ui-designer\/\">Drag and Drop Python UI Designer<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/python-designer\/dashboard\/\">Dashboard<\/a><\/li>\r\n\t<\/ul>\r\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"widget\">\r\n\t<ul id=\"menu-sidebar-menu-caret\">\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/curve-fitting\/\">Curve Fitting<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/mathematics\/fast-fourier-transform-fft\/\">Fast Fourier Transform (FFT)<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/dsp-digital-signal-processing\/\">Digital Signal Processing<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/spectral-analysis\/\">Spectral Analysis<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/arrayfire\/\">ArrayFire<\/a><\/li>\r\n\t\t<li><a href=\"https:\/\/labdeck.com\/image-processing\/\">Image Processing<\/a><\/li>\r\n\t<\/ul>\r\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>MD Python brings all of MatDeck\u2019s regression functions to Python, allowing users&nbsp; to use highly optimized C++ functions in their Python code without the need of any complex syntax. With MD Python, Regressions can be done in one simple line, making specialized functions accessible to everyone. We can compare MD Python to other third party &#8230; <a title=\"Regressions in Python\" class=\"read-more\" href=\"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/\" aria-label=\"Read more about Regressions in Python\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":10001,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9647","page","type-page","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Regressions in Python - LabDeck<\/title>\n<meta name=\"description\" content=\"With MD Python, Regressions can be done in one simple line, making specialized functions accessible to everyone.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Regressions in Python - LabDeck\" \/>\n<meta property=\"og:description\" content=\"With MD Python, Regressions can be done in one simple line, making specialized functions accessible to everyone.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"LabDeck\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-28T22:10:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/labdeck.com\/wp-content\/uploads\/2023\/05\/linear-regression.png\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/labdeck.com\\\/ai-models\\\/regressions-in-python\\\/\",\"url\":\"https:\\\/\\\/labdeck.com\\\/ai-models\\\/regressions-in-python\\\/\",\"name\":\"Regressions in Python - LabDeck\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/labdeck.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/labdeck.com\\\/ai-models\\\/regressions-in-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/labdeck.com\\\/ai-models\\\/regressions-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/labdeck.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/linear-regression.png\",\"datePublished\":\"2023-05-04T20:50:14+00:00\",\"dateModified\":\"2023-12-28T22:10:23+00:00\",\"description\":\"With MD Python, Regressions can be done in one simple line, making specialized functions accessible to everyone.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/labdeck.com\\\/ai-models\\\/regressions-in-python\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/labdeck.com\\\/ai-models\\\/regressions-in-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/labdeck.com\\\/ai-models\\\/regressions-in-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/labdeck.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/linear-regression.png\",\"contentUrl\":\"https:\\\/\\\/labdeck.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/linear-regression.png\",\"width\":613,\"height\":44},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/labdeck.com\\\/ai-models\\\/regressions-in-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/labdeck.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI Models\",\"item\":\"https:\\\/\\\/labdeck.com\\\/ai-models\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Regressions in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/labdeck.com\\\/#website\",\"url\":\"https:\\\/\\\/labdeck.com\\\/\",\"name\":\"LabDeck\",\"description\":\"Innovative computing environment for Science, Engineering and Mathematics\",\"publisher\":{\"@id\":\"https:\\\/\\\/labdeck.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/labdeck.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/labdeck.com\\\/#organization\",\"name\":\"Labdeck\",\"url\":\"https:\\\/\\\/labdeck.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/labdeck.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/labdeck.com\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/labdeck-logo.png\",\"contentUrl\":\"https:\\\/\\\/labdeck.com\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/labdeck-logo.png\",\"width\":512,\"height\":512,\"caption\":\"Labdeck\"},\"image\":{\"@id\":\"https:\\\/\\\/labdeck.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCmp8LfvQvQ1556jqVwKTA7w\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Regressions in Python - LabDeck","description":"With MD Python, Regressions can be done in one simple line, making specialized functions accessible to everyone.","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:\/\/labdeck.com\/ai-models\/regressions-in-python\/","og_locale":"en_GB","og_type":"article","og_title":"Regressions in Python - LabDeck","og_description":"With MD Python, Regressions can be done in one simple line, making specialized functions accessible to everyone.","og_url":"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/","og_site_name":"LabDeck","article_modified_time":"2023-12-28T22:10:23+00:00","og_image":[{"url":"https:\/\/labdeck.com\/wp-content\/uploads\/2023\/05\/linear-regression.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/","url":"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/","name":"Regressions in Python - LabDeck","isPartOf":{"@id":"https:\/\/labdeck.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/#primaryimage"},"image":{"@id":"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/labdeck.com\/wp-content\/uploads\/2023\/05\/linear-regression.png","datePublished":"2023-05-04T20:50:14+00:00","dateModified":"2023-12-28T22:10:23+00:00","description":"With MD Python, Regressions can be done in one simple line, making specialized functions accessible to everyone.","breadcrumb":{"@id":"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/labdeck.com\/ai-models\/regressions-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/#primaryimage","url":"https:\/\/labdeck.com\/wp-content\/uploads\/2023\/05\/linear-regression.png","contentUrl":"https:\/\/labdeck.com\/wp-content\/uploads\/2023\/05\/linear-regression.png","width":613,"height":44},{"@type":"BreadcrumbList","@id":"https:\/\/labdeck.com\/ai-models\/regressions-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/labdeck.com\/"},{"@type":"ListItem","position":2,"name":"AI Models","item":"https:\/\/labdeck.com\/ai-models\/"},{"@type":"ListItem","position":3,"name":"Regressions in Python"}]},{"@type":"WebSite","@id":"https:\/\/labdeck.com\/#website","url":"https:\/\/labdeck.com\/","name":"LabDeck","description":"Innovative computing environment for Science, Engineering and Mathematics","publisher":{"@id":"https:\/\/labdeck.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/labdeck.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/labdeck.com\/#organization","name":"Labdeck","url":"https:\/\/labdeck.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/labdeck.com\/#\/schema\/logo\/image\/","url":"https:\/\/labdeck.com\/wp-content\/uploads\/2017\/01\/labdeck-logo.png","contentUrl":"https:\/\/labdeck.com\/wp-content\/uploads\/2017\/01\/labdeck-logo.png","width":512,"height":512,"caption":"Labdeck"},"image":{"@id":"https:\/\/labdeck.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.youtube.com\/channel\/UCmp8LfvQvQ1556jqVwKTA7w"]}]}},"_links":{"self":[{"href":"https:\/\/labdeck.com\/wp-json\/wp\/v2\/pages\/9647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labdeck.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/labdeck.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/labdeck.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labdeck.com\/wp-json\/wp\/v2\/comments?post=9647"}],"version-history":[{"count":3,"href":"https:\/\/labdeck.com\/wp-json\/wp\/v2\/pages\/9647\/revisions"}],"predecessor-version":[{"id":10644,"href":"https:\/\/labdeck.com\/wp-json\/wp\/v2\/pages\/9647\/revisions\/10644"}],"up":[{"embeddable":true,"href":"https:\/\/labdeck.com\/wp-json\/wp\/v2\/pages\/10001"}],"wp:attachment":[{"href":"https:\/\/labdeck.com\/wp-json\/wp\/v2\/media?parent=9647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}