Understanding Machine
Learning
A comprehensive introduction to machine learning fundamentals,
types, and real-world applications for university students and staff
What is Machine Learning?
Formal Definition
A program learns from experience E with respect to task T and performance P if its
performance improves with experience
"Machine learning gives computers the ability to learn without being explicitly
programmed" — Tom Mitchell
ML in Everyday Life
Google Photos Netflix Recommendations
Automatically identifies and tags faces in your photo librarySuggests content based on viewing history and preferences
Spam Filters Fraud Detection
Learns to distinguish legitimate emails from unwanted Identifies unusual transaction patterns to prevent fraud
messages
AI vs. ML vs. Data Science
Artificial Intelligence Machine Learning Data Science
Creating systems that mimic Subset of AI focused on learning Broader field extracting insights
human intelligence from data from data
• Logical reasoning • Pattern recognition • Statistics & ML
• Natural language • Mathematical models • Visualization
• Robotics & planning • No hard-coded rules • Business knowledge
Three Fundamental Types of ML
Reinforcement
Unsupervised Learning
Supervised Learning Learning
Learning through trial and
Learning from labeled data with Finding patterns in unlabeled error with rewards
known answers data without guidance
Optimizing decisions over time
Like studying with an answer key Discovering hidden structures
independently
Supervised Learning in Action
Case Study: Predicting House Prices
Input Features:
• Square footage
• Location & neighborhood
• Number of bedrooms
• Age of property
Output: Predicted selling price
Algorithms: Linear Regression, Random Forest
Classification: Predicting
Categories
Real-World Popular Algorithms
Examples • Logistic Regression
• Weather prediction: • Decision Trees & Random
Rainy/Sunny/Cloudy Forest
• Email filtering: Spam or • Support Vector Machines
legitimate (SVM)
• Medical diagnosis: Diseased • k-Nearest Neighbors (k-NN)
or healthy • Naive Bayes
• Image recognition: Cat or dog
Unsupervised Learning: Finding Hidden Patterns
Customer Segmentation Document Clustering Anomaly Detection
Group shoppers by behavior, spending, and preferences Automatically organize similar articles and content Identify unusual patterns and outliers in data
Case Study: E-commerce Segmentation
Using k-Means Clustering to classify customers into groups:
High-Value Window Shoppers Occasional Buyers
Reinforcement Learning: Learning by Doing
The Training Process
Action
Agent takes a step
Feedback
Receives reward or penalty
Learning
Adjusts strategy
Optimization
Finds best approach
Key Takeaways
01
ML learns from data and experience
Unlike traditional programming, it improves performance automatically
02
Three core types serve different purposes
Supervised (labeled), Unsupervised (patterns), Reinforcement (rewards)
03
Real-world applications are everywhere
From spam filters to self-driving cars to personalized recommendations
04
Choose the right approach for your problem
Classification vs regression vs clustering vs reinforcement depends on your data
and goals