Lecture 39
Case Studies in Tech
DATA 8
Spring 2024
Announcements
3 extra credit points on the Final Exam!
Prediction
Intro to Statistical Predictions
π¦ = ππ₯ + π
Predicted
Final
Midterm
Slope
Intercept
Final
90
80
60
50
40
Midterm
30 40 50 60 70 80
Which Line Do We Choose?
Final
90
80
60
50
40
Midterm
30 40 50 60 70 80
How Good is the Line?
Final
90
80
60
50
40
Midterm
30 40 50 60 70 80
Training
Example
Prediction
Training Error
How to Find the Best Line
Classical Statistics:
π = π x ππ¦ /ππ₯ π = π¦ - ππ₯
Machine Learning:
Machine Learning
Why Use Machine Learning?
Predicted Final = π1 Midterm +
π2 Experience +
π3 log(Boba) +
π4 sin(Exercise)
= π1 π₯1 + π2 π₯2 + π3 π₯3 + π4 π₯4
= π (π, π₯)
Images as Numbers
RGB (158, 99, 57)
RGB (170, 135, 114)
Predictions for Images (Simplified)
Prediction = π (π, π₯)
Millions of
RGB values
Millions of
Slopes (aka Weights)
Predictions for Images (Actual)
Image
Pixels
Image
Features
Prediction
Multiply by Weights
Training the Model
Machine Learning:
Training is Intense!
Example 1:
Self Driving Cars
Scene Categorization
How to Categorize the Scene
Step 1: Collect a Bunch of Data
How to Categorize the Scene
Step 2: Label Your Data
Labeled by
Hand
How to Categorize the Scene
Step 3: Train Your Model
How to Categorize the Scene
Step 4: Make Predictions
Example 2:
Self Driving Cars
Depth Estimation
How to Estimate Depth
Step 1: Collect a Bunch of Data
How to Estimate Depth
Step 2: Label Your Data
Labeled by
Radar
How to Estimate Depth
Step 3: Train Your Model
How to Estimate Depth
Step 4: Make Predictions
Example 3:
AI Umpire
Automated Officiating
How to Automate Officiating
Step 1: Collect a Bunch of Data
How to Automate Officiating
Step 2: Label Your Data
Labeled by
Customers
How to Automate Officiating
Step 3: Train Your Model
How to Automate Officiating
Step 4: Make Predictions
Challenges & Considerations
Prediction Dimensionality
Prediction Fidelity
Prediction Computation
60 MPH
Thank You!