🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Science & Analytics › Introduction to Machine Learning for Data Analytics › Lesson 1
TEC-DATA85-08 · Lesson 1 · 9 clock hours · theory

ML Landscape, Vocabulary, and Workspace Setup

Objective. Students will categorize machine learning paradigms and configure a reproducible Python environment with scikit-learn, pandas, and Jupyter before any modeling begins.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

What Is Machine Learning?

Machine learning (ML) is a branch of artificial intelligence in which a computer program learns patterns from data rather than following hand-coded rules written by a programmer. Instead of telling a program exactly what to do in every situation, you give it examples and a learning algorithm, and it figures out the rules itself. This distinction matters in data analytics because most real-world data problems are too complex and changeable for rigid rule sets to stay accurate.

ML is a core skill tested on the CompTIA Data+, IBM Data Science Professional, and Google Data Analytics credentials, and it underpins many visualizations and predictive reports built in Power BI (PL-300).

The Three Main ML Paradigms

Supervised Learning

In supervised learning, every training example has a label — a known correct answer. The algorithm learns to map inputs to outputs by studying many labeled examples. At prediction time, it applies what it learned to new, unlabeled data.

Common tasks:

Business examples: email spam detection, loan default prediction, medical diagnosis support.

The key requirement is a labeled dataset, which is often expensive and time-consuming to produce.

Unsupervised Learning

In unsupervised learning, the training data has no labels. The algorithm looks for structure, patterns, or groupings on its own.

Common tasks:

Business examples: grouping customers for targeted marketing, detecting unusual network traffic without knowing what an attack looks like, compressing high-resolution image datasets.

Reinforcement Learning

In reinforcement learning (RL), a software agent takes actions inside an environment and receives rewards or penalties based on outcomes. Over many trials, the agent learns a policy — a strategy that maximizes cumulative reward.

Business examples: recommendation engines that adjust suggestions based on whether a user clicks, algorithmic trading systems, robotics, and game-playing AI.

RL is more complex to deploy than supervised or unsupervised learning and typically requires significant compute and careful environment design. For most data analytics roles at the entry level, supervised and unsupervised learning are the day-to-day focus.

How the Paradigms Relate

Think of a spectrum:

Most production analytics pipelines combine paradigms: unsupervised clustering identifies customer groups, then supervised classifiers predict which group a new customer belongs to.

Key Vocabulary Before You Model

Before touching any code, align on vocabulary your whole team will use:

Setting Up a Reproducible Python Environment

Reproducibility is a professional standard: another analyst or employer must be able to run your code and get the same results. The steps below are the industry-standard approach.

Step 1 — Install Anaconda. Download the Anaconda distribution from anaconda.com and follow the installer for your operating system. Anaconda bundles Python, conda (a package and environment manager), and JupyterLab.

Step 2 — Create a named conda environment. Open Anaconda Prompt (Windows) or Terminal (Mac/Linux) and run:

```

conda create -n dsanalytics python=3.11

conda activate dsanalytics

```

Naming the environment keeps your project's packages separate from other projects.

Step 3 — Install required libraries. Inside the active environment:

```

conda install scikit-learn pandas matplotlib seaborn jupyterlab

```

Step 4 — Create a requirements.txt. After installation, pin the exact versions:

```

pip freeze > requirements.txt

```

Commit this file to version control so any teammate can recreate your environment with `pip install -r requirements.txt`.

Step 5 — Verify imports. Open JupyterLab (`jupyter lab`) and confirm each library loads without error:

```python

import sklearn, pandas, matplotlib, seaborn

print(sklearn.__version__)

```

A clean output with no error messages confirms your workspace is ready.

Workspace Safety and Data Ethics

No physical hazards such as electrical panels or moving machinery apply to a software data analytics workspace. However, professional safety in data science means:

Why This Setup Matters for the Credentials

The Google Data Analytics Certificate emphasizes clean, reproducible workflows. The IBM Data Science Professional Certificate requires comfort with Python and Jupyter notebooks. CompTIA Data+ tests your knowledge of ML paradigms and when each applies. PL-300 (Power BI) can consume Python scripts and ML model outputs, so a solid local environment is the foundation for everything that follows.

Key terms10

Supervised learningA machine learning paradigm in which the algorithm trains on labeled examples — each input is paired with a known correct output — and learns to predict outputs for new, unseen inputs.
Unsupervised learningA machine learning paradigm in which the algorithm finds structure, clusters, or patterns in data that has no labels or predefined correct answers.
Reinforcement learningA machine learning paradigm in which an agent learns a behavior policy by taking actions in an environment and receiving numerical rewards or penalties as feedback.
FeatureAn input variable (column) fed into a machine learning model; also called a predictor or attribute.
Training setThe portion of a dataset used to fit a machine learning model so it can learn patterns.
Test setA held-out portion of data that the model never sees during training; used only to evaluate final model performance and estimate how well it generalizes.
OverfittingA condition in which a model learns the training data too precisely, including its noise, causing poor performance on new data.
Reproducible environmentA configured workspace — typically a named conda environment with pinned library versions captured in a requirements.txt — that allows any analyst to recreate the exact same software setup and obtain the same results.
condaAn open-source package and environment management system included with Anaconda that creates isolated Python environments and manages library installations.
ClusteringAn unsupervised learning task in which an algorithm groups data points so that members of the same group are more similar to each other than to members of other groups; used in customer segmentation and similar applications.
In class: Illustrated lecture and discussion mapping supervised, unsupervised, and reinforcement learning to real business use cases (spam detection, customer segmentation, recommendation engines); students annotate a concept map. · Lab: install and verify Anaconda/conda environment, create a requirements.txt, confirm scikit-learn, pandas, matplotlib, and seaborn imports run without error in a shared Jupyter notebook. · Small-group analysis of three published ML case studies (each from a different industry); groups present one risk and one benefit to the class, documented in a shared notes file.
Materials: Anaconda distribution, Jupyter Lab, scikit-learn docs (scikit-learn.org), 'Hands-On Machine Learning with Scikit-Learn, Keras & TensorFlow' (Géron) ch. 1, printed ML paradigm taxonomy handout
Check: Exit ticket: student correctly classifies six problem statements into the right ML paradigm with written justification; 5 of 6 correct required to pass.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Machine learning concepts / Data analysis
1. A retail company wants to group its customers into segments based on purchase history, without knowing in advance how many groups exist or what they represent. Which ML paradigm is most appropriate?
Machine learning paradigms
2. An email provider trains a model using millions of emails already marked 'spam' or 'not spam.' After training, the model predicts the category for new incoming email. This is an example of:
Model evaluation / IBM Data Science Professional
3. After training on historical data, a house-price model performs very well on training examples but poorly on new homes it has never seen. This behavior is called:
Python environment setup / Google Data Analytics / IBM Data Science
4. Which command correctly creates an isolated conda environment named 'dsanalytics' using Python 3.11?
Reproducible workflows / Data governance
5. A data analyst wants any colleague to run her notebook and get identical results six months later. Which practice most directly supports this goal?
Machine learning paradigms / IBM Data Science Professional
6. A recommendation engine for a streaming service learns to suggest movies by observing whether users watch, skip, or rate suggestions, and updates its suggestions accordingly. Which ML paradigm does this describe?
Model evaluation / CompTIA Data+
7. Which of the following is the BEST reason to keep a test set completely separate from the training set throughout model development?
Data ethics and governance / IBM Data Science Professional
8. A student notices that her ML model produces very different predictions for customers from one demographic group compared to another, even when their financial profiles are nearly identical. This is most directly a concern related to:
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.