Week 8: Introduction to Machine Learning
Quick overview of today’s plan:
Let’s start with some feedback and discussion on the midterm project:
Activity
Converse with your neighbor and identify…
Important: Your peer reviews are due by end of day Thursday
Peer Review Guidelines
Questions about the peer review process?
You’ve mastered exploratory data analysis - describing what happened in your data. Now we move to machine learning - predicting what might happen next!
Exploratory Data Analysis (EDA)
✅ Advantages:
❌ Limitations:
Machine Learning (ML)
✅ What it can do:
Business Questions ML Answers:
You interact with machine learning dozens of times every day:
Let’s practice distinguishing between problems that need ML vs. basic data analysis:
Scenarios to Discuss:
Then we’ll take a few responses…
Supervised Learning
Example: Learning to recognize spam emails by studying emails already labeled as “spam” or “not spam”
Unsupervised Learning
Example: Analyzing customer data to discover natural groupings without knowing what those groups should be
In supervised learning, we have historical data with known inputs and outputs. There are two main types:
Regression: Predicting continuous numbers
📈 Examples:
Business Question: “How much will this house sell for?”
Classification: Predicting categories
🏷️ Examples:
Business Question: “Is this email spam or not?”
🤔 What are examples of regression & classification in your life?
In unsupervised learning, we only have inputs - no known “correct answers.” The goal is to discover hidden structures.
Clustering: Finding natural groups
👥 Examples:
Business Question: “What natural customer groups exist in our data?”
How it works:
🤔 How would we cluster people in this class?
Scenario Analysis
For each business scenario below, discuss in your groups:
Scenarios:
You have 5 minutes.
Building ML models is like building a house - you need the right foundation:
🏗️ Foundation First
📊 Quality Materials
📋 Proper Permits
🔧 Right Tools
⚠️ Reality Check
Let’s walk through the planning process with a real business scenario:
The Business Request
Company: StreamFlix (streaming service with 2M+ subscribers)
Stakeholder: VP of Customer Success
Request: “Our customer churn is killing us! Can you build an AI model to predict which customers will cancel so we can save them? We need this ASAP for next quarter’s retention campaign.”
Context:
How do we transform this vague request into a successful ML project?
The original request: “Build an AI model to predict which customers will cancel”
❌ Problems with this framing:
⚠️ Risk: Building a technically perfect model that doesn’t solve the business problem
✅ Better problem statement: “Predict which customers are likely to cancel within the next 30 days so our retention team can proactively contact them with targeted offers”
Success Metrics:
Available Data Sources:
⚠️ Common leakage pitfalls in churn prediction:
Temporal Leakage Examples:
Target Leakage Examples:
✅ Safe features to use:
🚨 Red flags:
Fairness & Privacy Concerns:
🤔 Fairness Questions:
🔒 Privacy Considerations:
Fairness & Privacy Concerns:
⚖️ Ethical Safeguards:
💡 Interpretability needs:
From Vague Request to Actionable Project:
✅ What we accomplished:
🚀 Clear Next steps:
Timeline: 6-8 weeks for responsible development vs. rushed 2-week timeline
Key insight: Planning time is never wasted - it prevents costly mistakes and ensures business impact.
Scenario: HealthFirst Insurance Risk Assessment
Company: HealthFirst Insurance
Stakeholder Request: “We want to use AI to automatically approve or deny health insurance applications to speed up our process and reduce costs. Can you build a model that predicts whether an applicant is high-risk or low-risk?”
Context:
Your Discussion Points:
Time: 10 minutes - We’ll do more of these exercises in Thursday’s lab!
Let’s see what insights you came up with! Here are some key considerations:
🎯 Problem Framing Issues:
📊 Data Readiness Challenges:
⚠️ Data Leakage Risks:
⚖️ Major Ethical Concerns:
This Week’s Lab Preview
In Thursday’s lab, you’ll get hands-on practice with:
Come prepared to apply today’s concepts to practical business problems!
Any final questions about the midterm project or peer review process?
Between now & Thursday: Chapter readings
Thursday Lab: More business scenario planning and problem framing practice
Future Weeks: Building and evaluating actual ML models in Python
Office Hours & Resources
BANA 4080 | Week 8