Summary by TwinMind · 30m 34s
Summary by TwinMind · 30m 34s
Live 2020-02-03!!! Statistical Models, Regularization, Best ML Algorithm.
Live 2020-02-03!!! Statistical Models, Regularization, Best ML Algorithm.
StatQuest with Josh Starmer
StatQuest with Josh Starmer
StatQuest Full-Time Announcement
- Josh Starmer announces StatQuest is now his full-time job
- Last day at old lab job was Friday
- Plans to create more StatQuest content including:
- More live streams
- Applied tutorials in Python and R
- More StatQuest videos
- Now available for travel to workplaces/schools for presentations
- Has special StatQuest presentation only done in-person (not online)
- Requests viewer support through:
- Subscribing and liking videos
- Sharing videos with friends
- Channel membership or Patreon support ($1/month minimum)
- Super chat donations
- Merchandise purchases
Q1: Statistical Models for Prediction vs Explanation (Anita Pallenberg)
- Linear regression example using weight/height data
- Prediction: Use regression line to predict height from weight
- Explanation:
- R-squared = 0.7 means 70% of height variation explained by weight
- P-value indicates only 2% chance of getting R² ≥ 0.7 randomly
- Correlation doesn't equal causation but provides data insight
- Logistic regression: Similar principles apply
- Can predict probability of obesity from weight
- R-squared and p-value show relationship strength
- Decision trees: Also provide both prediction and explanation
- Example: Predicting Troll 2 movie preference using rom-com preference and astrological sign
- Tree only used rom-com preference, indicating astrological sign less important
- Machine learning methods can provide insight without traditional statistical measures
Q2: Effects of Regularization (JM)
- Ridge Regression (L2/Square Penalty):
- Lambda = 0: No penalty, standard regression
- Lambda = 10: Penalty shrinks slope toward zero
- Lambda = 20: Further slope shrinkage
- Lambda = 40: Maximum slope shrinkage but never reaches zero
- Maintains parabolic curve shape as lambda increases
- Lasso Regression (L1/Absolute Value Penalty):
- Similar lambda progression but different behavior
- Lambda = 40: Optimal slope becomes exactly 0
- When slope = 0, weight variable completely ignored for height prediction
- Loses parabolic shape faster than Ridge
- Key Difference: Lasso can eliminate variables entirely (slope = 0), Ridge only shrinks them
Q3: Choosing Best Machine Learning Algorithm (Shove Ham Borger)
- Primary recommendation: Become familiar with multiple methods
- Use scikit-learn or R repositories
- Start with simple datasets, progress to complex ones
- Understand each method's strengths/weaknesses
- Speed considerations:
- Fast predictions needed: Support vector machines (fewer calculations)
- Slower predictions acceptable: Random forests, boosting algorithms
- Training speed requirements:
- Fast training: XG Boost (highly optimized)
- Incremental learning: Methods using stochastic gradient descent (linear/logistic regression, neural networks)
- Dataset size considerations:
- Small datasets: May need more data rather than complex algorithms
- Very large datasets: Use methods like XG Boost designed for big data
- Method selection process:
- Use 10-fold cross-validation when time permits
- Reference scikit-learn algorithm cheat sheet for guidance
- Cheat sheet provides decision tree based on data type, goals, and dataset size
Viewer Q&A Session
- Patreon vs YouTube memberships: Patreon takes smaller commission (10-15%) vs YouTube (30%)
- Content pipeline:
- XG Boost video series in progress (3rd video in early access)
- Neural networks coming in spring after XG Boost completion
- Additional videos planned: p-values, UMAP, naive Bayes
- Bayesian statistics: Planned eventually, naive Bayes coming soon
- Data preprocessing order: Remove outliers first, then handle null values (remove or impute)
- PCA applications: Not limited to unsupervised learning, useful for supervised verification
- Example: Verifying experimental drug treatment clustering
- Linear discriminant analysis better when leveraging known categories
- Background: Former research assistant professor at UNC genetics department until Friday
