Introduction to Machine Learning - Regression Models

https://ubc-library-rc.github.io/ml-regression/

Land Acknowledgement

UBC Vancouver is located on the traditional, ancestral, and unceded territory of the xʷməθkʷəy̓əm (Musqueam) peoples.

CCDHHN Certificate
This workshop contributes towards the Canadian Certificate in Digital Humanities.

Learning Objectives

  • Understand regression models and their applications in machine learning
  • Train regression models for real-world datasets
  • Interpret and analyze regression model results.

Pre-workshop setup

What is Machine Learning?

  • “Field of study that gives computers the capability to learn without being explicitly programmed" - Arthur Samuel

Replace the question mark

X Y
1 2.2
2 4.8
3 7.1
4 ?

Building a Machine Learning Model

  • Data Collection
  • Data Preprocessing
  • Model Training
  • Model Evaluation
  • Model Deployment
  • Model Improvement

Types of Machine Learning

From javatpoint

Some other types:

  • Reinforcement Learning
  • Transfer Learning

Methods and Algorithms

Data Preparations

  • Types of Features (continuous/categorical)
  • Handling missing values
  • Feature scaling
  • Feature selection

Model Evaluation

Overfitting Underfitting

From geeksforgeeks

Which line is overfitting, underfitting, and a good fit?

Overfitting Underfitting

From ezako.com/blog/overfitting-and-underfitting-concepts-in-machine-learning

Algorithms and Methods

From mathworks

Algorithms and Methods

From mathworks

Python Libraries

Regression

From Javatpoint.com

Limits of Machine Learning

  • Garbage In = Garbage Out
  • Data Limitation
  • Generalization and overfitting
  • Inability to explain answers
  • Ethics and Bias Limitations
  • Computational Limitations

Open Jupyter Notebooks

Open In Colab

Ethics

Ethics

Image from: Lepri, Bruno, Nuria Oliver, and Alex Pentland. "Ethical machines: The human-centric use of artificial intelligence." IScience 24.3 (2021): 102249.

Where to go from here?

Future workshops

Title Series
Regression models Wed, November 18, 2026 (11 am to 1 pm) - Today
Large Language Models Wed, November 25, 2026 (11 am to 1 pm)
Classification and clustering models Wed, December 2, 2026 (11 am to 1 pm)

Register here

More from the Research Commons at (UBC-V)

And from the Center for Scholarly Communication (UBC-O)