Objective. Students will categorize machine learning paradigms and configure a reproducible Python environment with scikit-learn, pandas, and Jupyter before any modeling begins.
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.
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).
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.
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.
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.
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.
Before touching any code, align on vocabulary your whole team will use:
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.
No physical hazards such as electrical panels or moving machinery apply to a software data analytics workspace. However, professional safety in data science means:
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.
Answer each question, then check it. Nothing is recorded; this is your own practice.
A free tech program — complimentary, as our commitment to get America working. Help us build VoTechWorks. Tell us what works, what doesn’t, and what you want to learn.