Skip to main content
Machine Learning

Introduction to Machine Learning — Session 1

📅 Published: 2026-06-27
🎓 Level: postgraduate
👥 Audience: Graduate students in computer science and related fields beginning their study of machine learning

Introduction to Machine Learning — Session 1


1.1 What is Machine Learning?

Hook. You write a program to filter spam email. You start with a few rules: block "free," block "credit card," block "amazing". Within a week, spammers write "FR33" and your rules fail. You add more rules. They adapt again. The rule list grows to thousands of lines, and you are always one step behind. What if the computer could figure out its own rules — by reading millions of emails you already labeled as spam or not spam?

1.1.1 Traditional Programming vs. Machine Learning

In traditional programming, a human writes explicit rules. The computer applies those rules to data and produces output:

If the rules are imprecise, the output is wrong. The sandwich example illustrates this: the rule "put the pieces together" did not specify that peanut butter and jelly must face inward. The result was a messy sandwich.

In machine learning, the roles are reversed. The human provides data and the desired output. The computer's job is to learn the rules:

This is sometimes called reverse engineering. Instead of writing the program, you give the computer examples of correct behavior and let it discover the program.

Intuition — chef vs. cook. A cook follows a recipe exactly. When an ingredient is missing or the oven runs hot, the cook panics. A chef knows how ingredients interact, adapts to changes, and troubleshoots problems. The goal of this course is to produce chefs, not cooks. The build and breakdown strategy supports this: first build a system using available APIs, then break it down to understand what happens inside.

Machine learning flips the traditional programming paradigm: the computer writes the rules, given data and desired outcomes.


1.2 IID Data — Independent and Identically Distributed

Hook. You flip a fair coin five times. The first flip is heads. Does the coin suddenly "owe" you a tails on the next flip? No — each flip stands alone. But ask the same question about tomorrow's stock price given today's price, and suddenly the answer is completely different.

1.2.1 Independence

Two random variables and are independent if knowing the value of tells you nothing about the value of . Formally:

Equivalently, the joint probability factorizes:

What this means in plain language: the outcome of one data point has no effect on the outcome of any other data point. They carry no information about each other.
Fair coin flips. Let , . For a fair coin:

The first flip being heads does not change the probability that the second flip is heads. Each toss is a standalone event. ✓

Counterexample — stock prices. Let be the price of a stock at time . The price today, , is strongly influenced by the price yesterday, . Formally, . Stock prices are dependent — they form a time series, not an independent sample.

1.2.2 Identically Distributed

A set of random variables is identically distributed if each is drawn from the same underlying probability distribution. That is, for any value :

where is the cumulative distribution function (CDF). All data points share the same mean , the same variance , and the same distributional shape (e.g., all are Gaussian).

Exam scores — identically distributed. Twenty students take the same math test under identical conditions. After grading, the scores follow a normal (Gaussian) distribution with mean and standard deviation . Every student's score is a random draw from this same distribution . They are identically distributed.

Sense-check: pick any student at random. Your best guess for their score is 70, with a typical spread of ±10. No student has a systematically easier or harder test. ✓
Trap — two distributions mixed together. Suppose some students get an easy version of the test (mean 85, SD 5). Others get a hard version (mean 55, SD 8). Now the data is NOT identically distributed — it comes from a mixture of two populations. Using a single normal distribution to model it would be wrong. Always check whether your data might come from multiple distinct sources.
Trap — seasonal data. Daily temperatures collected across summer (mean ~35°C) and winter (mean ~18°C) are not identically distributed. The distribution shifts with the season. This is a common failure mode when pooling data across time without checking for distributional shifts.

1.2.3 Why IID Matters for This Course

The IID assumption underpins nearly every foundational ML algorithm covered in this course. When we write a training set as , the IID assumption says:

  1. Independence: The pair is independent of for all .
  2. Identical distribution: Every is drawn from the same joint distribution .

This assumption lets us write the likelihood of the entire dataset as a product:

Without independence, this factorization fails. Without identical distribution, a single model cannot capture all data points. This course focuses on IID data because the core algorithms — linear regression, logistic regression, Naïve Bayes, SVM, decision trees — all rely on this assumption.

IID means every data point is a fresh, independent draw from the same underlying distribution. When this assumption breaks (time series, spatial data, multi-source data), different techniques — covered in other courses — are required.


1.3 The PTE Framework — Defining a Learning Problem

Hook. "Build me a model to predict customer churn". This request is too vague. Which customers? Predict churn when — next week, next month? How will you know the model is good? Without precise answers, you don't have a machine learning problem — you have a wish. The PTE framework turns wishes into solvable problems.

1.3.1 The Formal Definition

Mitchell's definition (1997): A computer program is said to learn from experience with respect to some class of tasks and performance measure , if its performance at tasks in , as measured by , improves with experience .

The three components:

  • Task : What exactly is the job? Classify emails? Predict a price? Recognize handwriting?
  • Performance : How will success be measured? Almost always a number — accuracy, mean squared error, average distance before failure.
  • Experience : What data can the system learn from? Labeled examples? Unlabeled sensor readings? Games played against itself?
Notation note. Mitchell's textbook writes the ordering as T, P, E (Task, Performance, Experience). The professor uses the ordering P, T, E — same three components, different presentation order. The content is identical. In exam contexts, follow whichever ordering the professor uses in lecture.

1.3.2 PTE Worked Examples

Handwritten word recognition.

  • Task : Recognize and classify handwritten words from images (map each image to a digit label: 0, 1, ..., 9).
  • Performance : The percentage of words the model correctly classified:
  • Experience : A database of handwritten images, each labeled by a human with the correct digit.
Sense-check: If the model gets 95 out of 100 images correct, . A random-guessing baseline on 10 classes gives . The model learned something. ✓
Spam filtering.

  • Task : Categorize each incoming email as spam or non-spam (ham).
  • Performance : The percentage of emails correctly classified:
  • Experience : A database of emails where each has been labeled by users as spam or non-spam.
Playing checkers — the reinforcement learning case.

  • Task : Play checkers according to the rules.
  • Performance : The percentage of games won against opponents.
  • Experience : Games played against itself. No human labels. The algorithm plays millions of games. It receives a reward for moves that lead to wins and a penalty for moves that lead to losses. Over time, it learns a policy (a strategy mapping board states to moves) that maximizes cumulative reward. This is fundamentally different from supervised learning. There is no labeled "correct move" for each board state; the algorithm discovers it through trial and error.
Autonomous driving — why performance measure choice matters.

  • Task : Drive on a four-lane highway using vision sensors.
  • Performance : The average distance traveled before an error (as judged by a human overseer). NOT the number of trips completed, NOT accuracy. Why? A system that completed 50 trips at high speed but killed 10 pedestrians is unacceptable. A single catastrophic error outweighs any count of "successful" trips.
  • Experience : A sequence of images and steering commands recorded while observing a human driver. Billions of examples are collected before the car ever operates autonomously on a public road.
Key lesson: Performance must be defined according to the domain and the cost of failure. Not all mistakes are equal.

If you cannot define P, T, and E for a problem, you do not yet have a machine learning problem — you only have an idea. The PTE framework is the first gate every ML project must pass.

1.3.3 Domain Connection

The PTE framework appears in every ML research paper and industry project proposal. Sometimes it appears under different names (e.g., "problem formulation," "objective specification"). Mitchell's 1997 formulation remains the standard. It forces precision. A vague goal like "make the system smarter" cannot be optimized, but "improve classification accuracy on held-out test data from 87% to 92%" can.


1.4 Features, Attributes, Predictors, and Dimensions

Hook. Describe your best friend to someone who has never met them: "fair skin, long curly hair, about 5 feet 5 inches, age 35, roughly 60 kg". You just listed their features — the measurable properties that define them as a data point. A computer needs exactly this kind of description, but for every single entity in the dataset.

1.4.1 Formal Definitions

An entity is a single real-world object (e.g., one specific student). An entity set is the collection of all entities under study (e.g., all students in the batch).

Features (synonyms: attributes, predictors, characteristics, dimensions, independent variables) are the properties used to describe each entity. Formally, each entity is represented as a vector:

where:

  • indexes the entity (row number in the dataset)
  • is the number of features (the dimensionality)
  • is the value of the -th feature for the -th entity
Student job placement prediction dataset. Each student is an entity. The features are:
Feature Type Example
CGPA Numerical (continuous) 9.0
Communication skill Categorical (ordinal) Average
Aptitude Categorical (ordinal) Average
Programming skill Categorical (ordinal) Excellent

Each student is represented as a 4-dimensional vector:

The target variable (what we want to predict) is: Job Offer (Yes / No).

For a new student with CGPA 9.0, average communication, average aptitude, and excellent programming, the trained model predicts whether they will get a job offer.

1.4.2 High-Dimensional Data

High-dimensional data is a dataset where (the number of features) is large — typically . Describing a person with 100 characteristics is practically impossible for a human, but a computer handles it routinely. The challenge is that as grows:

  1. The curse of dimensionality: data points become sparse in the feature space. The volume of the space grows exponentially with , meaning exponentially more data is needed to maintain the same density of coverage.
  2. Computational cost: many algorithms scale as or worse.
  3. Interpretability: a model with 100 features is hard for a human to understand.

Features are the building blocks of every ML model. Different names (attribute, predictor, dimension, characteristic) all refer to the same thing. A measurable property of an entity, organized as a column in the data matrix.


1.5 Types of Machine Learning

Hook. A teacher hands you 100 math problems with answers, says "study these, then solve new ones". A different teacher hands you 100 unlabeled problems and says "find patterns". A third teacher gives you a video game, says "play it a million times and figure out what works". These three scenarios map to the three main branches of ML — and each demands a fundamentally different kind of learning.

1.5.1 The Supervision Spectrum

Machine learning algorithms are categorized by the level of supervision — the nature and timing of the feedback provided during training:


1.5.2 Supervised Learning

In supervised learning, the training data consists of input-output pairs:

where is the feature vector and is the label (the correct answer, provided by a human). The algorithm learns a function such that:

The key word is labeled — every training example has been annotated with the ground truth.

Intuition — a student with an answer key. You show a student a photo of a cat and say "This is a cat". You show a photo of a dog and say "This is a dog". After enough examples, the student can label new photos correctly. The answer key (labels) enables learning. Without it, the student would only see photos without names. They might group similar-looking animals together, but they would not know which group is "cat."

1.5.2.1 Classification

Classification is supervised learning where the target label is a category (discrete, finite set of classes). Formally:

where is the number of classes. The model learns a decision rule .

Examples: spam/ham (K=2), iris species (K=3), digit recognition (K=10), benign/malignant tumor (K=2).
Tumor classification — single feature. Given tumor size (in mm), predict whether the tumor is benign or malignant.

The model learns a threshold : if , classify as malignant; otherwise, benign.

With real numbers: suppose mm. A 30 mm tumor → malignant. A 10 mm tumor → benign. Some overlap exists near the boundary (a 24 mm tumor could go either way) — this is the irreducible classification error.

Tumor classification — two features. Now add patient age alongside tumor size . The model must learn a decision boundary — the equation of a line (or hyperplane) that separates the two classes:

where are learned weights and is the bias term. For any point , compute:

If score , predict malignant. If score , predict benign.

With features, the decision boundary is a -dimensional hyperplane in . More features mean a more complex separating surface.

1.5.2.2 Regression

Regression is supervised learning where the target label is a continuous, real-valued number. Formally:

The model learns a function that predicts a quantity — not a category.

Examples: predicting house price, used car price, stock price, temperature tomorrow, patient's blood pressure.
Used car price prediction. Features: brand, year, engine capacity (cc), mileage (km), distance traveled, whether used as a cab. Target: selling price in INR.

The model learns a function mapping these features to a rupee amount:

If the true price is ₹450,000 and the model predicts ₹435,000, the error is ₹15,000 — acceptable for a price estimate. If the model predicted "expensive" instead of a number, that would be classification, not regression.

The one-line rule: look at the target variable. If it's a category → classification. If it's a number → regression. Everything else — the algorithm, the math, the evaluation metric — follows from this single distinction.

1.5.2.3 Supervised Learning Workflow

  1. Collect training data — labeled examples (the "past experience").
  2. Identify features from the training data.
  3. Train the model — it learns the mapping from the labeled examples.
  4. Test — feed new (unseen) data through to make predictions.
  5. Evaluate — compare predictions against held-out labels using the chosen performance measure .

1.5.3 Unsupervised Learning

In unsupervised learning, the training data has no labels:

The algorithm receives only the input vectors. Its job: find hidden structure — groups, patterns, associations — without being told what to look for.

Intuition — a pile of mixed Lego bricks. You dump a box of Lego bricks on the floor. With no instructions, you naturally sort them by color, or by size, or by shape. You are finding clusters — inherent groupings in the data. You don't know in advance how many color groups exist or what to call them. The structure emerges from the data itself.

1.5.3.1 Clustering

Market segmentation. A retailer has customer data with these features: zip code, family income, number of visits per month, average money spent per month. No target label is provided.

The algorithm (e.g., K-means) groups customers into clusters. It might discover:

  • Cluster A: High income, high spending, frequent visits → "big spenders"
  • Cluster B: Low income, low spending, infrequent visits → "budget shoppers"
  • Cluster C: Medium income, irregular spending → "occasional buyers"

The algorithm finds the groups. A human analyst then names them and decides the business action (e.g., target Cluster A with premium offers).

1.5.3.2 Association Analysis (Market Basket Analysis)

Association analysis finds strong co-occurrence patterns among items in transaction data — without any pre-labeled output. A classic rule:

Support: 60% of all transactions contain both bread and beer. Confidence: 90% of transactions that contain bread also contain beer.
Business strategies from one rule. Retail store discovers that 90% of customers who buy bread also buy beer. Strategy 1 — convenience: Place bread and beer together for easy access. Customers find both quickly. Strategy 2 — impulse maximization: Place bread at one end of the store and beer at the far opposite end. Customers walk the full length, passing many other items, increasing impulse purchases — especially effective when customers shop with children.

The same data, the same association rule — two opposite business strategies, both valid. The algorithm finds the pattern; the business decides the action.


1.5.4 Semi-Supervised Learning

Semi-supervised learning combines a small labeled dataset with a large unlabeled dataset :

The algorithm uses the structure in to improve learning from the sparse labels in .

Family photo tagging — the smart compromise. You have 10,000 family photos (unlabeled). You want to tag each photo as mom, dad, sister, dog, or self (5 categories).

  • Supervised only: Pay someone to label all 10,000 photos. Expensive, slow, accurate.
  • Unsupervised only: Ask the algorithm to find 5 clusters from the raw pixel data. Fast, cheap, but accuracy uncertain.
  • Semi-supervised (best of both):
  • Manually label only 50 photos (5 classes × 10 examples each).
  • Run unsupervised clustering on all 10,000 photos, producing ~5 groups.
  • Observe where the 50 labeled photos fall. If all photos labeled "mom" land in the same cluster, label that entire cluster as "mom."
  • Repeat for all clusters. Result: all 10,000 photos tagged, only 50 manually labeled.

The algorithm first clusters, then uses the sparse labels to assign meaning to each cluster. This is the practical sweet spot for many real-world problems where labeling is expensive.


1.5.5 Reinforcement Learning

Reinforcement learning (RL) is fundamentally different from supervised and unsupervised learning. There are no labels — only a delayed reward signal from the environment.

Formal components:

  • Agent: The learner / decision-maker.
  • Environment: The world the agent operates in.
  • State : The situation at time .
  • Action : What the agent does at time .
  • Reward : Scalar feedback from the environment after taking action in state .
  • Policy : A mapping from states to actions — . This is what the agent learns.

The agent's goal: maximize the cumulative reward over time:

where is the discount factor — rewards now are worth more than rewards later.

Intuition — training a dog to sit. You say "sit". The dog tries: lie down (no treat), bark (no treat), run (no treat), sit (treat!). After a few trials, the dog builds a policy: "When I hear 'sit,' the action that yields a treat is sitting". The dog is not thinking "I should obey the human". It is thinking "which action maximizes treats?" The correct behavior emerges as a side effect of reward maximization. This is exactly how RL agents learn — they chase the reward, and the task gets accomplished in the process.
Intuition — robotic vacuum cleaner. The vacuum's reward function: +1 for every speck of dirt picked up, −1 for bumping into walls. The vacuum does not care about "clean floors". It cares about maximizing its cumulative reward. In doing so, the floor gets cleaned. The task is a side effect — this is a defining feature of RL.

RL feedback is delayed and indirect. The agent must figure out which of its past actions caused the eventual reward — the credit assignment problem. This makes RL harder than supervised learning, but also far more general. Any problem that can be framed as reward maximization is fair game, from game-playing to robotics to autonomous driving.

1.5.6 Domain Connection

The supervision spectrum is not academic taxonomy . It determines which algorithms you can use, how much labeling budget you need, and what performance guarantees you can expect. In industry, the choice is often pragmatic. Start with unsupervised exploration to understand the data. Label a small subset for semi-supervised prototyping. Then scale to fully supervised when the ROI justifies the labeling cost.


1.6 When to Use Machine Learning (and When Not To)

Hook. Not every problem needs machine learning. Calculating payroll is fully specified by rules: Pay = Hours × Rate − Taxes + Deductions. Throwing a neural network at it adds complexity, cost, and uncertainty — with zero benefit. Knowing when NOT to use ML is as important as knowing when to use it.

1.6.1 Three Cases Where ML Is Appropriate

Case 1 — Human expertise does not exist. The problem is in an environment with no human expert. The system must learn rules on its own by interacting with the environment. Mars rover navigation: No programmer can write code for every rock, slope, or sandy patch a rover might encounter on Mars. The rover uses onboard cameras and laser range-finders to build a terrain model and learn what is safe to traverse. PTE breakdown: = identify safe terrain, = camera + laser data, = distance traveled before getting stuck. Large Hadron Collider (LHC): Petabytes of particle collision data. No human can look at raw sensor readings and identify a Higgs boson event. An ML model hunts for tiny statistical anomalies — deviations of a few parts per billion — that signal interesting physics.
Case 2 — Humans can perform the task but cannot explain how. These are tasks we find remarkably easy but cannot articulate as rules. Voice recognition: You instantly recognize your friend's voice, even when they say the same word as a stranger. But you cannot explain what "warmth" in a voice means in programmable terms. "The voice has a kind of resonant quality" is not a rule a computer can execute. ML bypasses this: feed it audio samples labeled with speaker identity, and it learns the acoustic signature without needing a human-readable rule. Face description: You describe a person as having "kind of pointy nose, curly hair, about 5 feet tall." "Kind of pointy" is not a computable feature. ML learns directly from labeled images — no verbal description needed.
Case 3 — Models must be customized to individuals. No single static rule works for everyone. The correct behavior differs per user or changes constantly. Personalized medicine: A standard drug dose works for ~70% of people, is toxic for ~10%, and has no effect on ~20%. An ML model trained on an individual's genomic data, blood markers, and lifestyle can predict their personal disease risk. It can also recommend an optimal dosage. No one-size-fits-all formula exists — the model must learn from the individual's own data.

1.6.2 When NOT to Use ML — Deterministic Tasks

Do NOT use ML for deterministic tasks — problems where the output is 100% defined by concrete, known, unchanging rules.

  • Payroll: Pay = Hours × Rate − Taxes + Deductions. Fully specified arithmetic.
  • Bank balance: Balance = Previous Balance + Credits − Debits. Rule-based.
  • Vending machine: If (money ≥ price AND button pressed) → dispense product. Pure if-then-else.

Adding ML to these adds complexity, unpredictability, and maintenance burden with no benefit. Use the simplest tool that solves the problem.

Use ML when rules are unknown, unexplainable, or must adapt to individuals. Use traditional programming when rules are known, fixed, and fully specifiable.


1.7 Dimensionality Reduction (Preview)

Hook. Your dataset has 500 columns, but your algorithm slows to a crawl beyond 50. The obvious solution — "delete 450 columns" — is wrong. Every column carries information, and data is more valuable than gold. So how do you keep the information while reducing the dimensions?
Dimensionality reduction is the process of reducing the number of features while preserving as much information (variance) as possible. You never simply delete features — you consolidate their information into fewer dimensions. Principal Component Analysis (PCA) does this by finding new axes (principal components) that are linear combinations of the original features. They are ranked by how much variance they capture:

where () is a matrix whose columns are the top eigenvectors of the data covariance matrix. The transformed vector lives in a lower-dimensional space but retains the bulk of the original data's variance.

Intuition — shadow of a 3D object. Hold a complex 3D wire sculpture under a light. Its 2D shadow on the wall captures much of the shape's information. You can often recognize the object from the shadow alone. PCA finds the "best angle" to project the data so the shadow preserves the most information. The dropped dimension (depth) is not deleted — its effect is folded into the remaining two.
Trap — "my algorithm can't handle 100 columns, so I'll drop 20." This is a poor decision. Every column represents information someone collected, stored, and maintained. Dropping features arbitrarily discards potentially critical signal. Always prefer consolidation (PCA, feature selection with importance scoring) over arbitrary deletion.

PCA does not delete features — it combines them. The effect of eliminated dimensions is captured in the retained principal components. Information is consolidated, not lost.


1.8 Summary — Types of Machine Learning

Type Target Variable Feedback Example Algorithms
Supervised — Classification Categorical Labeled data Logistic regression, Naïve Bayes, SVM, Decision trees, Neural networks
Supervised — Regression Continuous Labeled data Linear regression
Unsupervised — Clustering None (finds groups) No labels K-means, Hierarchical clustering, EM
Unsupervised — Association None (finds item relationships) No labels Market basket analysis (Apriori)
Semi-supervised Categorical (sparse labels) Few labeled + many unlabeled Clustering + label propagation
Reinforcement None (learns policy ) Delayed reward/penalty Q-learning, Policy gradient

1.9 Course Logistics

Evaluation structure:
Component Weight Details
Quiz (EC1) 10% 3 quizzes; best 2 counted. 1 hour, 1 attempt, 24-hour window (Sat 7 PM – Mon 7 PM)
Assignment (EC1) 20% 2 group assignments (10% each). ~4 weeks to complete
Mid-semester (EC2) 30% After 8 sessions. Offline at designated centers
End-semester (EC3) 40% Comprehensive. Offline at designated centers
Grading: Relative grading — no fixed pass percentage. E grade = fail, must repeat. Minimum CGPA 5.5 by end of third semester to proceed to dissertation (5.49 ≠ 5.5 — strictly enforced). Resources: Primary textbook — Tom Mitchell, Machine Learning. Reference — Christopher Bishop, Introduction to Data Mining. Slides are facilitation tools, NOT enough for exam preparation. The textbook is essential. Labs in OSHA Lab (Jupyter Notebook) are ungraded but strongly recommended.

ML Lecture 1 notes · Introduction to Machine Learning — Session 1

Machine Learning· postgraduate· 2026-06-27

Summary

Machine Learning lecture covering the PTE framework for defining learning problems, IID data assumptions, feature engineering, types of ML (supervised, unsupervised, semi-supervised, reinforcement learning), and when to apply ML vs traditional programming.

Learning Objectives

1Define machine learning and distinguish it from traditional programming
2Understand the IID (Independent and Identically Distributed) assumption and why it matters
3Apply the PTE (Performance, Task, Experience) framework to formulate ML problems
4Identify features, attributes, and dimensionality in data
5Differentiate between supervised, unsupervised, semi-supervised, and reinforcement learning
6Determine when ML is appropriate and when traditional programming suffices

Sections Breakdown

1What is Machine Learning?

Introduces the paradigm shift from traditional programming to ML, where the computer learns rules from data and desired outputs rather than following explicit human-written instructions.

2IID Data — Independent and Identically Distributed

Explains the statistical assumptions of independence and identical distribution that underpin most foundational ML algorithms, with examples and counterexamples.

3The PTE Framework — Defining a Learning Problem

Presents Mitchell's formal definition of learning with Performance, Task, and Experience components, with worked examples for handwriting recognition, spam filtering, checkers, and autonomous driving.

4Features, Attributes, Predictors, and Dimensions

Defines how entities are represented as feature vectors, introduces dimensionality and the curse of dimensionality.

5Types of Machine Learning

Covers the supervision spectrum: supervised (classification and regression), unsupervised (clustering and association), semi-supervised, and reinforcement learning with intuitive analogies.

6When to Use Machine Learning (and When Not To)

Three cases where ML is appropriate and warnings against using ML for deterministic, rule-based tasks.

7Dimensionality Reduction (Preview)

Previews PCA as a method for consolidating information from many features into fewer dimensions.

Graduate students in computer science and related fields beginning their study of machine learning

Exam Revision Notes

Below is the distilled, exam-ready core of this lecture. Every entry is built from the full textbook notes above. Use this section for rapid review — but if something doesn't make sense, go back to the full explanation in the main content.

1.1 What is Machine Learning?

Must-know: Machine learning flips the traditional programming paradigm. the computer writes the rules, given data and desired outcomes.

Top pitfall: Confusing this concept with related but distinct ideas

Self-check: What are the key principles of what is machine learning?, and how do they apply in practice?

Connects to: IID Data — Independent and Identically Distributed, The PTE Framework — Defining a Learning Problem, Features, Attributes, Predictors, and Dimensions

1.2 IID Data — Independent and Identically Distributed

Must-know: IID means every data point is a fresh, independent draw from the same underlying distribution. When this assumption breaks (time series, spatial data, multi-source data), different techniques. covered in other courses — are required.

Top pitfall: Trap — two distributions mixed together. Suppose some students get an easy version of the test (mean 85, SD 5). Other...

Self-check: What are the key principles of iid data. independent and identically distributed, and how do they apply in practice?

Connects to: What is Machine Learning?, The PTE Framework — Defining a Learning Problem, Features, Attributes, Predictors, and Dimensions

1.3 The PTE Framework — Defining a Learning Problem

Must-know: If you cannot define P, T, and E for a problem, you do not yet have a machine learning problem. you only have an idea. The PTE framework is the first gate every ML project must pass.

Top pitfall: Confusing this concept with related but distinct ideas

Self-check: What are the key principles of the pte framework. defining a learning problem, and how do they apply in practice?

Connects to: What is Machine Learning?, IID Data — Independent and Identically Distributed, Features, Attributes, Predictors, and Dimensions

1.4 Features, Attributes, Predictors, and Dimensions

Must-know: Features are the building blocks of every ML model. Different names (attribute, predictor, dimension, characteristic) all refer to the same thing. A measurable property of an entity, organized as a column in the data matrix.

Top pitfall: Confusing this concept with related but distinct ideas

Self-check: What are the key principles of features, attributes, predictors, and dimensions, and how do they apply in practice?

Connects to: What is Machine Learning?, IID Data — Independent and Identically Distributed, The PTE Framework — Defining a Learning Problem

1.5 Types of Machine Learning

Must-know: The one-line rule: look at the target variable. If it's a category → classification. If it's a number → regression. Everything else. the algorithm, the math, the evaluation metric — follows from this single distinction.

Top pitfall: Confusing this concept with related but distinct ideas

Self-check: What are the key principles of types of machine learning, and how do they apply in practice?

Connects to: What is Machine Learning?, IID Data — Independent and Identically Distributed, The PTE Framework — Defining a Learning Problem

1.6 When to Use Machine Learning (and When Not To)

Must-know: Use ML when rules are unknown, unexplainable, or must adapt to individuals. Use traditional programming when rules are known, fixed, and fully specifiable.

Top pitfall: Do NOT use ML for deterministic tasks. problems where the output is 100% defined by concrete, known, unchanging rule...

Self-check: What are the key principles of when to use machine learning (and when not to), and how do they apply in practice?

Connects to: What is Machine Learning?, IID Data — Independent and Identically Distributed, The PTE Framework — Defining a Learning Problem

1.7 Dimensionality Reduction (Preview)

Must-know: PCA does not delete features. it combines them. The effect of eliminated dimensions is captured in the retained principal components. Information is consolidated, not lost.

Top pitfall: Trap — "my algorithm can't handle 100 columns, so I'll drop 20." This is a poor decision. Every column represents inf...

Self-check: What are the key principles of dimensionality reduction (preview), and how do they apply in practice?

Connects to: What is Machine Learning?, IID Data — Independent and Identically Distributed, The PTE Framework — Defining a Learning Problem

Was this lecture useful?

Loading comments…
🤖

BitsNotes AI Assistant

Subject Notes Assistant

Configure AI Chat

Choose how to access the chatbot
Have your own API key?

Switch to "Bring Your Own Key" tab above for unlimited access with any OpenAI-compatible provider.

🔑 Enter API key above to fetch live models from provider, or enter model name manually.
OpenAI-Compatible API Support

Choose any provider preset (Gemini, DeepSeek, Kimi, GLM, MiniMax, Qwen, OpenAI, Groq, Ollama, etc.) or enter a custom endpoint URL.

Security & Privacy First

Your API key is sent directly from your browser to your specified provider. BitsNotes servers never store or see your key.