[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"sanity-UbVrELddh7zdKt7evKXHCJwsFofWszp535dDqDj6PRM":3,"sanity-iGj0PLeWp5c7EvUmm-bPL9sqrYeU7fpMG2lxn0FTj3g":232},{"data":4,"sourceMap":-1},{"latestPodcast":5,"latestReleases":14,"post":39,"recent":207},[6],{"_id":7,"publishedAt":8,"slug":9,"sponsored":12,"title":13},"50f4509c-4f55-4f11-8adc-5556e821ea77","2026-06-30T07:40:00.000Z",{"_type":10,"current":11},"slug","why-intent-prediction-needs-more-than-an-llm",null,"Why intent prediction needs more than an LLM",[15,21,27,33],{"_id":16,"publishedAt":17,"slug":18,"title":20},"eb5b66eb-9410-4329-83bb-22bbff39402a","2026-04-28T13:00:00.000Z",{"_type":10,"current":19},"turn-scattered-knowledge-into-trusted-intelligence","Turning scattered knowledge into trusted intelligence: Stack Internal 2026.3",{"_id":22,"publishedAt":23,"slug":24,"title":26},"369c2401-b62e-4a37-8ff8-bf603023ecad","2026-03-02T15:03:00.988Z",{"_type":10,"current":25},"what-s-new-at-stack-overflow-march-2026","What’s new at Stack Overflow: March 2026",{"_id":28,"publishedAt":29,"slug":30,"title":32},"5e9053a4-07ea-447c-91ea-29e0b6228537","2026-02-02T15:00:00.000Z",{"_type":10,"current":31},"what-s-new-at-stack-overflow-february-2026","What’s new at Stack Overflow: February 2026",{"_id":34,"publishedAt":35,"slug":36,"title":38},"a1b538eb-a8a6-46d0-80a1-ac70ec9bb935","2026-01-05T10:00:00.000-05:00",{"_type":10,"current":37},"what-s-new-at-stack-overflow-january-2026","What’s new at Stack Overflow: January 2026",{"_createdAt":40,"_id":41,"_rev":42,"_type":43,"_updatedAt":44,"author":45,"body":62,"comments":171,"dateUrl":172,"excerpt":173,"image":174,"legacyBody":177,"product":12,"publishedAt":180,"slug":181,"sponsored":12,"tags":183,"title":206,"visible":171},"2023-05-25T09:39:18Z","wp-post-18152","dgl3SCUzppW3U2LvCoSupg","blogPost","2023-07-13T14:55:59Z",[46],{"_createdAt":47,"_id":48,"_rev":49,"_type":50,"_updatedAt":51,"avatar":52,"bio":57,"employee":58,"name":59,"slug":60},"2023-05-23T16:27:18Z","wp-author-cap-17508","07ZbrKPSUrjrV4wQ6fDpaa","blogAuthor","2023-06-20T15:05:10Z",{"_type":53,"asset":54},"image",{"_ref":55,"_type":56},"image-8c28cb2ef9d5c7ef909c7685c3808e5c66f17aeb-400x400-jpg","reference","Curriculum Developer, Codecademy","none","Sophie Sommer",{"current":61},"sophie-sommer",[63,74,78,86,100,111,152],{"_key":64,"_type":65,"children":66,"markDefs":72,"style":73},"7d1c5ccaa604","block",[67],{"_key":68,"_type":69,"marks":70,"text":71},"7d1c5ccaa6040","span",[],"In the second lesson of the series, we'll learn how to fit and interpret a simple linear regression with a categorical predictor. We'll use a simulated dataset to predict the amount of time someone will spend on a website based on the browser they are using. We'll also predict the rental prices of NYC apartments based on the borough where they are located. In the process, we'll go over some important graphing skills and continue to practice writing code in Python.",[],"normal",{"_key":75,"_type":76,"markDefs":12,"url":77},"77d42dfba9eb","embed","https://www.youtube.com/embed/4_X6hNymJ_4?start=128",{"_key":79,"_type":65,"children":80,"markDefs":85,"style":73},"ceec4f57da24",[81],{"_key":82,"_type":69,"marks":83,"text":84},"ceec4f57da240",[],"Here are some Stack Overflow questions related to the work we did in today's session:",[],{"_key":87,"_type":65,"children":88,"level":94,"listItem":95,"markDefs":96,"style":73},"af5da8cb6db7",[89],{"_key":90,"_type":69,"marks":91,"text":93},"af5da8cb6db70",[92],"399cc7eae8cc","Linear regression with dummy/categorical variables",1,"bullet",[97],{"_key":92,"_type":98,"href":99,"reference":12},"link","https://stackoverflow.com/questions/50733014/linear-regression-with-dummy-categorical-variables",{"_key":101,"_type":65,"children":102,"level":94,"listItem":95,"markDefs":108,"style":73},"714501a32284",[103],{"_key":104,"_type":69,"marks":105,"text":107},"714501a322840",[106],"51b6e5cd10c5","Linear regression with string/categorical features (variables)?",[109],{"_key":106,"_type":98,"href":110,"reference":12},"https://stackoverflow.com/questions/34007308/linear-regression-analysis-with-string-categorical-features-variables",{"_key":112,"_type":65,"children":113,"markDefs":145,"style":73},"acb17561ec21",[114,118,123,127,132,136,141],{"_key":115,"_type":69,"marks":116,"text":117},"acb17561ec210",[],"If you want to ask any questions or provide feedback on the lesson, you are welcome to leave a comment on the ",{"_key":119,"_type":69,"marks":120,"text":122},"acb17561ec211",[121],"3bad7d69ded2","YouTube recording of this lesson",{"_key":124,"_type":69,"marks":125,"text":126},"acb17561ec212",[],". If you’d like to watch a session live, follow the ",{"_key":128,"_type":69,"marks":129,"text":131},"acb17561ec213",[130],"c0646f9ad0b2","Codecademy YouTube channel",{"_key":133,"_type":69,"marks":134,"text":135},"acb17561ec214",[],". We'll be live again on Tuesday at 11am EDT to introduce multiple linear regression. You can join that session ",{"_key":137,"_type":69,"marks":138,"text":140},"acb17561ec215",[139],"66fd16f1be54","here",{"_key":142,"_type":69,"marks":143,"text":144},"acb17561ec216",[],".",[146,148,150],{"_key":121,"_type":98,"href":147,"reference":12},"https://youtu.be/4_X6hNymJ_4?t=128",{"_key":130,"_type":98,"href":149,"reference":12},"https://www.youtube.com/c/codecademy/featured",{"_key":139,"_type":98,"href":151,"reference":12},"https://www.youtube.com/watch?v=GCz1Xr8vqeQ",{"_key":153,"_type":65,"children":154,"markDefs":168,"style":73},"44093e07153d",[155,159,164],{"_key":156,"_type":69,"marks":157,"text":158},"44093e07153d0",[],"Finally, if you want even more linear regression content, you can sign up for the ",{"_key":160,"_type":69,"marks":161,"text":163},"44093e07153d1",[162],"01a220e752b8","Linear Regression in Python interactive course",{"_key":165,"_type":69,"marks":166,"text":167},"44093e07153d2",[]," this series was based on. This course was developed by Sophie and has many more quizzes, projects, and helpful nuggets that we can’t fit into our streams!",[169],{"_key":162,"_type":98,"href":170,"reference":12},"https://www.codecademy.com/learn/linear-regression-mssp?utm_source=stack_overflow&utm_medium=partners&utm_content=cclive_regression_1",true,"2021/05/29","",{"_type":53,"asset":175},{"_ref":176,"_type":56},"image-f5b272e299c874f83358613fe0855ad7f7ea164c-2400x1240-png",{"code":178,"language":179},"\u003C!-- wp:paragraph -->\n\u003Cp>In the second lesson of the series, we'll learn how to fit and interpret a simple linear regression with a categorical predictor. We'll use a simulated dataset to predict the amount of time someone will spend on a website based on the browser they are using. We'll also predict the rental prices of NYC apartments based on the borough where they are located. In the process, we'll go over some important graphing skills and continue to practice writing code in Python.\u003C/p>\n\u003C!-- /wp:paragraph -->\n\n\u003C!-- wp:html -->\n\u003Ciframe width=\"560\" height=\"560\" src=\"https://www.youtube.com/embed/4_X6hNymJ_4?start=128\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen>\u003C/iframe>\n\u003C!-- /wp:html -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>Here are some Stack Overflow questions related to the work we did in today's session:\u003C/p>\n\u003C!-- /wp:paragraph -->\n\n\u003C!-- wp:jetpack/markdown {\"source\":\"- [Linear regression with dummy/categorical variables](https://stackoverflow.com/questions/50733014/linear-regression-with-dummy-categorical-variables)\"} -->\n\u003Cdiv class=\"wp-block-jetpack-markdown\">\u003Cul>\n\u003Cli>\u003Ca href=\"https://stackoverflow.com/questions/50733014/linear-regression-with-dummy-categorical-variables\">Linear regression with dummy/categorical variables\u003C/a>\u003C/li>\n\u003C/ul>\n\u003C/div>\n\u003C!-- /wp:jetpack/markdown -->\n\n\u003C!-- wp:jetpack/markdown {\"source\":\"- [Linear regression with string/categorical features (variables)?](https://stackoverflow.com/questions/34007308/linear-regression-analysis-with-string-categorical-features-variables)\"} -->\n\u003Cdiv class=\"wp-block-jetpack-markdown\">\u003Cul>\n\u003Cli>\u003Ca href=\"https://stackoverflow.com/questions/34007308/linear-regression-analysis-with-string-categorical-features-variables\">Linear regression with string/categorical features (variables)?\u003C/a>\u003C/li>\n\u003C/ul>\n\u003C/div>\n\u003C!-- /wp:jetpack/markdown -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>If you want to ask any questions or provide feedback on the lesson, you are welcome to leave a comment on the \u003Ca href=\"https://youtu.be/4_X6hNymJ_4?t=128\">YouTube recording of this lesson\u003C/a>. If you’d like to watch a session live, follow the \u003Ca href=\"https://www.youtube.com/c/codecademy/featured\">Codecademy YouTube channel\u003C/a>. We'll be live again on Tuesday at 11am EDT to introduce multiple linear regression. You can join that session \u003Ca href=\"https://www.youtube.com/watch?v=GCz1Xr8vqeQ\">here\u003C/a>.\u003C/p>\n\u003C!-- /wp:paragraph -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>Finally, if you want even more linear regression content, you can sign up for the \u003Ca href=\"https://www.codecademy.com/learn/linear-regression-mssp?utm_source=stack_overflow&amp;utm_medium=partners&amp;utm_content=cclive_regression_1\">Linear Regression in Python interactive course\u003C/a> this series was based on. This course was developed by Sophie and has many more quizzes, projects, and helpful nuggets that we can’t fit into our streams!\u003C/p>\n\u003C!-- /wp:paragraph -->","html","2021-05-29T13:00:00.000Z",{"current":182},"level-up-linear-regression-in-python-part-2",[184,192,197,202],{"_createdAt":185,"_id":186,"_rev":187,"_type":188,"_updatedAt":185,"slug":189,"title":191},"2023-05-23T16:43:21Z","wp-tagcat-code-for-a-living","9HpbCsT2tq0xwozQfkc4ih","blogTag",{"current":190},"code-for-a-living","Code for a Living",{"_createdAt":185,"_id":193,"_rev":187,"_type":188,"_updatedAt":185,"slug":194,"title":196},"wp-tagcat-level-up",{"current":195},"level-up","level up",{"_createdAt":185,"_id":198,"_rev":187,"_type":188,"_updatedAt":185,"slug":199,"title":201},"wp-tagcat-linear-regression",{"current":200},"linear-regression","linear regression",{"_createdAt":185,"_id":203,"_rev":187,"_type":188,"_updatedAt":185,"slug":204,"title":205},"wp-tagcat-python",{"current":205},"python","Level Up: Linear Regression in Python - Part 2",[208,214,220,226],{"_id":209,"publishedAt":210,"slug":211,"sponsored":12,"title":213},"28e560af-f0aa-4d46-bd90-f435ad604aa7","2026-06-26T14:00:27.102Z",{"_type":10,"current":212},"paging-charity-how-can-engineering-leaders-avoid-becoming-bond-villains","Paging Charity! How can engineering leaders avoid becoming Bond villains?",{"_id":215,"publishedAt":216,"slug":217,"sponsored":12,"title":219},"4b22c2a3-3779-4966-93eb-5230391dbdce","2026-06-23T14:08:58.595Z",{"_type":10,"current":218},"your-ai-shipped-a-backend-that-boots-that-is-the-whole-problem","Your AI shipped a backend that boots. That is the whole problem.",{"_id":221,"publishedAt":222,"slug":223,"sponsored":12,"title":225},"5cf362e1-fe7b-45af-b69c-914731c6a052","2026-06-23T14:00:00.000Z",{"_type":10,"current":224},"the-2026-developer-survey-is-now-open-for-human-developers-only","The 2026 Developer Survey is now open (for human developers only)!",{"_id":227,"publishedAt":228,"slug":229,"sponsored":12,"title":231},"30b995f7-7cb9-4dd8-bf71-d0685940a32b","2026-06-19T14:00:00.000Z",{"_type":10,"current":230},"dispatches-from-o-reilly-from-capabilities-to-responsibilities","Dispatches from O'Reilly: From capabilities to responsibilities",{"data":233,"sourceMap":-1},{"count":234,"lastTimestamp":12},0]