This chapter introduces regression-based supervised machine learning methods, emphasizing their application with built-in datasets in R. Readers are guided through core techniques including linear regression, polynomial regression, logistic regression, ridge regression, and lasso regression, each applied to predicting different types of outcomes. Practical instruction covers model fitting, interpretation of coefficients, and evaluation using common metrics such as R-squared, Root Mean Squared Error (RMSE), and Mean Absolute Error (MAE). To support learning, ChatGPT is incorporated as a coding assistant, helping generate R scripts, troubleshoot programming errors, and clarify complex statistical or machine learning concepts. This interactive approach reduces barriers to understanding and encourages experimentation. By working directly with accessible datasets, learners gain valuable hands-on experience that builds technical proficiency while reinforcing critical evaluation skills. The chapter also stresses responsible use of regression methods in public health, connecting technical training to meaningful research and practice.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Supervised Learning II: Regression Models

  • Ricky Leung

摘要

This chapter introduces regression-based supervised machine learning methods, emphasizing their application with built-in datasets in R. Readers are guided through core techniques including linear regression, polynomial regression, logistic regression, ridge regression, and lasso regression, each applied to predicting different types of outcomes. Practical instruction covers model fitting, interpretation of coefficients, and evaluation using common metrics such as R-squared, Root Mean Squared Error (RMSE), and Mean Absolute Error (MAE). To support learning, ChatGPT is incorporated as a coding assistant, helping generate R scripts, troubleshoot programming errors, and clarify complex statistical or machine learning concepts. This interactive approach reduces barriers to understanding and encourages experimentation. By working directly with accessible datasets, learners gain valuable hands-on experience that builds technical proficiency while reinforcing critical evaluation skills. The chapter also stresses responsible use of regression methods in public health, connecting technical training to meaningful research and practice.